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 method to enable metrics for Npgsql #5833

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Conversation

vonzshik
Copy link
Contributor

Fixes #5832

@vonzshik vonzshik requested a review from roji as a code owner September 12, 2024 13:44
src/Npgsql/NpgsqlMetricsOptions.cs Outdated Show resolved Hide resolved
@roji
Copy link
Member

roji commented Sep 12, 2024

@vonzshik one thought - it seems like the convention for these extension methods is to have them end with "Instrumentation" (e.g. AddAspNetCoreInstrumentation, AddHttpClientInstrumentation...), should we do the same?

I'm not sure what's up with tracing - we'd be a bit inconsistent between the tracing and metrics activation (that's not too bad).

@vonzshik
Copy link
Contributor Author

vonzshik commented Sep 13, 2024

Sure, let's align with the others. Yeah, we'll be inconsistent with tracing, but it still starts with AddNpgsql, so intellisense should help.

@vonzshik vonzshik enabled auto-merge (squash) September 13, 2024 15:49
@vonzshik vonzshik merged commit 6faa690 into main Sep 13, 2024
15 checks passed
@vonzshik vonzshik deleted the 5832-add-metrics-method branch September 13, 2024 15:53
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.

OpenTelemetry metrics not being dispatched
2 participants