Skip to content
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

Cannot set header x-honeycomb-dataset using the service.name resource attribute #36538

Open
neillobo-kubra opened this issue Nov 26, 2024 · 0 comments
Labels
needs triage New item requiring triage

Comments

@neillobo-kubra
Copy link

Component(s)

No response

Describe the issue you're reporting

I am using honeycomb classic and OTEL v0.88 and I have been trying to set the dataset header using resource attribute service.name but its not working for me.

If I cant upgrade from honeycomb classic how would I in essence use the data in the processor to set the header in the exporter.

This is the code I have now:

exporters:
    otlp/k8s-metrics:
      headers:
        "x-honeycomb-team": "${env:HONEYCOMB_API_KEY}"
        "x-honeycomb-dataset": "${service.name}-metrics"

and

exporters:
    otlp/k8s-metrics:
      headers:
        "x-honeycomb-team": "${env:HONEYCOMB_API_KEY}"
        "x-honeycomb-dataset": "resource.attributes["service.name"]-metrics"

the second excerpt returns dataset as resource.attributes["service.name"]-metrics and the first one returns -metrics and therefore I cannot dynamically set the header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

1 participant