Skip to content

Conversation

@BenjaminAbt
Copy link
Member

@BenjaminAbt BenjaminAbt commented Dec 27, 2025

@BenjaminAbt BenjaminAbt requested a review from gfoidl December 27, 2025 15:17
Copy link
Contributor

@gfoidl gfoidl left a comment

Choose a reason for hiding this comment

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

Instead of the event source, I'd prefer to use OTel metrics via the meters.
Especially as we don't write to the event stream (which could be read e.g. via PerfView), and I don't think we need the diagnostic events.

internal void UserAgentPresent()
{
if (!IsEnabled()) return;
_userAgentPresent?.Increment();
Copy link
Contributor

Choose a reason for hiding this comment

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

As we don't write an event, should we use metrics (via meter factory) instead?
I'd prefer the OTel metrics here.

Copy link
Member Author

Choose a reason for hiding this comment

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

There are too many projects that do not use OTEL - even I/we currently still use native app insights in almost all projects because OTEL features are missing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, with UseAzureMonitor I see metrics in Azure. What features are there missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

But we would still enforce everybody to use OTEL as foundation... I am not happy with that.

Copy link
Contributor

@gfoidl gfoidl left a comment

Choose a reason for hiding this comment

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

Then OK.

@BenjaminAbt BenjaminAbt requested a review from gfoidl December 27, 2025 19:37
@BenjaminAbt
Copy link
Member Author

BenjaminAbt commented Dec 27, 2025

@gfoidl , I added a telemetry hub and exposed otel native meters and dotnet metrics.
I think I dont have added any overhead.

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.

Add telemetry (aka event-counters)

3 participants