Skip to content

Commit

Permalink
Allow non-constant endpoints to opt-in to timings
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 committed Sep 30, 2024
1 parent 5be2795 commit 52b6d5c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ private static EndpointChannelFactory createEndpointChannelFactory(Channel multi
channel = new RangeAcceptsIdentityEncodingChannel(channel);
channel = ContentEncodingChannel.of(channel, endpoint);
channel = TracedChannel.create(cf, channel, endpoint);
if (ChannelToEndpointChannel.isConstant(endpoint)) {
if (ChannelToEndpointChannel.isConstant(endpoint)
|| endpoint.tags().contains("dialogue-enable-endpoint-timing")) {
// Avoid producing metrics for non-constant endpoints which may produce
// high cardinality.
channel = TimingEndpointChannel.create(cf, channel, endpoint);
Expand Down

0 comments on commit 52b6d5c

Please sign in to comment.