azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

Scopes not being included by default in the OpenTelemetry distro may be insufficiently documented

Open NetherGranite opened this issue 2 months ago • 2 comments

Looking at this comment, it sounds like there was intent to document the fact that using the OpenTelemetry distro for Azure Monitor doesn't include scopes by default was going to be documented more clearly, but on both the intro page for the distro and the OpenTelemetry configuration guide, scopes aren't mentioned at all.

Not being sure why scopes aren't included in the OpenTelemetry method is currently a very easy trap to fall into and very hard to find information on, especially since there's no formal part of the fluent API for configuring OpenTelemetryLoggerOptions. On that last note, it may be very helpful to add an overload of .AddOpenTelemetry() that takes an Action<OpenTelemetryLoggerOptions>.

NetherGranite avatar Jun 18 '24 02:06 NetherGranite