-
Notifications
You must be signed in to change notification settings - Fork 271
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
Namespace not set when sending *directly* to Datadog #1162
Comments
You router configuration is correct. In your various config elements your service_namespace will take the value of ${DD_ENV} or, if not set, "my-namespace". I modified the source and made a debug build of the router to print out the config used to build the router trace information and confirmed it was setting
(If you scroll right far enough above, you can see I'm curious how you know the |
Apparently we're using |
Any news about this? Not having proper monitoring is a blocker for us to go to production with the router. It doesn't send any custom attribute to Datadog. But the most important would be the |
This is something that we need to implement. It doesn't help that what is currently called To move forward on this I suggest the following:
telemetry:
tracing:
common:
attributes:
static:
- name: "version"
value: "v1.0.0"
request:
- header:
named: "content-type"
rename: "payload_type"
default: "application/json"
- header:
named: "x-custom-header-to-add"
response:
- body:
path: errors.extensions.status
name: extended_status
default: optional_default_value
context:
- named: "foo"
default: "application/json" @bnjjj If we can come to an agreement on yaml format that sits nicely for both metrics and tracing then we can probably make this happen quickly. Let's discuss. |
We've settled on the following which should be consistent with the rest of our config: telemetry:
tracing:
common:
resource:
attributes:
router:
static:
- name: "version"
value: "v1.0.0"
request:
- header:
named: "content-type"
rename: "payload_type"
default: "application/json"
- header:
named: "x-custom-header-to-add"
response:
- body:
path: errors.extensions.status
name: extended_status
default: optional_default_value
context:
- named: "foo"
subgraph:
all:
static:
- name: "version"
value: "v1.0.0"
request:
- header:
named: "content-type"
rename: "payload_type"
default: "application/json"
- header:
named: "x-custom-header-to-add"
response:
- body:
path: errors.extensions.status
name: extended_status
default: optional_default_value
context:
- named: "foo"
subgraphs:
products:
static:
- name: "version"
value: "v1.0.0"
request:
- header:
named: "content-type"
rename: "payload_type"
default: "application/json"
- header:
named: "x-custom-header-to-add"
response:
- body:
path: errors.extensions.status
name: extended_status
default: optional_default_value
context:
- named: "foo" |
related to #1270 |
This PR is currently blocked by open-telemetry/opentelemetry-rust#876 |
Unfortunately no, we need a new release ( |
Any news on this? |
@krisztiansala Unfortunately we are still waiting on an Otel release. Are you using a custom router build? If so then you can use the latest router and use the following patch to have this working:
We'll also look at doing something for our binary builds shortly. |
I've tried this, but it didn't work for me - everything is still the same. I will wait for the release, maybe it will be different. |
This is now waiting on open-telemetry/opentelemetry-rust#965, which we're hoping comes soon. (Suggested to be this weekend!) |
The fix for this is purportedly is now in https://github.com/open-telemetry/opentelemetry-rust/releases/tag/v0.19.0. I'll see about getting the integration of that upgrade prioritized on our side. |
As an update, we are still waiting on an upstream dependency (one which depends on |
I spent a little time investigating this as part of the update to opentelemetry 0.19.0. There isn't a specific method for capturing service_namespace() in the opentelemetry-datadog library. I tried adding some code to manually copy the setting has an attribute and this didn't work. The only workaround that I could concoct was to explicitly add configuration for service_namespace as an attribute in trace_config, which is clearly undesirable. We'll have to leave this open for now and return to it after 0.19.0 is merged. |
Let's submit a PR to otel. |
I have set the Datadog namespace both with the DD_ENV environment variable (which works for other services) and also from the router configuration like so:
But the namespace is still set as
none
How can I set it correctly?
The text was updated successfully, but these errors were encountered: