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 · 1 comment
Labels
needs triage New item requiring triage Stale

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.

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

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 Stale
Projects
None yet
Development

No branches or pull requests

1 participant