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

Implement Apache DBCP2 datasource metrics #6175

Merged
merged 3 commits into from
Jun 15, 2022

Conversation

agoallikmaa
Copy link
Contributor

No description provided.

@agoallikmaa agoallikmaa requested a review from a team as a code owner June 14, 2022 15:11
Comment on lines +28 to +30
dataSource.preRegister(
ManagementFactory.getPlatformMBeanServer(),
new ObjectName("io.opentelemetry.db:name=" + dataSourceName));
Copy link
Member

Choose a reason for hiding this comment

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

we should probably document somewhere that capturing Apache DBCP metrics via javaagent requires the user to add this code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a readme to the javaagent module explaining this. However, the auto-instrumentation is intended for use cases where all beans get automatically registered anyway, such as Spring Boot.

@trask trask merged commit fae88de into open-telemetry:main Jun 15, 2022
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.

None yet

2 participants