-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
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
cowboy instrumentation breaks cowboy_metrics_h callback #304
Comments
Hey @RoadRunnr, this repository is not the home of that library. Please raise the issue in its repo for assistance https://github.com/beam-telemetry/cowboy_telemetry Also, please include a working example and failing test |
@bryannaegele but the stacktrace shows otel_telemetry crashing? |
The later comments and errors higher up the stacktrace are suggesting the issue is running both stream handlers, so the issue would be in that library.
And the offending conflict appears to be happening in the setup with some prometheus callback that's being run from another library.
|
@bryannaegele the root cause is the way how cowboy_telemetry_h abuses cowboy_metrics_h, but the crash is in
And its exactly those events that cause a crash. I would think that listening to events not cause a crash like that. |
If you want to open a PR, we can accept that. But this error means you are ending a span early and your trace will be missing the root span. |
Describe the bug
When using the cowboy_telemetry_h and cowboy_metrics_h handler together, the metrics cb fails with:
The text was updated successfully, but these errors were encountered: