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

Setting cloud role name in v3? #1365

Open
DevRCRun opened this issue Aug 1, 2024 · 2 comments
Open

Setting cloud role name in v3? #1365

DevRCRun opened this issue Aug 1, 2024 · 2 comments

Comments

@DevRCRun
Copy link

DevRCRun commented Aug 1, 2024

Under 2.x in CJS we had

const appInsights = require('applicationinsights') ... appInsights.defaultClient.context.tags[appInsights.defaultClient.context.keys.cloudRole] = 'our-name-here'

What's the equivalent in 3.x please?

I didn't immediately spot this in the migration guide, apologies if I have just missed it

@JacksonWeber
Copy link
Contributor

JacksonWeber commented Aug 7, 2024

This has been addressed here: #1352. I can address this in documentation to make it clear that this support is not here yet.

@JacksonWeber
Copy link
Contributor

@DevRCRun Does using the OTEL_RESOURCE_ATTRIBUTES environment variable work for your use case?

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

No branches or pull requests

2 participants