The following changes are from the previous release 1.21.0.
-
NuGet: OpenTelemetry v1.22.0-rc.1
-
Self-diagnostics log entries now indent every line after the first and write
control characters as\uXXXXescapes, so that text in a message can no
longer start a line that reads as a separate entry.
(#8145) -
Fixed
ForceFlushon batch export processors reporting success before
pending exports had finished.
(#8134) -
Fixed
PeriodicExportingMetricReadersometimes collecting twice in quick
succession when a periodic wait returns early.
(#8161) -
The self-diagnostics
OTEL_DIAGNOSTICS.jsonfile being temporarily locked by
another process is no longer treated as the file having been removed.
(#8158) -
Added
Sdk.DefaultTextMapPropagatorto expose the SDK's default
TextMapPropagator.
(#8129) -
Improved metric recording resilience to hash collisions between tag values.
(#8167) -
Fixed the self-diagnostics file sink dropping entries for 30 seconds when
the name of its next log file was already in use. It now opens a file with a
different name immediately.
(#8159) -
Fixed the self-diagnostics file sink counting files it did not create
towardsMaxRetainedFileswhen their names matched its log file names.
Log files written whileMaxRetainedFileswas0(unlimited) are no longer
pruned if a positive limit is configured later.
(#8159)
See CHANGELOG for details.
-
-
NuGet: OpenTelemetry.Api v1.22.0-rc.1
-
Breaking Change: Isolate ambient baggage updates between execution contexts.
Changes made in awaited async methods no longer update their caller's baggage.
Enable theOpenTelemetry.Baggage.AllowUnsafeLegacyFlowAppContext switch at
startup to temporarily restore unsafe legacy sharing.
(#8042) -
Breaking Change: Static
Baggagehelpers now honor explicitly supplied
empty baggage; omit the argument to useBaggage.Current.
(#8153)
See CHANGELOG for details.
-
-
NuGet: OpenTelemetry.Api.ProviderBuilderExtensions v1.22.0-rc.1
No notable changes.
See CHANGELOG for details.
-
NuGet: OpenTelemetry.Exporter.Console v1.22.0-rc.1
No notable changes.
See CHANGELOG for details.
-
NuGet: OpenTelemetry.Exporter.InMemory v1.22.0-rc.1
No notable changes.
See CHANGELOG for details.
-
NuGet: OpenTelemetry.Exporter.OpenTelemetryProtocol v1.22.0-rc.1
-
Breaking:
HttpClientinstances created by the exporter directly no
longer automatically store cookies set by responses from the endpoint or
send them with later export requests, except in browser environments where
cookie handling is unchanged. Explicitly configuredCookieheaders are
still sent. See Configure HttpClient
to preventHttpClientcreated byIHttpClientFactoryfrom using cookies.
(#8131) -
Fixed the OTLP/gRPC exporter not exporting again on .NET after a connection
to thehttpsendpoint was made without HTTP/2 being negotiated. The
HttpClientcreated by the exporter is now replaced when this happens. An
HttpClientsupplied throughHttpClientFactoryis not replaced.
(#8144) -
Breaking:
ExportProcessorType.Simpleno longer exports each span or log
record on the thread which ended it, which could stall an application under
concurrent load. Each is still exported on its own, in order, as soon as it
has ended, but by a thread of the processor, so it may not have been exported
when the call that ended it returns, and at most 2048 are queued before
further ones are dropped. CallForceFlush()and check its result to wait
for pending exports. On single-threaded platforms, it triggers export without
waiting and returnsfalsewhile exports are still pending.
(#8134) -
Fixed a whole batch of log records being dropped when the exception, scopes
or attributes of one of the log records cannot be read. Only the data which
could not be read, and any that follows it in the same scope or attribute
list, is now left out of that log record, and is counted as dropped.
(#8143) -
Fixed the experimental disk retry feature resending stored requests without
suppressing instrumentation, so that the exporter's own requests could be
traced and exported by the application's exporters.
(#8164) -
Fixed
OtlpMetricExporterdropping every collection once the metrics did not
fit in a single request ofOtlpExporterOptions.MaxRequestSizeBytes, which
with cumulative temporality stopped the export of all metrics until the
process was restarted. Such a batch is now sent as several requests, each cut
at the end of a metric point, and only a metric point which does not fit in a
request on its own is dropped.
(#8132) -
Fixed the experimental disk retry feature creating the retry directory and
itstraces,metricsandlogssubdirectories with the default
permissions instead of being accessible to the current user only when
running on .NET on non-Windows platforms. This could also cause creating the
exporter to fail when the umask of the process left them writable by other
users. Directories that already exist are not changed, so those created by
earlier versions need their permissions restricted manually.
(#8162) -
Fixed the experimental disk retry feature creating the directories in the
path of the retry directory before checking the directory they are created in
when running on .NET on non-Windows platforms. They are now created one at a
time, once the directory above has passed the checks.
(#8162) -
Breaking: When running on .NET on non-Windows platforms, a directory in
the path of the experimental disk retry directory which is writable by its
group or by other users is no longer accepted even if it has the sticky bit
set (such as/tmp), and a directory or symbolic link whose owner cannot be
determined is no longer accepted. Use a directory which only the
application's user can write to, or disable the checks by setting
OTEL_DOTNET_EXPERIMENTAL_OTLP_DISK_RETRY_CHECK_PERMISSIONStofalse.
(#8160)
See CHANGELOG for details.
-
-
NuGet: OpenTelemetry.Exporter.Zipkin v1.22.0-rc.1
No notable changes.
See CHANGELOG for details.
-
NuGet: OpenTelemetry.Extensions.Hosting v1.22.0-rc.1
No notable changes.
See CHANGELOG for details.
-
NuGet: OpenTelemetry.Extensions.Propagators v1.22.0-rc.1
No notable changes.
See CHANGELOG for details.