Skip to content

[Metrics] Timing API race condition #3290

@philipphofmann

Description

@philipphofmann

Description

If the hub's current span changes between these two calls, then LocalMetricsAggregator doesn't match the metric's started span.

final @Nullable LocalMetricsAggregator localMetricsAggregator =
aggregator.getLocalMetricsAggregator();
final @Nullable ISpan span = aggregator.startSpanForMetric("metric.timing", key);

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions