-
Make recording of
MinandMaxfor histograms configurable, enabled by default. (#2735) -
Changed default bucket boundaries for Explicit Bucket Histogram from [0, 5, 10, 25, 50, 75, 100, 250, 500, 1000] to [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000]. (#3722)
-
Fixed an issue where
LogRecord.ForEachScopemay return scopes from a previous log if accessed in a custom processor beforeBatchLogRecordExportProcessor.OnEndis fired. (#3731) -
Added support for loading environment variables from
IConfigurationwhen usingTracerProviderBuilderorMeterProviderBuilder(#3720)
Released 2022-Sep-29
-
Use binary search for histograms with 50 or more supplied boundaries. (#3252)
-
Allows samplers the ability to modify tracestate if desired. (#3610)
-
Added support for
UpDownCounterandObservableUpDownCounterinstruments. (#3606) -
Added support for dependency injection scenarios when configuring
MeterProvider(#3646) -
Revert new logging APIs pending OTel specification changes (#3702)
Released 2022-Aug-18
-
Added
Sdk.CreateLoggerProviderBuildermethod and support for dependency injection scenarios when configuringOpenTelemetryLoggerProvider(#3504) -
Added support for dependency injection scenarios when configuring
TracerProvider(#3533)
Released 2022-Aug-02
TracerProviderSDKmodified for spans with remote parent. For such spans activity will be created irrespective of SamplingResult, to maintain context propagation. (#3329)- Fix issue where a measurement would be dropped when recording it with a null-valued tag. (#3325)
CompositeProcessorwill now ensureParentProvideris set on its children (#3368)- Added
ForceFlushand helper ctors onOpenTelemetryLoggerProvider(#3364) Timestamp,TraceId,SpanId,TraceFlags,TraceState,CategoryName,LogLevel,EventId, &Exceptionproperties onLogRecordnow exposesetmethods (#3378)- Handle possible exception when initializing the default service name. (#3405)
LogRecordinstances are now reused to reduce memory pressure (#3385)- Fix exact match of activity source name when
wildcardis used. (#3446) - Added AddOpenTelemetry
ILoggingBuilderextensions which acceptOpenTelemetryLoggerProviderdirectly (#3489)
Released 2022-Jun-03
Released 2022-June-1
- Fix null reference exception when a metric view does not match an instrument. (#3285)
- Swallow
ObjectDisposedExceptioninBatchExportProcessorandPeriodicExportingMetricReader. (#3291) - Add
ConfigureResourcewhich can replace SetResourceBuilder more succinctly in most cases and has greater flexibility (applies to TracerProviderBuilder, MeterProviderBuilder, OpenTelemetryLoggingOptions). (#3307)
Released 2022-May-16
- Exposed public setters for
LogRecord.State,LogRecord.StateValues, andLogRecord.FormattedMessage. (#3217)
Released 2022-Apr-15
- Removes .NET Framework 4.6.1. The minimum .NET Framework version supported is .NET 4.6.2. (#3190)
- Bumped minimum required version of
Microsoft.Extensions.LoggingandMicrosoft.Extensions.Logging.Configurationto 3.1.0 (#2582)
Released 2022-Apr-15
- Make setter for
MetricReaderOptions.PeriodicExportingMetricReaderOptionsproperty public. (#3184)
Released 2022-Apr-12
- Removed the
Temporalitysetting onMetricReaderand replaced it withTemporalityPreference. This is a breaking change.TemporalityPreferenceis used to determine theAggregationTemporalityused on a per-instrument kind basis. Currently, there are two preferences:Cumulative: Measurements from all instrument kinds are aggregated usingAggregationTemporality.Cumulative.Delta: Measurements fromCounter,ObservableCounter, andHistograminstruments are aggregated usingAggregationTemporality.Delta. When UpDownCounters are supported with DiagnosticSource version 7.0 onwards, they will be aggregated usingAggregationTemporality.Cumulative. (#3153)
- Fix issue where
ExplicitBucketHistogramConfigurationcould be used to configure metric streams for instruments that are not histograms. Currently, it is not possible to change the aggregation of an instrument with views. This may be possible in the future. (#3126) - Conformed to the specification to ensure that each view that an instrument matches results in a new metric stream. With this change it is possible for views to introduce conflicting metric streams. Any conflicts encountered will result in a diagnostic log. (#3148)
Released 2022-Mar-30
- The
PeriodicExportingMetricReadernow accepts anExportIntervalMillisecondsof-1indicating an infinite export interval period. (#2982) - Fix bug where multiple views selecting a single instrument can result in duplicate updates to a single metric point. (#3006)
- Added the
PeriodicExportingMetricReaderOptions.ExportTimeoutMillisecondsoption. (#3038) - Removed
MetricReaderType. This enumeration was previously used when configuring a metric reader with an exporter to configure whether the export cycle would be periodic or manual (i.e., requiring a explicit call to flush metrics). This change affects the push-based metric exporters: OTLP, Console, and InMemory. For these exporters, a manual export cycle can now be achieved by settingPeriodicExportingMetricReaderOptions.ExportIntervalMillisecondsto-1. (#3038) - Marked members of the
MetricPointstructwhich do not mutate state asreadonly(#3065) - [Bug fix] OpenTelemetryLoggerProvider is now unaffected by changes to OpenTelemetryLoggerOptions after the LoggerFactory is built. (#3055)
Released 2022-Mar-04
- Instantiating multiple metric instruments with the same name and also identical in all other respects - same type, description, and unit - result in a single metric stream aggregating measurements from all the identical instruments. Instantiating multiple metric instruments with the same name but differ in some respect - different type, description, or unit - will result in a separate metric stream for each distinct instrument. (#2916)
- The
Meterproperty onOpenTelemetry.Metrics.Metrichas been removed. It now hasMeterNameandMeterVersionproperties. (#2916) - Added support for implementing custom
ResourceDetector. (#2949 #2897) - Perf improvement for Histogram and HistogramSumCount by implementing lock-free updates. (#2951 #2961)
Released 2022-Feb-02
- Make
MetricPointofMetricPointAccessorreadonly. (#2736) - Fail-fast when using AddView with guaranteed conflict. (#2751)
- Swallow
ObjectDisposedExceptionfrom theBatchExportProcessorworker thread. (#2844) - Performance improvement: when emitting metrics, users are strongly advised to provide tags with same Key order, to achieve maximum performance. (#2805)
Released 2021-Nov-29
- Prevent accessing activity Id before sampler runs in case of legacy activities. (#2659)
- Added
ReadOnlyTagCollectionand exposeTagsonMetricPointinstead ofKeys+Values(#2642) - Refactored
MetricPointand added public methods:GetBucketCounts,GetExplicitBounds,GetHistogramCount, andGetHistogramSum(#2657) - Remove MetricStreamConfiguration.Aggregation, as the feature to customize aggregation is not implemented yet. (#2660)
- Removed the public property
HistogramMeasurementsand added a public methodGetHistogramBucketsinstead. Renamed the classHistogramMeasurementstoHistogramBucketsand added an enumerator of typeHistogramBucketfor enumeratingBucketCountsandExplicitBounds. RemovedGetBucketCountsandGetExplicitBoundsmethods fromMetricPoint. (#2664) - Refactored temporality setting to align with the latest spec. (#2666)
- Removed the public properties
LongValue,DoubleValue, in favor of their counterpart public methodsGetSumLong,GetSumDouble,GetGaugeLastValueLong,GetGaugeLastValueDouble. (#2667) - MetricType modified to reserve bits for future types. (#2693)
Released 2021-Nov-19
- Renamed
HistogramConfigurationtoExplicitBucketHistogramConfigurationand changed its memberBucketBoundstoBoundaries. (#2638) - Metrics with the same name but from different meters are allowed. (#2634)
- Metrics SDK will not provide inactive Metrics to delta exporter. (#2629)
- Histogram bounds are validated when added to a View. (#2573)
- Changed
BatchExportActivityProcessorOptionsconstructor to throwFormatExceptionif it fails to parse any of the supported environment variables. - Added
BaseExporter.ForceFlush. (#2525) - Exposed public
Batch(T[] items, int count)constructor onBatch<T>struct (#2542) - Added wildcard support for AddMeter. (#2459)
- Add support for multiple Metric readers (#2596)
- Add ability to configure MaxMetricStreams, MaxMetricPointsPerMetricStream (#2635)
Released 2021-Oct-08
- Exception from Observable instrument callbacks does not result in entire metrics being lost.
- SDK is allocation-free on recording of measurements with up to 8 tags.
- TracerProviderBuilder.AddLegacySource now supports wildcard activity names. (#2183)
- Instrument and View names are validated according with the spec. (#2470)
Released 2021-Sep-23
BatchExportProcessor.OnShutdownwill now log the count of dropped telemetry items. (#2331)- Changed
CompositeProcessor<T>.OnForceFlushto meet with the spec requirement. Now the SDK will invokeForceFlushon all registered processors, even if there is a timeout. (#2388)
Released 2021-Sep-13
- Metrics perf improvements, bug fixes. Replace MetricProcessor with MetricReader. (#2306)
- Add
BatchExportActivityProcessorOptionswhich supports field value overriding usingOTEL_BSP_SCHEDULE_DELAY,OTEL_BSP_EXPORT_TIMEOUT,OTEL_BSP_MAX_QUEUE_SIZE,OTEL_BSP_MAX_EXPORT_BATCH_SIZEenvironmental variables as defined in the specification. (#2219)
Released 2021-Aug-24
- More Metrics features. All instrument types, push/pull exporters, Delta/Cumulative temporality supported.
ResourceBuilder.CreateDefaulthas detectors forOTEL_RESOURCE_ATTRIBUTES,OTEL_SERVICE_NAMEenvironment variables so that explicitAddEnvironmentVariableDetectorcall is not needed. (#2247)ResourceBuilder.AddEnvironmentVariableDetectorhandlesOTEL_SERVICE_NAMEenvironmental variable. (#2209)- Removes upper constraint for Microsoft.Extensions.Logging dependencies. (#2179)
- OpenTelemetryLogger modified to not throw, when the formatter supplied in ILogger.Log call is null. (#2200)
Released 2021-Jul-23
- Add basic Metrics support with a single pipeline, and supporting Counter (sync) instrument. Push and Pull exporters are supported. (#2174)
- Removes .NET Framework 4.5.2, .NET 4.6 support. The minimum .NET Framework version supported is .NET 4.6.1. (#2138)
Released 2021-Jul-12
Released 2021-Jun-25
- Moved
IDeferredTracerProviderBuilderto API library. (#2058)
Released 2021-Jun-09
Released 2021-May-11
AddLegacySource()moved out ofTracerProviderBuilderExtensionsand into public API (#2019)- Fixed an issue causing inconsistent log scopes when using
BatchLogRecordExportProcessor. To make parsing scopes easier theLogRecord.ForEachScopesignature has been changed to receive instances ofLogRecordScope(a new type which implementsIEnumerator<KeyValuePair<string, object>>for accessing scope items) (#2026)
Released 2021-Apr-23
- Use
AssemblyFileVersionAttributeinstead ofFileVersionInfo.GetVersionInfoto get the SDK version attribute to ensure that it works when the assembly is not loaded directly from a file on disk (#1908)
Released 2021-Mar-19
- Removed SuppressScope Increment/Decrement from DiagnosticSourceListeners. (1893)
- Added
TracerProviderBuilder.SetErrorStatusOnExceptionwhich automatically sets the activity status toErrorwhen exception happened. (#1858 #1875) - Added
ForceFlushtoTracerProvider. (#1837) - Added a TracerProviderBuilder extension method called
AddLegacySourcewhich is used by instrumentation libraries that use DiagnosticSource to get activities processed without ActivitySourceAdapter. #1836 #1860 - Added new constructor with optional parameters to allow customization of
ParentBasedSamplerbehavior. (#1727) - The application base directory is now tested after the current directory when searching for the self diagnostic configuration file. (#1865)
- Resource Attributes now accept primitive arrays as values. (#1852)
- Fixed
#1846:
ParentBasedSamplerwill no longer explicitly consider Activity links. (#1851) - Added
IncludeScopes,IncludeFormattedMessage, &ParseStateValuesonOpenTelemetryLoggerOptions. AddedFormattedMessage,StateValues, &ForEachScopeonLogRecord. (#1869 #1883) - Added
SetResourceBuildersupport toOpenTelemetryLoggerOptions. (#1913) - Added
IDeferredTracerProviderBuilderandTracerProviderBuilderBaseto support dependency injection through OpenTelemetry.Extensions.Hosting. (#1889)
Released 2021-Feb-10
Released 2021-Feb-09
Released 2021-Feb-04
- Default
Resourcewill now contain service.name instead of Telemetry SDK. (#1744) - Added GetDefaultResource() method to
Provider. (#1768)
Released 2021-Jan-29
- The following extension methods on
ResourceBuilderhas been moved from theOpenTelemetrynamespace to theOpenTelemetry.Resourcesnamespace:AddEnvironmentVariableDetector,AddAttributes,AddService, andAddTelemetrySdk. (#1576) - Metrics API/SDK support is in an experimental state and is not recommended for
production use. All metric APIs have been marked with the
Obsoleteattribute. See #1501 for more information. (#1611) - Modified SimpleExportProcessor and BatchExportProcessor to abstract classes; Added SimpleActivityExportProcessor, SimpleLogRecordExportProcessor, BatchActivityExportProcessor, BatchLogRecordExportProcessor; Added the check for Activity.Recorded in SimpleActivityExportProcessor and BatchActivityExportProcessor (#1622)
- Added check in
ActivitySourceAdapterclass for root activity if trace ID is overridden by callingSetParentId(#1355) - Resource Attributes now accept int, short, and float as values, converting them to supported data types (long for int/short, double for float). For invalid attributes we now throw an exception instead of logging an error. (#1720)
- Merging "this" resource with an "other" resource now prioritizes the "other" resource's attributes in a conflict. We've rectified to follow a recent change to the spec. We previously prioritized "this" resource's tags. (#1728)
BatchExportProcessorwill now flush any remaining spans left in aBatchafter the export operation has completed. (#1726)- Fixed a bug to allow the Self Diagnostics log file to be opened simultaneously by another process in read-only mode for .NET Framework. (#1693)
- Metrics removed as it is not part 1.0.0 release. See issue #1501 for details on Metric release plans.
- Fix Resource attribute telemetry.sdk.version to have correct file version.
- Metrics removed as it is not part 1.0.0 release. See issue #1501 for details on Metric release plans.
Released 2020-Nov-17
- Removed
GetResourceandSetResourceActivityextension methods. AddedGetResourceextension method onBaseProvider(#1463) - Added
ParentProviderproperty onBaseProcessorandBaseExporterclasses. (#1463) Resourceis no longer added to observedActivityobjects as aCustomProperty. (#1463)- Removed
ReentrantExportProcessoras it is not required by spec. (#1496) ActivitySourceAdaptersupports settingActivitySourcefor Activities created withoutActivitySource. (#1515)- Implemented
ShutdownforTracerProvider. (#1489) Resources.CreateServiceResourcehas been removed in favor of theResourceBuilderAPI. (#1533)TracerProviderBuilder.SetResourcehas been changed toTracerProviderBuilder.SetResourceBuilder. (#1533)- By default
TracerProviderwill set aResourcecontaining Telemetry SDK details (#1533):telemetry.sdk.name=opentelemetrytelemetry.sdk.language=dotnettelemetry.sdk.version= [SDK version]
Resourceconstructor marked as internal, asResourceBuilderis the recommended API to build resources. (#1566)- Changed BaseExportProcessor to have it override OnExport instead of OnEnd; Added check for ActivityTraceFlags to BaseExportProcessor OnEnd (#1574)
Released 2020-Nov-5
- TracerProviderBuilder API changes Renamed AddInstrumentation to AddDiagnosticSourceInstrumentation and made internal. Added AddInstrumentation (#1454)
- DiagnosticSource subscription helper classes (DiagnosticSourceSubscriber, ListenerHandler,PropertyFetcher) are made internal.
Released 2020-Oct-16
- Changed
ActivityExporter.OnShutdown,ActivityExporter.Shutdown,ActivityProcessor.OnShutdownandActivityProcessor.Shutdownto return boolean value (#1282 #1285) - Renamed
SamplingDecisionoptions (NotRecordtoDrop,RecordtoRecordOnly, andRecordAndSampledtoRecordAndSample) (#1297) - Added
ILogger/Microsoft.Extensions.Loggingintegration (#1308 #1315) - Changed exporter and processor to generic types
(#1328):
ActivityExporterchanged toBaseExporter<Activity>ActivityProcessorchanged toBaseProcessor<Activity>BatchExportActivityProcessorchanged toBatchExportProcessor<Activity>ReentrantExportActivityProcessorchanged toReentrantExportProcessor<Activity>SimpleExportActivityProcessorchanged toSimpleExportProcessor<Activity>
Released 2020-Sep-15
- Fixes 953
- Changes arising from
DiagnosticSourcechanges (#1203) PropertyFetcheris now public (#1232)PropertyFetcherchanged toPropertyFetcher<T>(#1238)
Released 2020-08-28
- Changed
ActivityProcessorto implementIDisposable(#975) - Samplers now get the actual TraceId of the Activity to be created. (#1007)
- Changed the default sampler from
AlwaysOntoParentOrElse(AlwaysOn)to match the spec (#1013) - Added
SuppressInstrumentationScopeAPI (#988 #1067) - Changed
BroadcastActivityProcessortoFanOutActivityProcessor(#1015) - Changed
TracerProviderBuilderandTracerProviderSdkdesign to simply the flow and usage (#1008 #1027 #1035) - Changed
AddActivitySourcetoAddSourcewith params support (#1036) - Modified Sampler implementation to match the spec (#1037)
- Refactored simple export and batch export APIs (#1078 #1081 #1083 #1085 #1087 #1094 #1113 #1127 #1129 #1135)
- Changed
MeterProviderBuilderandMeterProviderSdkdesign to simply the flow and usage (#1149) - Renamed
ParentOrElseSamplertoParentBasedSampler(#1173) - Renamed
ProbabilitySamplertoTraceIdRatioBasedSampler(#1174)
Released 2020-07-24
- First beta release
Released 2020-07-23
- Initial release