We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
before_emit_metric
To empower users with more flexibility in the before_emit_metric hook, we should expose all parameters of a to-be-emitted metric.
We already expose key and tags; value and unit should also be added.
key
tags
value
unit
def before_emit(key, value, unit, tags): if key == "removed-metric": return False tags["extra"] = "foo" del tags["release"] return True sentry_sdk.init( ... _experiments={ "before_emit_metric": before_emit, } )
The text was updated successfully, but these errors were encountered:
sentrivana
Successfully merging a pull request may close this issue.
To empower users with more flexibility in the
before_emit_metric
hook, we should expose all parameters of a to-be-emitted metric.We already expose
key
andtags
;value
andunit
should also be added.The text was updated successfully, but these errors were encountered: