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

Integrate Micronaut Data and Micrometer to enable tracing SQL queries #921

Merged
merged 22 commits into from
Jan 23, 2025

Conversation

radovanradic
Copy link
Contributor

No description provided.

@radovanradic
Copy link
Contributor Author

Tracing details from the example app
connection-obs
query-obs
resultset-obs

*/
@Singleton
@Primary
public class ProxyDataSourceResolver implements DataSourceResolver {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be here or upstream in Micronaut-sql?

Copy link
Contributor

Choose a reason for hiding this comment

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

should it be public? Is it public API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed public, not needed. I think it should not go to micronaut-sql because it would introduce dependency on datasource-micrometer and now will be activated only if this module is added so I would leave it here.

Something similar might be needed for micronaut-tracing OpenTelemetryDataSource but didn't see a way to unwrap it.

@graemerocher graemerocher added the type: enhancement New feature or request label Jan 22, 2025
@radovanradic radovanradic merged commit fd77682 into 5.10.x Jan 23, 2025
14 checks passed
@radovanradic radovanradic deleted the sql-tracing branch January 23, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants