hi <#C01HWQ1R0BC|support> - I am trying to add aut...
# support
k
hi #support - I am trying to add auth for my collector - and adding the credentials for my agent. This is a reference for agent config. https://gist.github.com/jpkrohling/9058110b7ca99f9658a123448084f608#file-agent-with-oauth2client-yaml-L5 In opentelemetry agents - can we provide all these extension fields as environment variables? Something like, For yaml, extensions: oauth2client: client_id: agent client_secret: Dl76n1p8P2SEdqhcyfcqtmNJi8Kf5LG3 token_url: http://localhost:8080/auth/realms/opentelemetry/protocol/openid-connect/token Can i add these in envi like, OTEL_EXTENSIONS_OAUTH2CLIENT_CLIENT_ID and so on?
s
No, you can't do that (as of today).
k
Thanks @User Also, how can i provide this agent yaml for java and javascript agent instrumentation?
s
I am not aware of client sdks/libraries doing anything with collector config yaml.
k
sure @User - thanks