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

Add Additional Resource Attributes for OpenTelemetry #7325

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

briankahoot
Copy link

Fixes #7322

Adds the "deployment.environment" resource attribute to those that can be configured for OpenTelemetry. This was done as some collectors, including Datadog, require this value to properly classify traces.

Changes are simply to accept the new value and update the associated documentation and tests.

Adds the "deployment.environment" resource attribute to those that can
be configured for OpenTelemetry. This was done as some collectors,
including Datadog, require this value to properly classify traces.

Fixes open-policy-agent#7322

Signed-off-by: Brian Cullen <[email protected]>
Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit be78a1a
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/679a1ba08cd95e0008a7cbb2
😎 Deploy Preview https://deploy-preview-7325--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@ashutosh-narkar ashutosh-narkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change lgtm. Per this

deployment.environment has been deprecated in favor of deployment.environment.name in [OpenTelemetry semantic conventions v1.27.0](https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.27.0)

Should we use the new convention?

@briankahoot
Copy link
Author

I did notice that, the systems I'm using still use the old version. I suppose this is the drawback of doing it property by property, when the schema changes the code has to change as well.

Would you prefer it to be the new value?

@ashutosh-narkar
Copy link
Member

Should be fine for now. Currently we're pre-v1.27.0. If you add a note about this in the code or commit message body it would be helpful. Then squash your commits and we can get this in. Thanks for the contribution.

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

Successfully merging this pull request may close these issues.

Allow Additional Resource Configuration for OpenTelemetry
2 participants