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

feat(servicegraphs): Add support for db.system.name #4656

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

Conversation

iamrajiv
Copy link

@iamrajiv iamrajiv commented Feb 3, 2025

What this PR does:

This PR adds support for the db.system.name attribute introduced in OpenTelemetry Semantic Conventions v1.30.0. The change maintains backward compatibility while supporting the new attribute name.

Which issue(s) this PR fixes:
Fixes #4640

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@CLAassistant
Copy link

CLAassistant commented Feb 3, 2025

CLA assistant check
All committers have signed the CLA.

@iamrajiv iamrajiv changed the title feat: Add support for db.system.name in service graphs feat(servicegraphs): Add support for db.system.name in service graphs Feb 3, 2025
@iamrajiv iamrajiv changed the title feat(servicegraphs): Add support for db.system.name in service graphs feat(servicegraphs): Add support for db.system.name Feb 3, 2025
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

You need to update the go.mod file with the otel library upgrade and run make update-mod

Signed-off-by: iamrajiv <[email protected]>
@iamrajiv
Copy link
Author

iamrajiv commented Feb 4, 2025

@mapno i have updated the vendor can u check now

@mapno
Copy link
Member

mapno commented Feb 5, 2025

Hi @iamrajiv. You cannot change an single vendor file like that. You need to update the dependency in go.mod and run make update-mod to correctly vendor the new version.

Copy link
Member

@rlankfo rlankfo left a comment

Choose a reason for hiding this comment

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

The servicegraphconnector component in contrib adds a configuration option to set the database name attribute. Could we do the same here as well?
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/connector/servicegraphconnector/config.go#L49-L51

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.

Breaking changes to db.system attribute in OpenTelemetry Semantic Conventions v1.30.0
4 participants