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 db.statement and user attributes to OpenTelemetry Plugin #3475

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

Shaoranlaos
Copy link
Contributor

@Shaoranlaos Shaoranlaos commented Dec 21, 2023

Add parsing of db.statement and db.user attributes for OpenTelementy Plugin.

This will allow users to write an own Elastic APM Plugin for a not yet supported database and also add the executed statement to the span (like with the supported DBs)

What does this PR do?

Add the ability to set the database user and the executed statement via an APM plugin via the attributes (like db name and system).

Checklist

  • This is an enhancement of existing features, or a new feature in existing plugins
    • I have updated CHANGELOG.asciidoc
    • I have added tests that prove my fix is effective or that my feature works
    • Added an API method or config option? Document in which version this will be introduced
    • I have made corresponding changes to the documentation
  • This is a bugfix
  • This is a new plugin
    • I have updated CHANGELOG.asciidoc
    • My code follows the style guidelines of this project
    • I have made corresponding changes to the documentation
    • I have added tests that prove my fix is effective or that my feature works
    • New and existing unit tests pass locally with my changes
    • I have updated supported-technologies.asciidoc
    • Added an API method or config option? Document in which version this will be introduced
    • Added an instrumentation plugin? Describe how you made sure that old, non-supported versions are not instrumented by accident.
  • This is something else

Add parsing of db.statement and db.user attributes for OpenTelementy Plugin.

This will allow users to write an own Elastic APM Plugin for a not yet supported database and also add the executed statement to the span (like with the supported DBs)
@github-actions github-actions bot added agent-java community Issues and PRs created by the community triage labels Dec 21, 2023
Copy link

👋 @Shaoranlaos Thanks a lot for your contribution!

It may take some time before we review a PR, so even if you don’t see activity for some time, it does not mean that we have forgotten about it.

Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming milestone. The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it.

@Shaoranlaos Shaoranlaos marked this pull request as ready for review December 21, 2023 11:33
@Shaoranlaos Shaoranlaos changed the title Update OTelSpan.java Add db.statement and user attributes to OpenTelemetry Plugin Dec 21, 2023
jackshirazi
jackshirazi previously approved these changes Jan 5, 2024
@jackshirazi jackshirazi requested a review from JonasKunz January 5, 2024 14:39
JonasKunz
JonasKunz previously approved these changes Jan 5, 2024
@jackshirazi
Copy link
Contributor

@Shaoranlaos please fix the conflicts

@Shaoranlaos Shaoranlaos dismissed stale reviews from JonasKunz and jackshirazi via 28b789d January 5, 2024 15:18
@jackshirazi jackshirazi enabled auto-merge (squash) January 5, 2024 16:10
@JonasKunz
Copy link
Contributor

@elasticmachine run elasticsearch-ci/docs

@jackshirazi jackshirazi merged commit 1d6c63d into elastic:main Jan 9, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java community Issues and PRs created by the community triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants