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

[processor/servicegraphprocessor] Add Configurable Database Name Attribute #30726

Merged

Conversation

hadesy
Copy link
Contributor

@hadesy hadesy commented Jan 23, 2024

Description:
This PR introduces a new configuration option, 'database_name_attribute', in the ServiceGraphProcessor's Config struct. The purpose of this change is to allow users to specify a custom attribute name for identifying the database name in span attributes. This enhancement increases the flexibility of the servicegraphprocessor and allows for better customization in diverse deployment environments. The default value is set to 'db.name' to ensure backward compatibility.

Documentation:

  • Updated the README.md to include the new configuration option, with an explanation and the default setting.
  • Added comments in the code where relevant to clarify the use and default value of the 'database_name_attribute'.

Signed-off-by: hadesy <6346047+hadesy@users.noreply.github.com>
@hadesy hadesy requested a review from a team January 23, 2024 10:08
@github-actions github-actions bot added the processor/servicegraph Service graph processor label Jan 23, 2024
@github-actions github-actions bot requested a review from mapno January 23, 2024 10:08
Copy link
Contributor

github-actions bot commented Feb 7, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 7, 2024
Copy link
Contributor

@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.

LGTM. Thanks!

@github-actions github-actions bot removed the Stale label Feb 15, 2024
@jpkrohling
Copy link
Member

@hadesy, once this is rebased, I'll do a final review and merge this.

# Conflicts:
#	processor/servicegraphprocessor/README.md
#	processor/servicegraphprocessor/config_test.go
#	processor/servicegraphprocessor/testdata/service-graph-config.yaml
Signed-off-by: hadesy <6346047+hadesy@users.noreply.github.com>
Signed-off-by: hadesy <6346047+hadesy@users.noreply.github.com>
@hadesy
Copy link
Contributor Author

hadesy commented Feb 16, 2024

@hadesy, once this is rebased, I'll do a final review and merge this.

I've completed the rebase as requested. Everything should be in order now for the final review. Please let me know if there are any additional adjustments or checks needed from my side. Thank you for your guidance and support. Looking forward to the merge!

Signed-off-by: hadesy <6346047+hadesy@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Mar 2, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Mar 2, 2024
@github-actions github-actions bot removed the Stale label Mar 5, 2024
@jpkrohling jpkrohling merged commit 5dd957a into open-telemetry:main Mar 5, 2024
142 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 5, 2024
DougManton pushed a commit to DougManton/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
…ibute (open-telemetry#30726)

**Description:**
This PR introduces a new configuration option,
'database_name_attribute', in the ServiceGraphProcessor's Config struct.
The purpose of this change is to allow users to specify a custom
attribute name for identifying the database name in span attributes.
This enhancement increases the flexibility of the servicegraphprocessor
and allows for better customization in diverse deployment environments.
The default value is set to 'db.name' to ensure backward compatibility.

**Documentation:**
- Updated the README.md to include the new configuration option, with an
explanation and the default setting.
- Added comments in the code where relevant to clarify the use and
default value of the 'database_name_attribute'.

---------

Signed-off-by: hadesy <6346047+hadesy@users.noreply.github.com>
Co-authored-by: Juraci Paixão Kröhling <juraci@kroehling.de>
XinRanZhAWS pushed a commit to XinRanZhAWS/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
…ibute (open-telemetry#30726)

**Description:**
This PR introduces a new configuration option,
'database_name_attribute', in the ServiceGraphProcessor's Config struct.
The purpose of this change is to allow users to specify a custom
attribute name for identifying the database name in span attributes.
This enhancement increases the flexibility of the servicegraphprocessor
and allows for better customization in diverse deployment environments.
The default value is set to 'db.name' to ensure backward compatibility.

**Documentation:**
- Updated the README.md to include the new configuration option, with an
explanation and the default setting.
- Added comments in the code where relevant to clarify the use and
default value of the 'database_name_attribute'.

---------

Signed-off-by: hadesy <6346047+hadesy@users.noreply.github.com>
Co-authored-by: Juraci Paixão Kröhling <juraci@kroehling.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants