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

2554 Enhance OTEL instrumentation with custom metrics and traces #2617

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

tommasodotNET
Copy link
Contributor

@tommasodotNET tommasodotNET commented Mar 14, 2025

Why make this change?

What is this change?

I have removed ASP NET Core standard instrumentation since it does not provide great value given the custom nature of the webservice. I have written two main Helper classes: TelemetryMetricsHelper and TelemetryTracesHelper to provide a single point of management for custom traces and metrics.

Metrics can be filtered for status_code, api_type, endpoint and method.

I have also fixed the loggings which are now sent to the configured OTEL endpoint.

Logs

image

Metrics

Screenshot 2025-03-14 190730

Traces

image (2)
image (3)
image (4)

How was this tested?

  • Integration Tests
  • Unit Tests

Sample Request(s)

To test everything locally I recommend using this repo that allows to run the local build of the dab cli and send metrics to the .NET Aspire OTEL endoint.

@JerryNixon
Copy link
Contributor

@Aniruddh25 is March realistic?

@tommasodotNET
Copy link
Contributor Author

/azp run

Copy link

Commenter does not have sufficient privileges for PR 2617 in repo Azure/data-api-builder

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.

🥕⭐ [Enhancement]: Custom DAB OTEL Traces & Counters
3 participants