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

Make OTEL exporter headers updatable #160

Closed
aelmekeev opened this issue May 24, 2024 · 2 comments
Closed

Make OTEL exporter headers updatable #160

aelmekeev opened this issue May 24, 2024 · 2 comments
Assignees
Labels
type: enhancement New feature or request

Comments

@aelmekeev
Copy link

Is your feature request related to a problem? Please describe.

Our public open telemetry collector is behind auth as any other API with short lived tokens.

A follow up on #134 from @robwdux it would be nice to have a way to refresh the auth token.

Describe the solution you'd like

At the moment we can headers at the sdk initialisation. Probably would be nicer to have it as a separate "auth" interface although not sure if this can be generic enough.

In any case the way of updating this configuration when needed - would be nice.

Describe alternatives you've considered

I believe at the moment the only way is to shutdown and restart SDK.

Additional context

@aelmekeev aelmekeev added the type: enhancement New feature or request label May 24, 2024
@nicole0707
Copy link

Do we have an interceptor pattern in place to dynamically attach headers?

@pkanal pkanal assigned arriIsHere and unassigned pkanal Aug 20, 2024
@arriIsHere
Copy link
Contributor

The OTel-JS library is currently redoing their Exporters. It seems there is a strong intent to support this once that refactor is completed. open-telemetry/opentelemetry-js#3662 (comment)

Since our library depends on theirs we can't really implement this feature until it's available in OTel. Here is the related issue if you would like to keep an eye on it. open-telemetry/opentelemetry-js#2903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants