-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unable to add custom attributes under service #11727
Comments
I'm not sure I get what you mean here. In your debugexporter output, the resources is properly specified as Could this be the way the visualization tool you're using handles attributes that aren't semantic conventions? |
Hi @dmathieu , {
"@timestamp": [
"2024-11-22T09:10:27.608Z"
],
"agent.name": [
"otlp"
],
"agent.name.text": [
"otlp"
],
"agent.version": [
"unknown"
],
"data_stream.dataset": [
"apm"
],
"data_stream.namespace": [
"dev"
],
"data_stream.type": [
"traces"
],
"event.outcome": [
"success"
],
"event.success_count": [
1
],
"labels.service_cluster": [
"xxxx"
],
"labels.service_customer": [
"yyyy"
],
"labels.service_ldc": [
"eu"
],
"labels.service_listner": [
"internal"
],
"observer.hostname": [
"my-fleetserver-5d4cd5765f-b4gpb"
],
"observer.type": [
"apm-server"
],
"observer.version": [
"8.16.0"
],
"parent.id": [
"174e90f23b7d7ee7"
],
"processor.event": [
"span"
],
"service.environment": [
"dev"
],
"service.framework.name": [
"my-internal"
],
"service.framework.name.text": [
"my-internal"
],
"service.framework.version": [
"0.1.0"
],
"service.language.name": [
"unknown"
],
"service.language.name.text": [
"unknown"
],
"service.name": [
"aaaaa_my_my-mytool_v1"
],
"service.name.text": [
"aaaaa_my_my-mytool_v1"
],
"service.node.name": [
"416cab84-c2b0-492c-92db-545bf4b760a4"
],
"service.node.name.text": [
"416cab84-c2b0-492c-92db-545bf4b760a4"
],
"service.version": [
"3.8.1.0"
],
"span.duration.us": [
1
],
"span.id": [
"55c6f47d03a7274a"
],
"span.name": [
"my.header_filter.plugin.post-function"
],
"span.name.text": [
"my.header_filter.plugin.post-function"
],
"span.representative_count": [
1
],
"span.subtype": [
"internal"
],
"span.type": [
"app"
],
"tags": [
"_geoip_database_unavailable_GeoLite2-City.mmdb"
],
"timestamp.us": [
1732266627608141
],
"trace.id": [
"e9cb83601e16e99346433d27a11b417a"
],
"_id": "pngjU5MBh-RdWrIqEuv7",
"_index": ".ds-traces-apm-dev-2024.11.21-000031",
"_score": null
} So you think that it is elasticsearch? I haven't thought about that |
Disclaimer: I work for elastic. Yes, this is the behavior of the OTLP endpoints in apm-server and our service offering. |
Describe the bug
I'd like to add several attributes under service.* but so far all the attributes that I've added in the processors.resource.atrtibutes are added as children of labels.*
Steps to reproduce
Given the following configuration:
The attribute service.cluster will be injected as labels.service_cluster while cluster in labels.cluster
What did you expect to see?
service.cluster: XXXX
What did you see instead?
labels.service_cluster:XXXX or
labels.cluster: XXXX
What version did you use?
0.108.0
Environment
openshift
Additional context
The text was updated successfully, but these errors were encountered: