Comments (6)
cc: @muripic
from opentelemetry-ruby-contrib.
What is the current sentiment of forwarding config options?
If grape is taking responsibility for installing rack instrumentation, can we also supply rack config opts through grape?
Possible no code change alternatively, have you tried configuring rack via env vars? If the env vars are present at install time it should still apply them whether its the SDK installing it or grape.
from opentelemetry-ruby-contrib.
@robertlaurin Yes, using envars is the most reliable way to configure the app but we do not do a good job of documenting how to customize the instrumentations using envars on opentelemetry.io
. It is centered around using the DSL to accomplish this and it is very surprising to experience Rack configurations being ignored when configured manually.
Using "nested" configurations becomes complicated in applications where you have multiple frameworks involved all trying to configure the Rack instrumentation, including auto-inserting the Rack middleware.
In my case, the ActionPack and Sinatra instrumentation compete with each other in the GitHub monolith to insert the Rack middleware. I have a hack here to have Sinatra disable Rack installation so I have a PR here to actually optionally disable the installation:
This has come up several times before and it may be resolved by either introducing some sort of dependency tree or ordering in the Registry to ensure no matter the order you declare the instrumentations in the DSL, the registry installs them in the appropriate order with the correct configuration options.
from opentelemetry-ruby-contrib.
@arielvalentin a similar change to the grape instrumentation would also help my use case as we're often mounting Grape within rails. I can see about raising a PR for this.
from opentelemetry-ruby-contrib.
Related Issues (20)
- How can I add Custom Span name to OpenTelemetry::Instrumentation::Redis HOT 2
- Grape Test Suite Failures
- Add steps on how to turn off tracing in graphQL HOT 3
- Test Suite Failures grape 2.1.0 + rack 3.1.3 HOT 1
- Release PR #1025 failed with errors
- Release PR #1025 failed with errors
- Default position of Faraday tracer middleware changes when upgrading Faraday HOT 6
- How to handle gRPC repo w.r.t. attribution/licensing HOT 4
- [inst-rack] rack_events + untraced_endpoints will still emit child spans of those endpoint HOT 2
- Improve config documentation for `disallowed_notification_payload_keys` and `notification_payload_transform` HOT 1
- Release PR #970 failed with errors HOT 1
- Incorporating rails action_mailer into rails instrumentation once it's published
- Deprecation notice `base64` removed from Ruby 3.4 HOT 1
- Update instrumentation generator script output HOT 1
- Add cspell to our CI HOT 2
- Add markdownlint to our CI HOT 1
- Improve changelogs HOT 1
- Make Sidekiq `propagation_style` able to be changed on a job-by-job basis HOT 4
- ActiveModelSerializer instrumentation does not make the span current HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-ruby-contrib.