Skip to content

Commit

Permalink
Add annotation for PIP-264 / OTel
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Oct 10, 2024
1 parent 1ea94e7 commit 9515819
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,16 @@ public class ReplicatedSubscriptionsController implements AutoCloseable, Topic.P
"Counter of currently pending snapshots")
.register();

// timeouts use SnapshotOperationResult.TIMEOUT.attributes on the same metric
@PulsarDeprecatedMetric(
newMetricName = OpenTelemetryReplicatedSubscriptionStats.SNAPSHOT_OPERATION_COUNT_METRIC_NAME)
@Deprecated
private static final Counter timedoutSnapshotsMetric = Counter
.build().name("pulsar_replicated_subscriptions_snapshot_timeouts")
.help("Counter of timed out snapshots").register();

private final OpenTelemetryReplicatedSubscriptionStats stats;


public ReplicatedSubscriptionsController(PersistentTopic topic, String localCluster) {
this.topic = topic;
this.localCluster = localCluster;
Expand Down

0 comments on commit 9515819

Please sign in to comment.