You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the metric/trace/log exporters to send data to a collector on a platform that requires a short lived auth token to be passed to it with each request. The token expires every hour so setting it through the constructor argument would only work for an hour. It is similar to this issue in the javascript otel project open-telemetry/opentelemetry-js#2903.
Currently I can update the header when needed by modifying the underlying _session object but this feels like it could break in the future.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use the metric/trace/log exporters to send data to a collector on a platform that requires a short lived auth token to be passed to it with each request. The token expires every hour so setting it through the constructor argument would only work for an hour. It is similar to this issue in the javascript otel project open-telemetry/opentelemetry-js#2903.
Currently I can update the header when needed by modifying the underlying
_session
object but this feels like it could break in the future.Is there a better way to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions