core-1.7.0-alpha.1
Pre-releaseOpenTelemetry
-
Update
AggregatorStore
to reclaim unused MetricPoints for Delta aggregation temporality. (#4486) -
Fixed a bug where
TracerProviderBuilderBase
was not invoking theinstrumentationFactory
delegate passed to theprotected
AddInstrumentation
method. (#4873) -
Allowed metric instrument names to contain
/
characters. (#4882) -
Breaking Change
[Tracer|Meter|Logger]ProviderBuilder.Build
extension will now throw aNotSupportedException
if invoked on a non-SDK builder type. Previously it would returnnull
. (#4885) -
Updated
Microsoft.Extensions.Logging
package version to8.0.0-rc.1.23419.4
. (#4920, #4933)
OpenTelemetry.Api
-
Fixed a bug which caused
Tracer.StartRootSpan
to generate a child span if a trace was running (Activity.Current != null
). (#4890) -
Added a
Tracer
cache inside ofTracerProvider
to prevent repeated calls toGetTracer
from leaking memory. (#4906) -
Fix
TraceContextPropagator
by validating the first digit of the hex-encodedtrace-flags
field of thetraceparent
header. (#4893)
OpenTelemetry.Exporter.OpenTelemetryProtocol
-
Bumped the version of
Google.Protobuf
used by the project to3.22.5
so that consuming applications can be published as NativeAOT successfully. Also, a new performance feature can be used instead of reflection emit, which is not AOT-compatible. Removed the dependency onSystem.Reflection.Emit.Lightweight
. (#4859) -
Added support for
OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT
andOTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT
. (#4887) -
Added ability to export attributes corresponding to
LogRecord.Exception
i.e.exception.type
,exception.message
andexception.stacktrace
. These attributes will be exported whenOTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES
environment variable will be set totrue
.NOTE: These attributes were removed in 1.6.0-rc.1 release in order to support stable release of OTLP Log Exporter. The attributes will now be available via environment variable mentioned above. (#4892)
-
Added ability to export attributes corresponding to
LogRecord.EventId.Id
aslogrecord.event.id
andLogRecord.EventId.Name
aslogrecord.event.name
. The attributes will be exported whenOTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES
will be set totrue
.NOTE: These attributes were removed in 1.6.0-rc.1 release in order to support stable release of OTLP Log Exporter. The attributes will now be available via environment variable mentioned above. (#4925)
-
LogRecord.CategoryName
will now be exported as InstrumentationScopename
field under ScopeLogs. (#4941)
OpenTelemetry.Exporter.Prometheus.AspNetCore
- Fixed writing boolean values to use the JSON representation (#4823)
OpenTelemetry.Exporter.Prometheus.HttpListener
- Fixed writing boolean values to use the JSON representation (#4823)
OpenTelemetry.Extensions.Hosting
- Changed the behavior of the
OpenTelemetryBuilder.AddOpenTelemetry
extension to INSERT OpenTelemetry services at the beginning of theIServiceCollection
in an attempt to provide a better experience for end users capturing telemetry in hosted services. Note that this does not guarantee that OpenTelemetry services will be initialized while other hosted services start, so it is possible to miss telemetry until OpenTelemetry services are fully initialized. (#4883)