Skip to content

Instantly share code, notes, and snippets.

@jpkrohling
Created February 7, 2018 14:14
Show Gist options
  • Save jpkrohling/4e2229667c84d9fdbb7758ec091dd369 to your computer and use it in GitHub Desktop.
Save jpkrohling/4e2229667c84d9fdbb7758ec091dd369 to your computer and use it in GitHub Desktop.
/// original
@Metric(
name = "baggage-update",
tags = {@Tag(key = "result", value = "err")}
)
// Number of times baggage failed to write or update on spans
public Counter baggageUpdateFailure;
/// new version
@Metric(
name = "baggage-update",
tags = {
@Tag(key = "state"),
@Tag(key = "sampled"),
@Tag(key = "group"),
@Tag(key = "phase"),
@Tag(key = "result", value = "err"),
}
)
// Number of times baggage failed to write or update on spans
public Counter baggageUpdateFailure;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment