Skip to content

Feature Request: Support for OpenTelemetry R2DBC Instrumentation #820

@herisn23

Description

@herisn23

Feature description

Summary

Please add native support in Micronaut for instrumentation using the library:
io.opentelemetry.instrumentation:opentelemetry-r2dbc-1.0:2.14.0-alpha.

Background

In our application, we currently implement R2DBC telemetry manually using the following Kotlin code:

fun instrumentedConnectionFactory(
    options: ConnectionFactoryOptions,
    opentelemetry: OpenTelemetry
): ConnectionFactory =
    R2dbcTelemetry
        .create(opentelemetry)
        .wrapConnectionFactory(ConnectionFactories.get(options), options)

While this works, it would be more idiomatic and maintainable if Micronaut could manage this instrumentation internally—similar to how other telemetry integrations are handled, e.g. JDBC.

Additional Notes

Unfortunately, I’m not familiar with Groovy, so I’m unable to contribute a PR myself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions