-
Notifications
You must be signed in to change notification settings - Fork 213
fix: unify rack middleware_args #1660
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
fix: unify rack middleware_args #1660
Conversation
Ensure rack middleware_args are selected consistently based on `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable.
Thanks for opening this @sergiofbsilva . We chatted on this briefly in SIG, just wanted to clarify
|
Yes, that's right. We want to use |
Thanks @sergiofbsilva! This looks like a good change, and allows users to continuing using |
I just signed the CLA and moved from Draft to Open, I think you can review it, thanks! |
instrumentation/sinatra/lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
Show resolved
Hide resolved
@hannahramadan updated the tests, CI was failing, updated branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @sergiofbsilva! This is much cleaner.
@sergiofbsilva - I'm changing the conventional commit prefix to |
Standalone rack applications need to initialize middlewares explicitly:
However this doesn't take into account the new
OTEL_SEMCONV_STABILITY_OPT_IN
environment variable.This PR ensures rack middleware_args are selected consistently based on
OTEL_SEMCONV_STABILITY_OPT_IN
environment variable.