Marco Costa
Marco Costa
Follows up from #2282. This PR ensures the `TraceOperation#sampling_mechanism` populated in #2282 is injected and extracted during distributed tracing. This happens through the `_dd.p.dm` tag: e.g. `sampling_mechanism=1` becomes `_dd.p.dm=-1` The...
Solves #1252 We currently report the globally configured `Rails.configuration.cache_store` as the cache backend tag (`rails.cache.backend`) regardless if the instrumented ActiveSupport cache object is actually the global `cache_store`. This causes applications...
**Is your feature request related to a problem? Please describe.** With the introduction of [Quantize Sidekiq arguments](https://github.com/DataDog/dd-trace-rb/pull/1972), [it was pointed out by @agrobbin that](https://github.com/DataDog/dd-trace-rb/pull/1972#issuecomment-1179645325) some background job gems that integrate...
### Caveats * Error does not propagate all the way to the root span: this means this request is not considered an error span, thus not displayed in aggregated trace...
For Ruby gems, is it good practice to include all API (public, protected, and private) in their RBS files, or should they only include the publicly accessible API? I work...
**2.0 Upgrade Guide notes** Add the `http.status_code` tag to the Grape `grape.endpoint_run` span for cases where the request did not raise an exception. For cases where an exception was raised,...
2.0
This draft PR is created to allow tracking the changes towards 2.0. **2.0 Upgrade Guide notes** **What does this PR do?** **Motivation:** **Additional Notes:** **How to test the change?** **For...
**2.0 Upgrade Guide notes** **What does this PR do?** **Motivation:** **Additional Notes:** **How to test the change?** **For Datadog employees:** - [ ] If this PR touches code that signs...
(I'm trying to see if code coverage for Sidekiq fork tests like https://app.codecov.io/gh/DataDog/dd-trace-rb/blob/master/spec%2Fdatadog%2Ftracing%2Fcontrib%2Fsidekiq%2Fserver_internal_tracer%2Fjob_fetch_spec.rb#L26 start being collected)
**What does this PR do?** When `Datadog.configure` tries to instrument a gem but that gem is not loaded it currently gives up. With this PR, it now registers a hook...