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

Ktor: support setting custom spanNameExtractor (#12842) #12850

Merged

Conversation

SIMULATAN
Copy link
Contributor

This PR adds support for custom SpanNameExtractors in the Ktor instrumentation modules. It should support both Ktor 2 and 3.

See #12842 for more context.

@SIMULATAN SIMULATAN requested a review from a team as a code owner December 8, 2024 11:53
Copy link

linux-foundation-easycla bot commented Dec 8, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@trask trask added this to the v2.11.0 milestone Dec 9, 2024
@@ -86,6 +87,10 @@ abstract class AbstractKtorServerTracingBuilder(private val instrumentationName:
}
}

fun spanNameExtractor(spanNameExtractorTransformer: Function<SpanNameExtractor<in ApplicationRequest>, out SpanNameExtractor<in ApplicationRequest>>) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@trask just a note: setEmitExperimentalHttpServerMetrics is also missing

@trask trask merged commit e002f7a into open-telemetry:main Dec 12, 2024
56 checks passed
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.

3 participants