From 25c2d25797d8d9bef5ad60d172689a01faef9f85 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 11:59:14 -0700 Subject: [PATCH 01/28] Attempting to make it easier to have experimental public api in the repo. --- .github/workflows/ci.yml | 29 +- build/Common.prod.props | 8 +- build/Common.props | 5 + .../net462/PublicAPI.Shipped.txt | 0 .../net462/PublicAPI.Unshipped.txt | 0 .../net6.0}/PublicAPI.Shipped.txt | 0 .../net6.0}/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt | 221 +++++++++++++++ .../netstandard2.0/PublicAPI.Unshipped.txt | 80 ++++++ .../net462/PublicAPI.Shipped.txt} | 264 +++++++----------- .../net462/PublicAPI.Unshipped.txt} | 0 .../Stable/net6.0/PublicAPI.Shipped.txt | 221 +++++++++++++++ .../Stable/net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt | 221 +++++++++++++++ .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../Logs/IDeferredLoggerProviderBuilder.cs | 7 +- .../Logs/LogRecordAttributeList.cs | 7 +- src/OpenTelemetry.Api/Logs/LogRecordData.cs | 7 +- .../Logs/LogRecordSeverity.cs | 7 +- .../Logs/LogRecordSeverityExtensions.cs | 7 +- src/OpenTelemetry.Api/Logs/Logger.cs | 7 +- src/OpenTelemetry.Api/Logs/LoggerProvider.cs | 7 +- .../Logs/LoggerProviderBuilder.cs | 7 +- 23 files changed, 922 insertions(+), 183 deletions(-) rename src/OpenTelemetry.Api/.publicApi/{ => Experimental}/net462/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Api/.publicApi/{ => Experimental}/net462/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Api/.publicApi/{netstandard2.0 => Experimental/net6.0}/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Api/.publicApi/{netstandard2.0 => Experimental/net6.0}/PublicAPI.Unshipped.txt (100%) create mode 100644 src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt create mode 100644 src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt rename src/OpenTelemetry.Api/.publicApi/{net6.0/PublicAPI.Unshipped.txt => Stable/net462/PublicAPI.Shipped.txt} (77%) rename src/OpenTelemetry.Api/.publicApi/{net6.0/PublicAPI.Shipped.txt => Stable/net462/PublicAPI.Unshipped.txt} (100%) create mode 100644 src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt create mode 100644 src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt create mode 100644 src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 734959b70de..5528deb5bb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: - '**.md' jobs: - build-test: + build-test-stable: strategy: fail-fast: false # ensures the entire test matrix is run, even if one permutation fails matrix: @@ -31,7 +31,32 @@ jobs: run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=false + + - name: Test ${{ matrix.version }} + run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --logger:"console;verbosity=detailed" + + build-test-experimental: + strategy: + fail-fast: false # ensures the entire test matrix is run, even if one permutation fails + matrix: + os: [ windows-latest, ubuntu-latest ] + version: [ net462, net6.0, net7.0 ] + exclude: + - os: ubuntu-latest + version: net462 + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # fetching all + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=true - name: Test ${{ matrix.version }} run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --logger:"console;verbosity=detailed" diff --git a/build/Common.prod.props b/build/Common.prod.props index 776c5f22f90..2524b796f90 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -92,10 +92,10 @@ - - - - + + + + diff --git a/build/Common.props b/build/Common.props index d8de43e5213..ce47324c61b 100644 --- a/build/Common.props +++ b/build/Common.props @@ -10,6 +10,11 @@ enable + true + + + + $(DefineConstants);EXPOSE_EXPERIMENTAL_FEATURES diff --git a/src/OpenTelemetry.Api/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Api/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Api/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Api/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Api/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Api/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Api/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt new file mode 100644 index 00000000000..b33cbc15745 --- /dev/null +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt @@ -0,0 +1,221 @@ +#nullable enable +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T +abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.ActivityContextExtensions +OpenTelemetry.Baggage +OpenTelemetry.Baggage.Baggage() -> void +OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage +OpenTelemetry.Baggage.Count.get -> int +OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool +~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary +~OpenTelemetry.Baggage.GetBaggage(string name) -> string +~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator +~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage +OpenTelemetry.BaseProvider +OpenTelemetry.BaseProvider.~BaseProvider() -> void +OpenTelemetry.BaseProvider.BaseProvider() -> void +OpenTelemetry.BaseProvider.Dispose() -> void +OpenTelemetry.Context.AsyncLocalRuntimeContextSlot +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void +OpenTelemetry.Context.IRuntimeContextSlotValueAccessor +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void +OpenTelemetry.Context.Propagation.B3Propagator +OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void +OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void +OpenTelemetry.Context.Propagation.BaggagePropagator +OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void +OpenTelemetry.Context.Propagation.CompositeTextMapPropagator +~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void +OpenTelemetry.Context.Propagation.PropagationContext +OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext +OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage +OpenTelemetry.Context.Propagation.PropagationContext.Equals(OpenTelemetry.Context.Propagation.PropagationContext value) -> bool +OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext() -> void +OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext(System.Diagnostics.ActivityContext activityContext, OpenTelemetry.Baggage baggage) -> void +OpenTelemetry.Context.Propagation.Propagators +OpenTelemetry.Context.Propagation.TextMapPropagator +OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void +OpenTelemetry.Context.Propagation.TraceContextPropagator +OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void +OpenTelemetry.Context.RuntimeContext +OpenTelemetry.Context.RuntimeContextSlot +OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void +~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string +~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void +OpenTelemetry.Context.ThreadLocalRuntimeContextSlot +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void +OpenTelemetry.Metrics.IDeferredMeterProviderBuilder +~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Metrics.MeterProvider +OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void +OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void +OpenTelemetry.Trace.ActivityExtensions +OpenTelemetry.Trace.IDeferredTracerProviderBuilder +~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.Link +~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> +OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool +OpenTelemetry.Trace.Link.Link() -> void +OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void +~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void +OpenTelemetry.Trace.SpanAttributes +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void +OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void +~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void +OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool +OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool +OpenTelemetry.Trace.SpanContext.IsValid.get -> bool +OpenTelemetry.Trace.SpanContext.SpanContext() -> void +OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void +~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void +OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId +~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> +OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.Status +~OpenTelemetry.Trace.Status.Description.get -> string +OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool +OpenTelemetry.Trace.Status.Status() -> void +OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode +~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status +OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void +OpenTelemetry.Trace.TelemetrySpan.End() -> void +OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void +OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool +OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId +~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void +~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.Tracer +~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TracerProvider +~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer +OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void +OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void +~override OpenTelemetry.Baggage.Equals(object obj) -> bool +override OpenTelemetry.Baggage.GetHashCode() -> int +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void +~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool +override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void +~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool +override OpenTelemetry.Trace.Link.GetHashCode() -> int +~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool +override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int +~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool +override OpenTelemetry.Trace.Status.GetHashCode() -> int +~override OpenTelemetry.Trace.Status.ToString() -> string +static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool +static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.set -> void +~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary +~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string +~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator +static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator +~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type +~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void +~static OpenTelemetry.Context.RuntimeContext.GetSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot +~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> object +~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> T +~static OpenTelemetry.Context.RuntimeContext.RegisterSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot +~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, object value) -> void +~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, T value) -> void +~static OpenTelemetry.Trace.ActivityExtensions.GetStatus(this System.Diagnostics.Activity activity) -> OpenTelemetry.Trace.Status +~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void +~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void +~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void +static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext +static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan +~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan +~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider +static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status +virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void +virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..29b616ee92c --- /dev/null +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt @@ -0,0 +1,80 @@ +abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.Logger +OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void +OpenTelemetry.Logs.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Logger.Name.get -> string! +OpenTelemetry.Logs.Logger.Version.get -> string? +OpenTelemetry.Logs.LoggerProvider +OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.LoggerProviderBuilder +OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.LogRecordAttributeList +OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.LogRecordData +OpenTelemetry.Logs.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.LogRecordData.Body.set -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? +OpenTelemetry.Logs.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverityExtensions +static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList +static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 77% rename from src/OpenTelemetry.Api/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Api/.publicApi/Stable/net462/PublicAPI.Shipped.txt index 7f881125632..aed363d0ebd 100644 --- a/src/OpenTelemetry.Api/.publicApi/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Stable/net462/PublicAPI.Shipped.txt @@ -1,22 +1,45 @@ #nullable enable +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T +abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder OpenTelemetry.ActivityContextExtensions OpenTelemetry.Baggage OpenTelemetry.Baggage.Baggage() -> void OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage OpenTelemetry.Baggage.Count.get -> int OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool +~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary +~OpenTelemetry.Baggage.GetBaggage(string name) -> string +~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator +~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage OpenTelemetry.BaseProvider +OpenTelemetry.BaseProvider.~BaseProvider() -> void OpenTelemetry.BaseProvider.BaseProvider() -> void OpenTelemetry.BaseProvider.Dispose() -> void -OpenTelemetry.BaseProvider.~BaseProvider() -> void OpenTelemetry.Context.AsyncLocalRuntimeContextSlot +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void OpenTelemetry.Context.IRuntimeContextSlotValueAccessor +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void OpenTelemetry.Context.Propagation.B3Propagator OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void OpenTelemetry.Context.Propagation.BaggagePropagator OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void OpenTelemetry.Context.Propagation.CompositeTextMapPropagator +~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void OpenTelemetry.Context.Propagation.PropagationContext OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage @@ -28,108 +51,57 @@ OpenTelemetry.Context.Propagation.TextMapPropagator OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void OpenTelemetry.Context.Propagation.TraceContextPropagator OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void +OpenTelemetry.Context.RemotingRuntimeContextSlot +~OpenTelemetry.Context.RemotingRuntimeContextSlot.RemotingRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.RemotingRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.RemotingRuntimeContextSlot.Value.set -> void OpenTelemetry.Context.RuntimeContext OpenTelemetry.Context.RuntimeContextSlot OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void +~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string +~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void OpenTelemetry.Context.ThreadLocalRuntimeContextSlot -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.LogRecordAttributeList -OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.LogRecordData -OpenTelemetry.Logs.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.LogRecordData.Body.set -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? -OpenTelemetry.Logs.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverityExtensions -OpenTelemetry.Logs.Logger -OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void -OpenTelemetry.Logs.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Logger.Name.get -> string! -OpenTelemetry.Logs.Logger.Version.get -> string? -OpenTelemetry.Logs.LoggerProvider -OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.LoggerProviderBuilder -OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void OpenTelemetry.Metrics.IDeferredMeterProviderBuilder +~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder OpenTelemetry.Metrics.MeterProvider OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void OpenTelemetry.Metrics.MeterProviderBuilder OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void OpenTelemetry.Trace.ActivityExtensions OpenTelemetry.Trace.IDeferredTracerProviderBuilder +~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder OpenTelemetry.Trace.Link +~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool OpenTelemetry.Trace.Link.Link() -> void OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void +~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void OpenTelemetry.Trace.SpanAttributes +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void +~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void OpenTelemetry.Trace.SpanContext OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool OpenTelemetry.Trace.SpanContext.IsValid.get -> bool OpenTelemetry.Trace.SpanContext.SpanContext() -> void OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void +~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId +~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> OpenTelemetry.Trace.SpanKind OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind @@ -137,104 +109,28 @@ OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind OpenTelemetry.Trace.Status +~OpenTelemetry.Trace.Status.Description.get -> string OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool OpenTelemetry.Trace.Status.Status() -> void OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode +~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status OpenTelemetry.Trace.StatusCode OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void OpenTelemetry.Trace.TelemetrySpan.End() -> void OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void -OpenTelemetry.Trace.Tracer -OpenTelemetry.Trace.TracerProvider -OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void -OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void -abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T -abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void -abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! -override OpenTelemetry.Baggage.GetHashCode() -> int -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void -override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void -override OpenTelemetry.Trace.Link.GetHashCode() -> int -override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int -override OpenTelemetry.Trace.Status.GetHashCode() -> int -static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool -static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.set -> void -static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList -static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! -static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext -static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status -virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void -virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void -virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool -~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary -~OpenTelemetry.Baggage.GetBaggage(string name) -> string -~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator -~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void -~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void -~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string -~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void -~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder -~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder -~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> -~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void -~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void -~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> -~OpenTelemetry.Trace.Status.Description.get -> string -~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan @@ -243,22 +139,23 @@ virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out Open ~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void ~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.Tracer ~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan ~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TracerProvider ~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void +OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void ~override OpenTelemetry.Baggage.Equals(object obj) -> bool +override OpenTelemetry.Baggage.GetHashCode() -> int +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void ~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext ~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet ~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void @@ -269,20 +166,37 @@ virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out Open ~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet ~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void ~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool +override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int ~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext ~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet ~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +override OpenTelemetry.Context.RemotingRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.RemotingRuntimeContextSlot.Set(T value) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void ~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool +override OpenTelemetry.Trace.Link.GetHashCode() -> int ~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool +override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int ~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool +override OpenTelemetry.Trace.Status.GetHashCode() -> int ~override OpenTelemetry.Trace.Status.ToString() -> string +static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool +static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage ~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.set -> void ~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary ~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string ~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator +static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool ~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage ~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool ~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator ~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type ~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void @@ -296,6 +210,18 @@ virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out Open ~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void ~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void ~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void +static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext +static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool ~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan ~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider \ No newline at end of file +~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider +static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status +virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void +virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void diff --git a/src/OpenTelemetry.Api/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Stable/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Api/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Api/.publicApi/Stable/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt new file mode 100644 index 00000000000..b33cbc15745 --- /dev/null +++ b/src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt @@ -0,0 +1,221 @@ +#nullable enable +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T +abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.ActivityContextExtensions +OpenTelemetry.Baggage +OpenTelemetry.Baggage.Baggage() -> void +OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage +OpenTelemetry.Baggage.Count.get -> int +OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool +~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary +~OpenTelemetry.Baggage.GetBaggage(string name) -> string +~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator +~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage +OpenTelemetry.BaseProvider +OpenTelemetry.BaseProvider.~BaseProvider() -> void +OpenTelemetry.BaseProvider.BaseProvider() -> void +OpenTelemetry.BaseProvider.Dispose() -> void +OpenTelemetry.Context.AsyncLocalRuntimeContextSlot +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void +OpenTelemetry.Context.IRuntimeContextSlotValueAccessor +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void +OpenTelemetry.Context.Propagation.B3Propagator +OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void +OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void +OpenTelemetry.Context.Propagation.BaggagePropagator +OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void +OpenTelemetry.Context.Propagation.CompositeTextMapPropagator +~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void +OpenTelemetry.Context.Propagation.PropagationContext +OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext +OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage +OpenTelemetry.Context.Propagation.PropagationContext.Equals(OpenTelemetry.Context.Propagation.PropagationContext value) -> bool +OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext() -> void +OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext(System.Diagnostics.ActivityContext activityContext, OpenTelemetry.Baggage baggage) -> void +OpenTelemetry.Context.Propagation.Propagators +OpenTelemetry.Context.Propagation.TextMapPropagator +OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void +OpenTelemetry.Context.Propagation.TraceContextPropagator +OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void +OpenTelemetry.Context.RuntimeContext +OpenTelemetry.Context.RuntimeContextSlot +OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void +~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string +~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void +OpenTelemetry.Context.ThreadLocalRuntimeContextSlot +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void +OpenTelemetry.Metrics.IDeferredMeterProviderBuilder +~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Metrics.MeterProvider +OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void +OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void +OpenTelemetry.Trace.ActivityExtensions +OpenTelemetry.Trace.IDeferredTracerProviderBuilder +~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.Link +~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> +OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool +OpenTelemetry.Trace.Link.Link() -> void +OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void +~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void +OpenTelemetry.Trace.SpanAttributes +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void +OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void +~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void +OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool +OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool +OpenTelemetry.Trace.SpanContext.IsValid.get -> bool +OpenTelemetry.Trace.SpanContext.SpanContext() -> void +OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void +~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void +OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId +~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> +OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.Status +~OpenTelemetry.Trace.Status.Description.get -> string +OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool +OpenTelemetry.Trace.Status.Status() -> void +OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode +~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status +OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void +OpenTelemetry.Trace.TelemetrySpan.End() -> void +OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void +OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool +OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId +~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void +~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.Tracer +~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TracerProvider +~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer +OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void +OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void +~override OpenTelemetry.Baggage.Equals(object obj) -> bool +override OpenTelemetry.Baggage.GetHashCode() -> int +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void +~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool +override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void +~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool +override OpenTelemetry.Trace.Link.GetHashCode() -> int +~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool +override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int +~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool +override OpenTelemetry.Trace.Status.GetHashCode() -> int +~override OpenTelemetry.Trace.Status.ToString() -> string +static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool +static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.set -> void +~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary +~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string +~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator +static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator +~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type +~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void +~static OpenTelemetry.Context.RuntimeContext.GetSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot +~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> object +~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> T +~static OpenTelemetry.Context.RuntimeContext.RegisterSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot +~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, object value) -> void +~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, T value) -> void +~static OpenTelemetry.Trace.ActivityExtensions.GetStatus(this System.Diagnostics.Activity activity) -> OpenTelemetry.Trace.Status +~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void +~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void +~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void +static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext +static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan +~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan +~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider +static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status +virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void +virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void diff --git a/src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt new file mode 100644 index 00000000000..b33cbc15745 --- /dev/null +++ b/src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt @@ -0,0 +1,221 @@ +#nullable enable +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T +abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder +~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.ActivityContextExtensions +OpenTelemetry.Baggage +OpenTelemetry.Baggage.Baggage() -> void +OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage +OpenTelemetry.Baggage.Count.get -> int +OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool +~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary +~OpenTelemetry.Baggage.GetBaggage(string name) -> string +~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator +~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage +~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage +OpenTelemetry.BaseProvider +OpenTelemetry.BaseProvider.~BaseProvider() -> void +OpenTelemetry.BaseProvider.BaseProvider() -> void +OpenTelemetry.BaseProvider.Dispose() -> void +OpenTelemetry.Context.AsyncLocalRuntimeContextSlot +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void +OpenTelemetry.Context.IRuntimeContextSlotValueAccessor +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object +~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void +OpenTelemetry.Context.Propagation.B3Propagator +OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void +OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void +OpenTelemetry.Context.Propagation.BaggagePropagator +OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void +OpenTelemetry.Context.Propagation.CompositeTextMapPropagator +~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void +OpenTelemetry.Context.Propagation.PropagationContext +OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext +OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage +OpenTelemetry.Context.Propagation.PropagationContext.Equals(OpenTelemetry.Context.Propagation.PropagationContext value) -> bool +OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext() -> void +OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext(System.Diagnostics.ActivityContext activityContext, OpenTelemetry.Baggage baggage) -> void +OpenTelemetry.Context.Propagation.Propagators +OpenTelemetry.Context.Propagation.TextMapPropagator +OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void +OpenTelemetry.Context.Propagation.TraceContextPropagator +OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void +OpenTelemetry.Context.RuntimeContext +OpenTelemetry.Context.RuntimeContextSlot +OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void +~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string +~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void +OpenTelemetry.Context.ThreadLocalRuntimeContextSlot +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object +~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void +OpenTelemetry.Metrics.IDeferredMeterProviderBuilder +~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Metrics.MeterProvider +OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void +OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void +OpenTelemetry.Trace.ActivityExtensions +OpenTelemetry.Trace.IDeferredTracerProviderBuilder +~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.Link +~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> +OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool +OpenTelemetry.Trace.Link.Link() -> void +OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void +~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void +OpenTelemetry.Trace.SpanAttributes +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void +~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void +OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void +~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void +OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool +OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool +OpenTelemetry.Trace.SpanContext.IsValid.get -> bool +OpenTelemetry.Trace.SpanContext.SpanContext() -> void +OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void +~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void +OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId +~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> +OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind +OpenTelemetry.Trace.Status +~OpenTelemetry.Trace.Status.Description.get -> string +OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool +OpenTelemetry.Trace.Status.Status() -> void +OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode +~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status +OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode +OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext +OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void +OpenTelemetry.Trace.TelemetrySpan.End() -> void +OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void +OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool +OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId +~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void +~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.Tracer +~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan +OpenTelemetry.Trace.TracerProvider +~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer +OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void +OpenTelemetry.Trace.TracerProviderBuilder +OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void +~override OpenTelemetry.Baggage.Equals(object obj) -> bool +override OpenTelemetry.Baggage.GetHashCode() -> int +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void +~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.BaggagePropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool +override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet +~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T +override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void +~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool +override OpenTelemetry.Trace.Link.GetHashCode() -> int +~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool +override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int +~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool +override OpenTelemetry.Trace.Status.GetHashCode() -> int +~override OpenTelemetry.Trace.Status.ToString() -> string +static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool +static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage +static OpenTelemetry.Baggage.Current.set -> void +~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary +~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string +~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator +static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool +~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage +static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool +~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator +~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type +~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void +~static OpenTelemetry.Context.RuntimeContext.GetSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot +~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> object +~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> T +~static OpenTelemetry.Context.RuntimeContext.RegisterSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot +~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, object value) -> void +~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, T value) -> void +~static OpenTelemetry.Trace.ActivityExtensions.GetStatus(this System.Diagnostics.Activity activity) -> OpenTelemetry.Trace.Status +~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void +~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void +~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void +static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool +static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext +static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool +static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool +~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan +~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan +~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider +static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status +static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status +virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void +virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void diff --git a/src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs index 5c8585b799e..8ad7876365e 100644 --- a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs @@ -23,7 +23,12 @@ namespace OpenTelemetry.Logs; /// initialization using an to perform /// dependency injection. /// -public interface IDeferredLoggerProviderBuilder +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + interface IDeferredLoggerProviderBuilder { /// /// Register a callback action to configure the /// Stores attributes to be added to a log message. /// -public struct LogRecordAttributeList : IReadOnlyList> +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + struct LogRecordAttributeList : IReadOnlyList> { internal const int OverflowMaxCount = 8; internal const int OverflowAdditionalCapacity = 16; diff --git a/src/OpenTelemetry.Api/Logs/LogRecordData.cs b/src/OpenTelemetry.Api/Logs/LogRecordData.cs index 6daefdcee74..573c572cb71 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordData.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordData.cs @@ -23,7 +23,12 @@ namespace OpenTelemetry.Logs; /// /// Stores details about a log message. /// -public struct LogRecordData +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + struct LogRecordData { internal DateTime TimestampBacking = DateTime.UtcNow; diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs index 076cd2545c0..db3aeda666a 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs @@ -21,7 +21,12 @@ namespace OpenTelemetry.Logs; /// /// Describes the severity level of a log record. /// -public enum LogRecordSeverity +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + enum LogRecordSeverity { /// Unspecified severity (0). Unspecified = 0, diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs index f86892c3181..b6240dcaefc 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs @@ -21,7 +21,12 @@ namespace OpenTelemetry.Logs; /// /// Contains extension methods for the enum. /// -public static class LogRecordSeverityExtensions +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + static class LogRecordSeverityExtensions { internal const string UnspecifiedShortName = "UNSPECIFIED"; diff --git a/src/OpenTelemetry.Api/Logs/Logger.cs b/src/OpenTelemetry.Api/Logs/Logger.cs index 25bd741f113..7aaf6d64cc9 100644 --- a/src/OpenTelemetry.Api/Logs/Logger.cs +++ b/src/OpenTelemetry.Api/Logs/Logger.cs @@ -21,7 +21,12 @@ namespace OpenTelemetry.Logs; /// /// Logger is the class responsible for creating log records. /// -public abstract class Logger +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + abstract class Logger { /// /// Initializes a new instance of the class. diff --git a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs index e0d71637664..1fd545d4f6e 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs @@ -25,7 +25,12 @@ namespace OpenTelemetry.Logs; /// /// LoggerProvider is the entry point of the OpenTelemetry API. It provides access to . /// -public class LoggerProvider : BaseProvider +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + class LoggerProvider : BaseProvider { private static readonly NoopLogger NoopLogger = new(); diff --git a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs index c8379f46fb1..af0d219975e 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs @@ -21,7 +21,12 @@ namespace OpenTelemetry.Logs; /// /// LoggerProviderBuilder base class. /// -public abstract class LoggerProviderBuilder +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + abstract class LoggerProviderBuilder { /// /// Initializes a new instance of the class. From 6ac362a9664e810524e29770edebeaac52d9c264 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 12:04:40 -0700 Subject: [PATCH 02/28] Add condition to ExposeExperimentalFeatures definition. --- build/Common.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Common.props b/build/Common.props index ce47324c61b..8badf14c963 100644 --- a/build/Common.props +++ b/build/Common.props @@ -10,7 +10,7 @@ enable - true + true From 01b9eaeb39c32a28cf22c8df99c47c7735a1c58c Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 12:25:47 -0700 Subject: [PATCH 03/28] Drop the extra shipped public api files. --- build/Common.prod.props | 5 +- .../Experimental/net462/PublicAPI.Shipped.txt | 227 ------------------ .../Experimental/net6.0/PublicAPI.Shipped.txt | 221 ----------------- .../netstandard2.0/PublicAPI.Shipped.txt | 221 ----------------- 4 files changed, 3 insertions(+), 671 deletions(-) delete mode 100644 src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Shipped.txt delete mode 100644 src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Shipped.txt delete mode 100644 src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt diff --git a/build/Common.prod.props b/build/Common.prod.props index 2524b796f90..7f4f6d54791 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -92,8 +92,9 @@ - - + + + diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Shipped.txt deleted file mode 100644 index aed363d0ebd..00000000000 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Shipped.txt +++ /dev/null @@ -1,227 +0,0 @@ -#nullable enable -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T -abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.ActivityContextExtensions -OpenTelemetry.Baggage -OpenTelemetry.Baggage.Baggage() -> void -OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage -OpenTelemetry.Baggage.Count.get -> int -OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool -~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary -~OpenTelemetry.Baggage.GetBaggage(string name) -> string -~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator -~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage -OpenTelemetry.BaseProvider -OpenTelemetry.BaseProvider.~BaseProvider() -> void -OpenTelemetry.BaseProvider.BaseProvider() -> void -OpenTelemetry.BaseProvider.Dispose() -> void -OpenTelemetry.Context.AsyncLocalRuntimeContextSlot -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void -OpenTelemetry.Context.IRuntimeContextSlotValueAccessor -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void -OpenTelemetry.Context.Propagation.B3Propagator -OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void -OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void -OpenTelemetry.Context.Propagation.BaggagePropagator -OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void -OpenTelemetry.Context.Propagation.CompositeTextMapPropagator -~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void -OpenTelemetry.Context.Propagation.PropagationContext -OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext -OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage -OpenTelemetry.Context.Propagation.PropagationContext.Equals(OpenTelemetry.Context.Propagation.PropagationContext value) -> bool -OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext() -> void -OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext(System.Diagnostics.ActivityContext activityContext, OpenTelemetry.Baggage baggage) -> void -OpenTelemetry.Context.Propagation.Propagators -OpenTelemetry.Context.Propagation.TextMapPropagator -OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void -OpenTelemetry.Context.Propagation.TraceContextPropagator -OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void -OpenTelemetry.Context.RemotingRuntimeContextSlot -~OpenTelemetry.Context.RemotingRuntimeContextSlot.RemotingRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.RemotingRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.RemotingRuntimeContextSlot.Value.set -> void -OpenTelemetry.Context.RuntimeContext -OpenTelemetry.Context.RuntimeContextSlot -OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void -~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string -~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void -OpenTelemetry.Context.ThreadLocalRuntimeContextSlot -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void -OpenTelemetry.Metrics.IDeferredMeterProviderBuilder -~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder -OpenTelemetry.Metrics.MeterProvider -OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void -OpenTelemetry.Metrics.MeterProviderBuilder -OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void -OpenTelemetry.Trace.ActivityExtensions -OpenTelemetry.Trace.IDeferredTracerProviderBuilder -~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.Link -~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> -OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool -OpenTelemetry.Trace.Link.Link() -> void -OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void -~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void -OpenTelemetry.Trace.SpanAttributes -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void -OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void -~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void -OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool -OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool -OpenTelemetry.Trace.SpanContext.IsValid.get -> bool -OpenTelemetry.Trace.SpanContext.SpanContext() -> void -OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void -~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void -OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId -~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> -OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.Status -~OpenTelemetry.Trace.Status.Description.get -> string -OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool -OpenTelemetry.Trace.Status.Status() -> void -OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode -~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status -OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void -OpenTelemetry.Trace.TelemetrySpan.End() -> void -OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void -OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool -OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId -~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void -~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.Tracer -~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TracerProvider -~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer -OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void -OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void -~override OpenTelemetry.Baggage.Equals(object obj) -> bool -override OpenTelemetry.Baggage.GetHashCode() -> int -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void -~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool -override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -override OpenTelemetry.Context.RemotingRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.RemotingRuntimeContextSlot.Set(T value) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void -~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool -override OpenTelemetry.Trace.Link.GetHashCode() -> int -~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool -override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int -~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool -override OpenTelemetry.Trace.Status.GetHashCode() -> int -~override OpenTelemetry.Trace.Status.ToString() -> string -static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool -static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.set -> void -~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary -~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string -~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator -static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator -~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type -~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void -~static OpenTelemetry.Context.RuntimeContext.GetSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot -~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> object -~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> T -~static OpenTelemetry.Context.RuntimeContext.RegisterSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot -~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, object value) -> void -~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, T value) -> void -~static OpenTelemetry.Trace.ActivityExtensions.GetStatus(this System.Diagnostics.Activity activity) -> OpenTelemetry.Trace.Status -~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void -~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void -~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void -static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext -static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider -static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status -virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void -virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Shipped.txt deleted file mode 100644 index b33cbc15745..00000000000 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1,221 +0,0 @@ -#nullable enable -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T -abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.ActivityContextExtensions -OpenTelemetry.Baggage -OpenTelemetry.Baggage.Baggage() -> void -OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage -OpenTelemetry.Baggage.Count.get -> int -OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool -~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary -~OpenTelemetry.Baggage.GetBaggage(string name) -> string -~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator -~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage -OpenTelemetry.BaseProvider -OpenTelemetry.BaseProvider.~BaseProvider() -> void -OpenTelemetry.BaseProvider.BaseProvider() -> void -OpenTelemetry.BaseProvider.Dispose() -> void -OpenTelemetry.Context.AsyncLocalRuntimeContextSlot -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void -OpenTelemetry.Context.IRuntimeContextSlotValueAccessor -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void -OpenTelemetry.Context.Propagation.B3Propagator -OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void -OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void -OpenTelemetry.Context.Propagation.BaggagePropagator -OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void -OpenTelemetry.Context.Propagation.CompositeTextMapPropagator -~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void -OpenTelemetry.Context.Propagation.PropagationContext -OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext -OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage -OpenTelemetry.Context.Propagation.PropagationContext.Equals(OpenTelemetry.Context.Propagation.PropagationContext value) -> bool -OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext() -> void -OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext(System.Diagnostics.ActivityContext activityContext, OpenTelemetry.Baggage baggage) -> void -OpenTelemetry.Context.Propagation.Propagators -OpenTelemetry.Context.Propagation.TextMapPropagator -OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void -OpenTelemetry.Context.Propagation.TraceContextPropagator -OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void -OpenTelemetry.Context.RuntimeContext -OpenTelemetry.Context.RuntimeContextSlot -OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void -~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string -~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void -OpenTelemetry.Context.ThreadLocalRuntimeContextSlot -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void -OpenTelemetry.Metrics.IDeferredMeterProviderBuilder -~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder -OpenTelemetry.Metrics.MeterProvider -OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void -OpenTelemetry.Metrics.MeterProviderBuilder -OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void -OpenTelemetry.Trace.ActivityExtensions -OpenTelemetry.Trace.IDeferredTracerProviderBuilder -~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.Link -~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> -OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool -OpenTelemetry.Trace.Link.Link() -> void -OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void -~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void -OpenTelemetry.Trace.SpanAttributes -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void -OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void -~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void -OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool -OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool -OpenTelemetry.Trace.SpanContext.IsValid.get -> bool -OpenTelemetry.Trace.SpanContext.SpanContext() -> void -OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void -~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void -OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId -~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> -OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.Status -~OpenTelemetry.Trace.Status.Description.get -> string -OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool -OpenTelemetry.Trace.Status.Status() -> void -OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode -~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status -OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void -OpenTelemetry.Trace.TelemetrySpan.End() -> void -OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void -OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool -OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId -~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void -~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.Tracer -~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TracerProvider -~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer -OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void -OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void -~override OpenTelemetry.Baggage.Equals(object obj) -> bool -override OpenTelemetry.Baggage.GetHashCode() -> int -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void -~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool -override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void -~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool -override OpenTelemetry.Trace.Link.GetHashCode() -> int -~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool -override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int -~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool -override OpenTelemetry.Trace.Status.GetHashCode() -> int -~override OpenTelemetry.Trace.Status.ToString() -> string -static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool -static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.set -> void -~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary -~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string -~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator -static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator -~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type -~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void -~static OpenTelemetry.Context.RuntimeContext.GetSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot -~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> object -~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> T -~static OpenTelemetry.Context.RuntimeContext.RegisterSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot -~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, object value) -> void -~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, T value) -> void -~static OpenTelemetry.Trace.ActivityExtensions.GetStatus(this System.Diagnostics.Activity activity) -> OpenTelemetry.Trace.Status -~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void -~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void -~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void -static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext -static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider -static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status -virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void -virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt deleted file mode 100644 index b33cbc15745..00000000000 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1,221 +0,0 @@ -#nullable enable -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~abstract OpenTelemetry.Context.Propagation.TextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -abstract OpenTelemetry.Context.RuntimeContextSlot.Get() -> T -abstract OpenTelemetry.Context.RuntimeContextSlot.Set(T value) -> void -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Metrics.MeterProviderBuilder.AddMeter(params string[] names) -> OpenTelemetry.Metrics.MeterProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddInstrumentation(System.Func instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddLegacySource(string operationName) -> OpenTelemetry.Trace.TracerProviderBuilder -~abstract OpenTelemetry.Trace.TracerProviderBuilder.AddSource(params string[] names) -> OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.ActivityContextExtensions -OpenTelemetry.Baggage -OpenTelemetry.Baggage.Baggage() -> void -OpenTelemetry.Baggage.ClearBaggage() -> OpenTelemetry.Baggage -OpenTelemetry.Baggage.Count.get -> int -OpenTelemetry.Baggage.Equals(OpenTelemetry.Baggage other) -> bool -~OpenTelemetry.Baggage.GetBaggage() -> System.Collections.Generic.IReadOnlyDictionary -~OpenTelemetry.Baggage.GetBaggage(string name) -> string -~OpenTelemetry.Baggage.GetEnumerator() -> System.Collections.Generic.Dictionary.Enumerator -~OpenTelemetry.Baggage.RemoveBaggage(string name) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(params System.Collections.Generic.KeyValuePair[] baggageItems) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(string name, string value) -> OpenTelemetry.Baggage -~OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems) -> OpenTelemetry.Baggage -OpenTelemetry.BaseProvider -OpenTelemetry.BaseProvider.~BaseProvider() -> void -OpenTelemetry.BaseProvider.BaseProvider() -> void -OpenTelemetry.BaseProvider.Dispose() -> void -OpenTelemetry.Context.AsyncLocalRuntimeContextSlot -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.AsyncLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Value.set -> void -OpenTelemetry.Context.IRuntimeContextSlotValueAccessor -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.get -> object -~OpenTelemetry.Context.IRuntimeContextSlotValueAccessor.Value.set -> void -OpenTelemetry.Context.Propagation.B3Propagator -OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator() -> void -OpenTelemetry.Context.Propagation.B3Propagator.B3Propagator(bool singleHeader) -> void -OpenTelemetry.Context.Propagation.BaggagePropagator -OpenTelemetry.Context.Propagation.BaggagePropagator.BaggagePropagator() -> void -OpenTelemetry.Context.Propagation.CompositeTextMapPropagator -~OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.CompositeTextMapPropagator(System.Collections.Generic.IEnumerable propagators) -> void -OpenTelemetry.Context.Propagation.PropagationContext -OpenTelemetry.Context.Propagation.PropagationContext.ActivityContext.get -> System.Diagnostics.ActivityContext -OpenTelemetry.Context.Propagation.PropagationContext.Baggage.get -> OpenTelemetry.Baggage -OpenTelemetry.Context.Propagation.PropagationContext.Equals(OpenTelemetry.Context.Propagation.PropagationContext value) -> bool -OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext() -> void -OpenTelemetry.Context.Propagation.PropagationContext.PropagationContext(System.Diagnostics.ActivityContext activityContext, OpenTelemetry.Baggage baggage) -> void -OpenTelemetry.Context.Propagation.Propagators -OpenTelemetry.Context.Propagation.TextMapPropagator -OpenTelemetry.Context.Propagation.TextMapPropagator.TextMapPropagator() -> void -OpenTelemetry.Context.Propagation.TraceContextPropagator -OpenTelemetry.Context.Propagation.TraceContextPropagator.TraceContextPropagator() -> void -OpenTelemetry.Context.RuntimeContext -OpenTelemetry.Context.RuntimeContextSlot -OpenTelemetry.Context.RuntimeContextSlot.Dispose() -> void -~OpenTelemetry.Context.RuntimeContextSlot.Name.get -> string -~OpenTelemetry.Context.RuntimeContextSlot.RuntimeContextSlot(string name) -> void -OpenTelemetry.Context.ThreadLocalRuntimeContextSlot -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.ThreadLocalRuntimeContextSlot(string name) -> void -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.get -> object -~OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Value.set -> void -OpenTelemetry.Metrics.IDeferredMeterProviderBuilder -~OpenTelemetry.Metrics.IDeferredMeterProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Metrics.MeterProviderBuilder -OpenTelemetry.Metrics.MeterProvider -OpenTelemetry.Metrics.MeterProvider.MeterProvider() -> void -OpenTelemetry.Metrics.MeterProviderBuilder -OpenTelemetry.Metrics.MeterProviderBuilder.MeterProviderBuilder() -> void -OpenTelemetry.Trace.ActivityExtensions -OpenTelemetry.Trace.IDeferredTracerProviderBuilder -~OpenTelemetry.Trace.IDeferredTracerProviderBuilder.Configure(System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.Link -~OpenTelemetry.Trace.Link.Attributes.get -> System.Collections.Generic.IEnumerable> -OpenTelemetry.Trace.Link.Context.get -> OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.Link.Equals(OpenTelemetry.Trace.Link other) -> bool -OpenTelemetry.Trace.Link.Link() -> void -OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext) -> void -~OpenTelemetry.Trace.Link.Link(in OpenTelemetry.Trace.SpanContext spanContext, OpenTelemetry.Trace.SpanAttributes attributes) -> void -OpenTelemetry.Trace.SpanAttributes -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, bool[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, double[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, long[] values) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string value) -> void -~OpenTelemetry.Trace.SpanAttributes.Add(string key, string[] values) -> void -OpenTelemetry.Trace.SpanAttributes.SpanAttributes() -> void -~OpenTelemetry.Trace.SpanAttributes.SpanAttributes(System.Collections.Generic.IEnumerable> attributes) -> void -OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.SpanContext.Equals(OpenTelemetry.Trace.SpanContext other) -> bool -OpenTelemetry.Trace.SpanContext.IsRemote.get -> bool -OpenTelemetry.Trace.SpanContext.IsValid.get -> bool -OpenTelemetry.Trace.SpanContext.SpanContext() -> void -OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityContext activityContext) -> void -~OpenTelemetry.Trace.SpanContext.SpanContext(in System.Diagnostics.ActivityTraceId traceId, in System.Diagnostics.ActivitySpanId spanId, System.Diagnostics.ActivityTraceFlags traceFlags, bool isRemote = false, System.Collections.Generic.IEnumerable> traceState = null) -> void -OpenTelemetry.Trace.SpanContext.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Trace.SpanContext.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Trace.SpanContext.TraceId.get -> System.Diagnostics.ActivityTraceId -~OpenTelemetry.Trace.SpanContext.TraceState.get -> System.Collections.Generic.IEnumerable> -OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Client = 3 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Consumer = 5 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Internal = 1 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Producer = 4 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.SpanKind.Server = 2 -> OpenTelemetry.Trace.SpanKind -OpenTelemetry.Trace.Status -~OpenTelemetry.Trace.Status.Description.get -> string -OpenTelemetry.Trace.Status.Equals(OpenTelemetry.Trace.Status other) -> bool -OpenTelemetry.Trace.Status.Status() -> void -OpenTelemetry.Trace.Status.StatusCode.get -> OpenTelemetry.Trace.StatusCode -~OpenTelemetry.Trace.Status.WithDescription(string description) -> OpenTelemetry.Trace.Status -OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Error = 2 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Ok = 1 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.StatusCode.Unset = 0 -> OpenTelemetry.Trace.StatusCode -OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.AddEvent(string name, System.DateTimeOffset timestamp, OpenTelemetry.Trace.SpanAttributes attributes) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TelemetrySpan.Context.get -> OpenTelemetry.Trace.SpanContext -OpenTelemetry.Trace.TelemetrySpan.Dispose() -> void -OpenTelemetry.Trace.TelemetrySpan.End() -> void -OpenTelemetry.Trace.TelemetrySpan.End(System.DateTimeOffset endTimestamp) -> void -OpenTelemetry.Trace.TelemetrySpan.IsRecording.get -> bool -OpenTelemetry.Trace.TelemetrySpan.ParentSpanId.get -> System.Diagnostics.ActivitySpanId -~OpenTelemetry.Trace.TelemetrySpan.RecordException(string type, string message, string stacktrace) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.RecordException(System.Exception ex) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, bool[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, double[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, int[] values) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string value) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.TelemetrySpan.SetAttribute(string key, string[] values) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TelemetrySpan.SetStatus(OpenTelemetry.Trace.Status value) -> void -~OpenTelemetry.Trace.TelemetrySpan.UpdateName(string name) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.Tracer -~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartActiveSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartRootSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind = OpenTelemetry.Trace.SpanKind.Internal, in OpenTelemetry.Trace.SpanContext parentContext = default(OpenTelemetry.Trace.SpanContext), OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -~OpenTelemetry.Trace.Tracer.StartSpan(string name, OpenTelemetry.Trace.SpanKind kind, in OpenTelemetry.Trace.TelemetrySpan parentSpan, OpenTelemetry.Trace.SpanAttributes initialAttributes = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset startTime = default(System.DateTimeOffset)) -> OpenTelemetry.Trace.TelemetrySpan -OpenTelemetry.Trace.TracerProvider -~OpenTelemetry.Trace.TracerProvider.GetTracer(string name, string version = null) -> OpenTelemetry.Trace.Tracer -OpenTelemetry.Trace.TracerProvider.TracerProvider() -> void -OpenTelemetry.Trace.TracerProviderBuilder -OpenTelemetry.Trace.TracerProviderBuilder.TracerProviderBuilder() -> void -~override OpenTelemetry.Baggage.Equals(object obj) -> bool -override OpenTelemetry.Baggage.GetHashCode() -> int -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.AsyncLocalRuntimeContextSlot.Set(T value) -> void -~override OpenTelemetry.Context.Propagation.B3Propagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.B3Propagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.B3Propagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.BaggagePropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.CompositeTextMapPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -~override OpenTelemetry.Context.Propagation.PropagationContext.Equals(object obj) -> bool -override OpenTelemetry.Context.Propagation.PropagationContext.GetHashCode() -> int -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Extract(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Func> getter) -> OpenTelemetry.Context.Propagation.PropagationContext -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Fields.get -> System.Collections.Generic.ISet -~override OpenTelemetry.Context.Propagation.TraceContextPropagator.Inject(OpenTelemetry.Context.Propagation.PropagationContext context, T carrier, System.Action setter) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Dispose(bool disposing) -> void -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Get() -> T -override OpenTelemetry.Context.ThreadLocalRuntimeContextSlot.Set(T value) -> void -~override OpenTelemetry.Trace.Link.Equals(object obj) -> bool -override OpenTelemetry.Trace.Link.GetHashCode() -> int -~override OpenTelemetry.Trace.SpanContext.Equals(object obj) -> bool -override OpenTelemetry.Trace.SpanContext.GetHashCode() -> int -~override OpenTelemetry.Trace.Status.Equals(object obj) -> bool -override OpenTelemetry.Trace.Status.GetHashCode() -> int -~override OpenTelemetry.Trace.Status.ToString() -> string -static OpenTelemetry.ActivityContextExtensions.IsValid(this System.Diagnostics.ActivityContext ctx) -> bool -static OpenTelemetry.Baggage.ClearBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.Create(System.Collections.Generic.Dictionary baggageItems = null) -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.get -> OpenTelemetry.Baggage -static OpenTelemetry.Baggage.Current.set -> void -~static OpenTelemetry.Baggage.GetBaggage(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.IReadOnlyDictionary -~static OpenTelemetry.Baggage.GetBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> string -~static OpenTelemetry.Baggage.GetEnumerator(OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> System.Collections.Generic.Dictionary.Enumerator -static OpenTelemetry.Baggage.operator !=(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -static OpenTelemetry.Baggage.operator ==(OpenTelemetry.Baggage left, OpenTelemetry.Baggage right) -> bool -~static OpenTelemetry.Baggage.RemoveBaggage(string name, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(string name, string value, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -~static OpenTelemetry.Baggage.SetBaggage(System.Collections.Generic.IEnumerable> baggageItems, OpenTelemetry.Baggage baggage = default(OpenTelemetry.Baggage)) -> OpenTelemetry.Baggage -static OpenTelemetry.Context.Propagation.PropagationContext.operator !=(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -static OpenTelemetry.Context.Propagation.PropagationContext.operator ==(OpenTelemetry.Context.Propagation.PropagationContext left, OpenTelemetry.Context.Propagation.PropagationContext right) -> bool -~static OpenTelemetry.Context.Propagation.Propagators.DefaultTextMapPropagator.get -> OpenTelemetry.Context.Propagation.TextMapPropagator -~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.get -> System.Type -~static OpenTelemetry.Context.RuntimeContext.ContextSlotType.set -> void -~static OpenTelemetry.Context.RuntimeContext.GetSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot -~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> object -~static OpenTelemetry.Context.RuntimeContext.GetValue(string slotName) -> T -~static OpenTelemetry.Context.RuntimeContext.RegisterSlot(string slotName) -> OpenTelemetry.Context.RuntimeContextSlot -~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, object value) -> void -~static OpenTelemetry.Context.RuntimeContext.SetValue(string slotName, T value) -> void -~static OpenTelemetry.Trace.ActivityExtensions.GetStatus(this System.Diagnostics.Activity activity) -> OpenTelemetry.Trace.Status -~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex) -> void -~static OpenTelemetry.Trace.ActivityExtensions.RecordException(this System.Diagnostics.Activity activity, System.Exception ex, in System.Diagnostics.TagList tags) -> void -~static OpenTelemetry.Trace.ActivityExtensions.SetStatus(this System.Diagnostics.Activity activity, OpenTelemetry.Trace.Status status) -> void -static OpenTelemetry.Trace.Link.operator !=(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.Link.operator ==(OpenTelemetry.Trace.Link link1, OpenTelemetry.Trace.Link link2) -> bool -static OpenTelemetry.Trace.SpanContext.implicit operator System.Diagnostics.ActivityContext(OpenTelemetry.Trace.SpanContext spanContext) -> System.Diagnostics.ActivityContext -static OpenTelemetry.Trace.SpanContext.operator !=(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.SpanContext.operator ==(OpenTelemetry.Trace.SpanContext spanContext1, OpenTelemetry.Trace.SpanContext spanContext2) -> bool -static OpenTelemetry.Trace.Status.operator !=(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -static OpenTelemetry.Trace.Status.operator ==(OpenTelemetry.Trace.Status status1, OpenTelemetry.Trace.Status status2) -> bool -~static OpenTelemetry.Trace.Tracer.CurrentSpan.get -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.Tracer.WithSpan(OpenTelemetry.Trace.TelemetrySpan span) -> OpenTelemetry.Trace.TelemetrySpan -~static OpenTelemetry.Trace.TracerProvider.Default.get -> OpenTelemetry.Trace.TracerProvider -static readonly OpenTelemetry.Trace.Status.Error -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Ok -> OpenTelemetry.Trace.Status -static readonly OpenTelemetry.Trace.Status.Unset -> OpenTelemetry.Trace.Status -virtual OpenTelemetry.BaseProvider.Dispose(bool disposing) -> void -virtual OpenTelemetry.Context.RuntimeContextSlot.Dispose(bool disposing) -> void From 64f0d85684c0c8e006b8bc30a36e3ca2b095e24d Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 12:56:40 -0700 Subject: [PATCH 04/28] Upgrade Microsoft.CodeAnalysis.PublicApiAnalyzers to latest beta. --- Directory.Packages.props | 2 +- NuGet.config | 9 +++++---- build/Common.prod.props | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 52161d4fc28..305524253fa 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -15,7 +15,7 @@ - + diff --git a/NuGet.config b/NuGet.config index c821ba89f4e..ee7d2ecd56c 100644 --- a/NuGet.config +++ b/NuGet.config @@ -1,11 +1,9 @@ - + - + @@ -16,6 +14,9 @@ + + + diff --git a/build/Common.prod.props b/build/Common.prod.props index 7f4f6d54791..f459024ab2b 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -92,8 +92,7 @@ - - + From 3570de08ced467111806922410e75f4a9f523fc4 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 13:08:09 -0700 Subject: [PATCH 05/28] Tweak. --- build/Common.prod.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Common.prod.props b/build/Common.prod.props index f459024ab2b..eb1ba319c38 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -93,7 +93,7 @@ - + From ca84fcf6c9de575f328917eb32455828d832b5a5 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 13:35:13 -0700 Subject: [PATCH 06/28] Added public api definitions that seem to be needed by the new beta. --- .../.publicApi/net6.0/PublicAPI.Unshipped.txt | 1 + .../.publicApi/net7.0/PublicAPI.Unshipped.txt | 1 + .../.publicApi/netstandard2.0/PublicAPI.Unshipped.txt | 1 + .../.publicApi/netstandard2.1/PublicAPI.Unshipped.txt | 1 + 4 files changed, 4 insertions(+) diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net6.0/PublicAPI.Unshipped.txt index b65b99a84c4..88cc5073da4 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net6.0/PublicAPI.Unshipped.txt @@ -27,3 +27,4 @@ static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddAspNetCoreInstrum static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder +virtual OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreMetricsInstrumentationOptions.AspNetCoreMetricEnrichmentFunc.Invoke(string name, Microsoft.AspNetCore.Http.HttpContext context, ref System.Diagnostics.TagList tags) -> void diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net7.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net7.0/PublicAPI.Unshipped.txt index b65b99a84c4..88cc5073da4 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net7.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/net7.0/PublicAPI.Unshipped.txt @@ -27,3 +27,4 @@ static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddAspNetCoreInstrum static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder +virtual OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreMetricsInstrumentationOptions.AspNetCoreMetricEnrichmentFunc.Invoke(string name, Microsoft.AspNetCore.Http.HttpContext context, ref System.Diagnostics.TagList tags) -> void diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt index 68b0a198212..0d816a0b829 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt @@ -25,3 +25,4 @@ static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddAspNetCoreInstrum static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder +virtual OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreMetricsInstrumentationOptions.AspNetCoreMetricEnrichmentFunc.Invoke(string name, Microsoft.AspNetCore.Http.HttpContext context, ref System.Diagnostics.TagList tags) -> void diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt index b65b99a84c4..88cc5073da4 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt @@ -27,3 +27,4 @@ static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddAspNetCoreInstrum static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddAspNetCoreInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configureAspNetCoreInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder +virtual OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreMetricsInstrumentationOptions.AspNetCoreMetricEnrichmentFunc.Invoke(string name, Microsoft.AspNetCore.Http.HttpContext context, ref System.Diagnostics.TagList tags) -> void From e9ba3844667594c3041269d2f0c31ad9e352916a Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 16:45:51 -0700 Subject: [PATCH 07/28] Use an experimental namespace. --- .../net462/PublicAPI.Unshipped.txt | 160 +++++++++--------- .../net6.0/PublicAPI.Unshipped.txt | 160 +++++++++--------- .../netstandard2.0/PublicAPI.Unshipped.txt | 160 +++++++++--------- src/OpenTelemetry.Api/CHANGELOG.md | 12 +- .../Logs/IDeferredLoggerProviderBuilder.cs | 4 + .../Logs/LogRecordAttributeList.cs | 4 + src/OpenTelemetry.Api/Logs/LogRecordData.cs | 4 + .../Logs/LogRecordSeverity.cs | 4 + .../Logs/LogRecordSeverityExtensions.cs | 4 + src/OpenTelemetry.Api/Logs/Logger.cs | 4 + src/OpenTelemetry.Api/Logs/LoggerProvider.cs | 4 + .../Logs/LoggerProviderBuilder.cs | 4 + src/OpenTelemetry.Api/Logs/NoopLogger.cs | 4 + 13 files changed, 282 insertions(+), 246 deletions(-) diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt index 29b616ee92c..ea5ff9ec1db 100644 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt @@ -1,80 +1,80 @@ -abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.Logger -OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void -OpenTelemetry.Logs.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Logger.Name.get -> string! -OpenTelemetry.Logs.Logger.Version.get -> string? -OpenTelemetry.Logs.LoggerProvider -OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.LoggerProviderBuilder -OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void -OpenTelemetry.Logs.LogRecordAttributeList -OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.LogRecordData -OpenTelemetry.Logs.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.LogRecordData.Body.set -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? -OpenTelemetry.Logs.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverityExtensions -static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList -static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! -virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool +abstract OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data, in OpenTelemetry.Logs.Experimental.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! +OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! +OpenTelemetry.Logs.Experimental.Logger +OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data) -> void +OpenTelemetry.Logs.Experimental.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Experimental.Logger.Name.get -> string! +OpenTelemetry.Logs.Experimental.Logger.Version.get -> string? +OpenTelemetry.Logs.Experimental.LoggerProvider +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.Experimental.LoggerProviderBuilder +OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.Experimental.LogRecordData +OpenTelemetry.Logs.Experimental.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.Experimental.LogRecordData.Body.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.Experimental.LogRecordData.Severity.get -> OpenTelemetry.Logs.Experimental.LogRecordSeverity? +OpenTelemetry.Logs.Experimental.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions +static OpenTelemetry.Logs.Experimental.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList +static OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.Experimental.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.Experimental.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Experimental.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt index 29b616ee92c..ea5ff9ec1db 100644 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -1,80 +1,80 @@ -abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.Logger -OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void -OpenTelemetry.Logs.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Logger.Name.get -> string! -OpenTelemetry.Logs.Logger.Version.get -> string? -OpenTelemetry.Logs.LoggerProvider -OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.LoggerProviderBuilder -OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void -OpenTelemetry.Logs.LogRecordAttributeList -OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.LogRecordData -OpenTelemetry.Logs.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.LogRecordData.Body.set -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? -OpenTelemetry.Logs.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverityExtensions -static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList -static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! -virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool +abstract OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data, in OpenTelemetry.Logs.Experimental.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! +OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! +OpenTelemetry.Logs.Experimental.Logger +OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data) -> void +OpenTelemetry.Logs.Experimental.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Experimental.Logger.Name.get -> string! +OpenTelemetry.Logs.Experimental.Logger.Version.get -> string? +OpenTelemetry.Logs.Experimental.LoggerProvider +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.Experimental.LoggerProviderBuilder +OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.Experimental.LogRecordData +OpenTelemetry.Logs.Experimental.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.Experimental.LogRecordData.Body.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.Experimental.LogRecordData.Severity.get -> OpenTelemetry.Logs.Experimental.LogRecordSeverity? +OpenTelemetry.Logs.Experimental.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions +static OpenTelemetry.Logs.Experimental.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList +static OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.Experimental.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.Experimental.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Experimental.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt index 29b616ee92c..ea5ff9ec1db 100644 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt @@ -1,80 +1,80 @@ -abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! -OpenTelemetry.Logs.Logger -OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void -OpenTelemetry.Logs.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Logger.Name.get -> string! -OpenTelemetry.Logs.Logger.Version.get -> string? -OpenTelemetry.Logs.LoggerProvider -OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! -OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.LoggerProviderBuilder -OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void -OpenTelemetry.Logs.LogRecordAttributeList -OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.LogRecordData -OpenTelemetry.Logs.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.LogRecordData.Body.set -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? -OpenTelemetry.Logs.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity -OpenTelemetry.Logs.LogRecordSeverityExtensions -static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList -static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! -virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool +abstract OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data, in OpenTelemetry.Logs.Experimental.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! +OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! +OpenTelemetry.Logs.Experimental.Logger +OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data) -> void +OpenTelemetry.Logs.Experimental.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Experimental.Logger.Name.get -> string! +OpenTelemetry.Logs.Experimental.Logger.Version.get -> string? +OpenTelemetry.Logs.Experimental.LoggerProvider +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Experimental.Logger! +OpenTelemetry.Logs.Experimental.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.Experimental.LoggerProviderBuilder +OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.Experimental.LogRecordData +OpenTelemetry.Logs.Experimental.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.Experimental.LogRecordData.Body.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.Experimental.LogRecordData.Severity.get -> OpenTelemetry.Logs.Experimental.LogRecordSeverity? +OpenTelemetry.Logs.Experimental.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity +OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions +static OpenTelemetry.Logs.Experimental.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList +static OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.Experimental.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.Experimental.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Experimental.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/CHANGELOG.md b/src/OpenTelemetry.Api/CHANGELOG.md index 30bd4685d90..1cd2eddfa1a 100644 --- a/src/OpenTelemetry.Api/CHANGELOG.md +++ b/src/OpenTelemetry.Api/CHANGELOG.md @@ -9,19 +9,19 @@ Released 2023-Jul-12 * Updated `System.Diagnostics.DiagnosticSource` package version to `7.0.2`. ([#4576](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4576)) -* **Breaking change** In order to make `RuntimeContext` compatible with - ahead-of-time compilation (AOT), - `RuntimeContext.ContextSlotType` can only be assigned one - of the following types: `AsyncLocalRuntimeContextSlot<>`, +* **Breaking change:** In order to make `RuntimeContext` compatible with + ahead-of-time compilation (AOT), `RuntimeContext.ContextSlotType` can only be + assigned one of the following types: `AsyncLocalRuntimeContextSlot<>`, `ThreadLocalRuntimeContextSlot<>`, and `RemotingRuntimeContextSlot<>`. A `System.NotSupportedException` will be thrown if you try to assign any type other than the three types mentioned. ([#4542](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4542)) -* Added [Logs Bridge +* **Experimental (pre-release builds only):** Added [Logs Bridge API](https://github.com/open-telemetry/opentelemetry-specification/blob/976432b74c565e8a84af3570e9b82cb95e1d844c/specification/logs/bridge-api.md) implementation (`LoggerProviderBuilder`, `LoggerProvider`, `Logger`, etc.). - ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) + ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433), + [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735)) ## 1.5.1 diff --git a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs index 8ad7876365e..53a72b71bed 100644 --- a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs @@ -16,7 +16,11 @@ #nullable enable +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// Describes a logger provider builder that supports deferred diff --git a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs index 68e43e6ad73..558aa719315 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs @@ -22,7 +22,11 @@ using OpenTelemetry.Internal; using OpenTelemetry.Trace; +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// Stores attributes to be added to a log message. diff --git a/src/OpenTelemetry.Api/Logs/LogRecordData.cs b/src/OpenTelemetry.Api/Logs/LogRecordData.cs index 573c572cb71..5d0ab36d1b5 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordData.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordData.cs @@ -18,7 +18,11 @@ using System.Diagnostics; +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// Stores details about a log message. diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs index db3aeda666a..09860962554 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs @@ -16,7 +16,11 @@ #nullable enable +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// Describes the severity level of a log record. diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs index b6240dcaefc..b9dab106649 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs @@ -16,7 +16,11 @@ #nullable enable +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// Contains extension methods for the enum. diff --git a/src/OpenTelemetry.Api/Logs/Logger.cs b/src/OpenTelemetry.Api/Logs/Logger.cs index 7aaf6d64cc9..3962b9ef270 100644 --- a/src/OpenTelemetry.Api/Logs/Logger.cs +++ b/src/OpenTelemetry.Api/Logs/Logger.cs @@ -16,7 +16,11 @@ #nullable enable +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// Logger is the class responsible for creating log records. diff --git a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs index 1fd545d4f6e..eef75966631 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs @@ -20,7 +20,11 @@ using System.Diagnostics.CodeAnalysis; #endif +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// LoggerProvider is the entry point of the OpenTelemetry API. It provides access to . diff --git a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs index af0d219975e..ae0c8e92f50 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs @@ -16,7 +16,11 @@ #nullable enable +#if EXPOSE_EXPERIMENTAL_FEATURES +namespace OpenTelemetry.Logs.Experimental; +#else namespace OpenTelemetry.Logs; +#endif /// /// LoggerProviderBuilder base class. diff --git a/src/OpenTelemetry.Api/Logs/NoopLogger.cs b/src/OpenTelemetry.Api/Logs/NoopLogger.cs index 51ba1d81042..14be1c0f46a 100644 --- a/src/OpenTelemetry.Api/Logs/NoopLogger.cs +++ b/src/OpenTelemetry.Api/Logs/NoopLogger.cs @@ -16,6 +16,10 @@ #nullable enable +#if EXPOSE_EXPERIMENTAL_FEATURES +using OpenTelemetry.Logs.Experimental; +#endif + namespace OpenTelemetry.Logs; internal sealed class NoopLogger : Logger From 29cc171275817f70b2f76defec27aee10b1d87e1 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 2 Aug 2023 17:10:56 -0700 Subject: [PATCH 08/28] Automatically set ExposeExperimentalFeatures in publish workflow. --- build/Common.prod.props | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/Common.prod.props b/build/Common.prod.props index eb1ba319c38..69bfab4b8ce 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -49,14 +49,17 @@ $(NoWarn),1573,1712 $(Build_ArtifactStagingDirectory) true - $(RepoRoot)\build\GlobalAttrExclusions.txt $(MinVerMajor).$(MinVerMinor).$(MinVerPatch).$(BuildNumber) + true + false + + From 4654de745489ae08ff41ad2675c55fac2dd32b8c Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Thu, 3 Aug 2023 10:27:29 -0700 Subject: [PATCH 09/28] Code review. --- .github/workflows/apicompatibility.yml | 2 +- .github/workflows/code-coverage.yml | 2 +- NuGet.config | 4 ++-- build/assert-publish-aot-testApp-warning-count.ps1 | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/apicompatibility.yml b/.github/workflows/apicompatibility.yml index ec6706fdfab..af6f05794d1 100644 --- a/.github/workflows/apicompatibility.yml +++ b/.github/workflows/apicompatibility.yml @@ -21,4 +21,4 @@ jobs: run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=true diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 4a68cb93e41..120a5e1ab6c 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -28,7 +28,7 @@ jobs: run: dotnet restore - name: dotnet build - run: dotnet build --configuration Release --no-restore + run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=true # - name: dotnet test # run: dotnet test --collect:"XPlat Code Coverage" --results-directory:"TestResults" --configuration Release --no-build -- RunConfiguration.DisableAppDomain=true diff --git a/NuGet.config b/NuGet.config index ee7d2ecd56c..6f5c8246395 100644 --- a/NuGet.config +++ b/NuGet.config @@ -15,10 +15,10 @@ - + - + diff --git a/build/assert-publish-aot-testApp-warning-count.ps1 b/build/assert-publish-aot-testApp-warning-count.ps1 index 217c421b0ab..8c5fe4860e5 100644 --- a/build/assert-publish-aot-testApp-warning-count.ps1 +++ b/build/assert-publish-aot-testApp-warning-count.ps1 @@ -1,11 +1,11 @@ $rootDirectory = Split-Path $PSScriptRoot -Parent -$publishOutput = dotnet publish $rootDirectory\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj -nodeReuse:false /p:UseSharedCompilation=false +$publishOutput = dotnet publish $rootDirectory\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj -nodeReuse:false /p:UseSharedCompilation=false /p:ExposeExperimentalFeatures=true $actualWarningCount = 0 foreach ($line in $($publishOutput -split "`r`n")) { - if ($line -like "*analysis warning IL*") + if ($line -like "*analysis warning IL*") { $actualWarningCount += 1 } From 3a8e562a228b3c9823f26b005bcc9b90b96df641 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Mon, 7 Aug 2023 16:49:06 -0700 Subject: [PATCH 10/28] Revert experimental namespace. Add XML remarks to public versions. --- .../net462/PublicAPI.Unshipped.txt | 160 +++++++++--------- .../net6.0/PublicAPI.Unshipped.txt | 160 +++++++++--------- .../netstandard2.0/PublicAPI.Unshipped.txt | 160 +++++++++--------- .../Logs/IDeferredLoggerProviderBuilder.cs | 12 +- .../Logs/LogRecordAttributeList.cs | 10 +- src/OpenTelemetry.Api/Logs/LogRecordData.cs | 10 +- .../Logs/LogRecordSeverity.cs | 10 +- .../Logs/LogRecordSeverityExtensions.cs | 10 +- src/OpenTelemetry.Api/Logs/Logger.cs | 10 +- src/OpenTelemetry.Api/Logs/LoggerProvider.cs | 10 +- .../Logs/LoggerProviderBuilder.cs | 10 +- src/OpenTelemetry.Api/Logs/NoopLogger.cs | 4 - 12 files changed, 282 insertions(+), 284 deletions(-) diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt index ea5ff9ec1db..29b616ee92c 100644 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt @@ -1,80 +1,80 @@ -abstract OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data, in OpenTelemetry.Logs.Experimental.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! -OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! -OpenTelemetry.Logs.Experimental.Logger -OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data) -> void -OpenTelemetry.Logs.Experimental.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Experimental.Logger.Name.get -> string! -OpenTelemetry.Logs.Experimental.Logger.Version.get -> string? -OpenTelemetry.Logs.Experimental.LoggerProvider -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.Experimental.LoggerProviderBuilder -OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.LoggerProviderBuilder() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.Experimental.LogRecordData -OpenTelemetry.Logs.Experimental.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.Experimental.LogRecordData.Body.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.Experimental.LogRecordData.Severity.get -> OpenTelemetry.Logs.Experimental.LogRecordSeverity? -OpenTelemetry.Logs.Experimental.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions -static OpenTelemetry.Logs.Experimental.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList -static OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.Experimental.LogRecordSeverity logRecordSeverity) -> string! -virtual OpenTelemetry.Logs.Experimental.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Experimental.Logger? logger) -> bool +abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.Logger +OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void +OpenTelemetry.Logs.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Logger.Name.get -> string! +OpenTelemetry.Logs.Logger.Version.get -> string? +OpenTelemetry.Logs.LoggerProvider +OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.LoggerProviderBuilder +OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.LogRecordAttributeList +OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.LogRecordData +OpenTelemetry.Logs.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.LogRecordData.Body.set -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? +OpenTelemetry.Logs.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverityExtensions +static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList +static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt index ea5ff9ec1db..29b616ee92c 100644 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -1,80 +1,80 @@ -abstract OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data, in OpenTelemetry.Logs.Experimental.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! -OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! -OpenTelemetry.Logs.Experimental.Logger -OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data) -> void -OpenTelemetry.Logs.Experimental.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Experimental.Logger.Name.get -> string! -OpenTelemetry.Logs.Experimental.Logger.Version.get -> string? -OpenTelemetry.Logs.Experimental.LoggerProvider -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.Experimental.LoggerProviderBuilder -OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.LoggerProviderBuilder() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.Experimental.LogRecordData -OpenTelemetry.Logs.Experimental.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.Experimental.LogRecordData.Body.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.Experimental.LogRecordData.Severity.get -> OpenTelemetry.Logs.Experimental.LogRecordSeverity? -OpenTelemetry.Logs.Experimental.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions -static OpenTelemetry.Logs.Experimental.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList -static OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.Experimental.LogRecordSeverity logRecordSeverity) -> string! -virtual OpenTelemetry.Logs.Experimental.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Experimental.Logger? logger) -> bool +abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.Logger +OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void +OpenTelemetry.Logs.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Logger.Name.get -> string! +OpenTelemetry.Logs.Logger.Version.get -> string? +OpenTelemetry.Logs.LoggerProvider +OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.LoggerProviderBuilder +OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.LogRecordAttributeList +OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.LogRecordData +OpenTelemetry.Logs.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.LogRecordData.Body.set -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? +OpenTelemetry.Logs.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverityExtensions +static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList +static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt index ea5ff9ec1db..29b616ee92c 100644 --- a/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt @@ -1,80 +1,80 @@ -abstract OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data, in OpenTelemetry.Logs.Experimental.LogRecordAttributeList attributes) -> void -abstract OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! -OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder -OpenTelemetry.Logs.Experimental.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.Experimental.LoggerProviderBuilder! -OpenTelemetry.Logs.Experimental.Logger -OpenTelemetry.Logs.Experimental.Logger.EmitLog(in OpenTelemetry.Logs.Experimental.LogRecordData data) -> void -OpenTelemetry.Logs.Experimental.Logger.Logger(string? name) -> void -OpenTelemetry.Logs.Experimental.Logger.Name.get -> string! -OpenTelemetry.Logs.Experimental.Logger.Version.get -> string? -OpenTelemetry.Logs.Experimental.LoggerProvider -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Experimental.Logger! -OpenTelemetry.Logs.Experimental.LoggerProvider.LoggerProvider() -> void -OpenTelemetry.Logs.Experimental.LoggerProviderBuilder -OpenTelemetry.Logs.Experimental.LoggerProviderBuilder.LoggerProviderBuilder() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(string! key, object? value) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Clear() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Count.get -> int -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Dispose() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.Enumerator() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator.MoveNext() -> bool -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList.Enumerator -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.LogRecordAttributeList() -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.RecordException(System.Exception! exception) -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[int index].set -> void -OpenTelemetry.Logs.Experimental.LogRecordAttributeList.this[string! key].set -> void -OpenTelemetry.Logs.Experimental.LogRecordData -OpenTelemetry.Logs.Experimental.LogRecordData.Body.get -> string? -OpenTelemetry.Logs.Experimental.LogRecordData.Body.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData() -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void -OpenTelemetry.Logs.Experimental.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void -OpenTelemetry.Logs.Experimental.LogRecordData.Severity.get -> OpenTelemetry.Logs.Experimental.LogRecordSeverity? -OpenTelemetry.Logs.Experimental.LogRecordData.Severity.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.get -> string? -OpenTelemetry.Logs.Experimental.LogRecordData.SeverityText.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId -OpenTelemetry.Logs.Experimental.LogRecordData.SpanId.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.get -> System.DateTime -OpenTelemetry.Logs.Experimental.LogRecordData.Timestamp.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags -OpenTelemetry.Logs.Experimental.LogRecordData.TraceFlags.set -> void -OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId -OpenTelemetry.Logs.Experimental.LogRecordData.TraceId.set -> void -OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.Experimental.LogRecordSeverity -OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions -static OpenTelemetry.Logs.Experimental.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.Experimental.LogRecordAttributeList -static OpenTelemetry.Logs.Experimental.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.Experimental.LogRecordSeverity logRecordSeverity) -> string! -virtual OpenTelemetry.Logs.Experimental.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Experimental.Logger? logger) -> bool +abstract OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data, in OpenTelemetry.Logs.LogRecordAttributeList attributes) -> void +abstract OpenTelemetry.Logs.LoggerProviderBuilder.AddInstrumentation(System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder +OpenTelemetry.Logs.IDeferredLoggerProviderBuilder.Configure(System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! +OpenTelemetry.Logs.Logger +OpenTelemetry.Logs.Logger.EmitLog(in OpenTelemetry.Logs.LogRecordData data) -> void +OpenTelemetry.Logs.Logger.Logger(string? name) -> void +OpenTelemetry.Logs.Logger.Name.get -> string! +OpenTelemetry.Logs.Logger.Version.get -> string? +OpenTelemetry.Logs.LoggerProvider +OpenTelemetry.Logs.LoggerProvider.GetLogger() -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.GetLogger(string? name, string? version) -> OpenTelemetry.Logs.Logger! +OpenTelemetry.Logs.LoggerProvider.LoggerProvider() -> void +OpenTelemetry.Logs.LoggerProviderBuilder +OpenTelemetry.Logs.LoggerProviderBuilder.LoggerProviderBuilder() -> void +OpenTelemetry.Logs.LogRecordAttributeList +OpenTelemetry.Logs.LogRecordAttributeList.Add(string! key, object? value) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Add(System.Collections.Generic.KeyValuePair attribute) -> void +OpenTelemetry.Logs.LogRecordAttributeList.Clear() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Count.get -> int +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Current.get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Dispose() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.Enumerator() -> void +OpenTelemetry.Logs.LogRecordAttributeList.Enumerator.MoveNext() -> bool +OpenTelemetry.Logs.LogRecordAttributeList.GetEnumerator() -> OpenTelemetry.Logs.LogRecordAttributeList.Enumerator +OpenTelemetry.Logs.LogRecordAttributeList.LogRecordAttributeList() -> void +OpenTelemetry.Logs.LogRecordAttributeList.RecordException(System.Exception! exception) -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].get -> System.Collections.Generic.KeyValuePair +OpenTelemetry.Logs.LogRecordAttributeList.this[int index].set -> void +OpenTelemetry.Logs.LogRecordAttributeList.this[string! key].set -> void +OpenTelemetry.Logs.LogRecordData +OpenTelemetry.Logs.LogRecordData.Body.get -> string? +OpenTelemetry.Logs.LogRecordData.Body.set -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData() -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(in System.Diagnostics.ActivityContext activityContext) -> void +OpenTelemetry.Logs.LogRecordData.LogRecordData(System.Diagnostics.Activity? activity) -> void +OpenTelemetry.Logs.LogRecordData.Severity.get -> OpenTelemetry.Logs.LogRecordSeverity? +OpenTelemetry.Logs.LogRecordData.Severity.set -> void +OpenTelemetry.Logs.LogRecordData.SeverityText.get -> string? +OpenTelemetry.Logs.LogRecordData.SeverityText.set -> void +OpenTelemetry.Logs.LogRecordData.SpanId.get -> System.Diagnostics.ActivitySpanId +OpenTelemetry.Logs.LogRecordData.SpanId.set -> void +OpenTelemetry.Logs.LogRecordData.Timestamp.get -> System.DateTime +OpenTelemetry.Logs.LogRecordData.Timestamp.set -> void +OpenTelemetry.Logs.LogRecordData.TraceFlags.get -> System.Diagnostics.ActivityTraceFlags +OpenTelemetry.Logs.LogRecordData.TraceFlags.set -> void +OpenTelemetry.Logs.LogRecordData.TraceId.get -> System.Diagnostics.ActivityTraceId +OpenTelemetry.Logs.LogRecordData.TraceId.set -> void +OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug = 5 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug2 = 6 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug3 = 7 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Debug4 = 8 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error = 17 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error2 = 18 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error3 = 19 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Error4 = 20 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal = 21 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal2 = 22 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal3 = 23 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Fatal4 = 24 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info = 9 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info2 = 10 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info3 = 11 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Info4 = 12 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace = 1 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace2 = 2 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace3 = 3 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Trace4 = 4 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Unspecified = 0 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn = 13 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn2 = 14 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn3 = 15 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverity.Warn4 = 16 -> OpenTelemetry.Logs.LogRecordSeverity +OpenTelemetry.Logs.LogRecordSeverityExtensions +static OpenTelemetry.Logs.LogRecordAttributeList.CreateFromEnumerable(System.Collections.Generic.IEnumerable>! attributes) -> OpenTelemetry.Logs.LogRecordAttributeList +static OpenTelemetry.Logs.LogRecordSeverityExtensions.ToShortName(this OpenTelemetry.Logs.LogRecordSeverity logRecordSeverity) -> string! +virtual OpenTelemetry.Logs.LoggerProvider.TryCreateLogger(string? name, out OpenTelemetry.Logs.Logger? logger) -> bool diff --git a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs index 53a72b71bed..cf6852327ac 100644 --- a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs @@ -16,20 +16,22 @@ #nullable enable -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Describes a logger provider builder that supports deferred /// initialization using an to perform /// dependency injection. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// Describes a logger provider builder that supports deferred +/// initialization using an to perform +/// dependency injection. +/// internal #endif interface IDeferredLoggerProviderBuilder diff --git a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs index 558aa719315..9de29f92d3b 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs @@ -22,18 +22,18 @@ using OpenTelemetry.Internal; using OpenTelemetry.Trace; -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Stores attributes to be added to a log message. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// Stores attributes to be added to a log message. +/// internal #endif struct LogRecordAttributeList : IReadOnlyList> diff --git a/src/OpenTelemetry.Api/Logs/LogRecordData.cs b/src/OpenTelemetry.Api/Logs/LogRecordData.cs index 5d0ab36d1b5..37225cb3e74 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordData.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordData.cs @@ -18,18 +18,18 @@ using System.Diagnostics; -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Stores details about a log message. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// Stores details about a log message. +/// internal #endif struct LogRecordData diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs index 09860962554..3fc9a7aa660 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs @@ -16,18 +16,18 @@ #nullable enable -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Describes the severity level of a log record. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// Describes the severity level of a log record. +/// internal #endif enum LogRecordSeverity diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs index b9dab106649..0a9556e4b6a 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs @@ -16,18 +16,18 @@ #nullable enable -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Contains extension methods for the enum. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// Contains extension methods for the enum. +/// internal #endif static class LogRecordSeverityExtensions diff --git a/src/OpenTelemetry.Api/Logs/Logger.cs b/src/OpenTelemetry.Api/Logs/Logger.cs index 3962b9ef270..17297a977f1 100644 --- a/src/OpenTelemetry.Api/Logs/Logger.cs +++ b/src/OpenTelemetry.Api/Logs/Logger.cs @@ -16,18 +16,18 @@ #nullable enable -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Logger is the class responsible for creating log records. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. public #else +/// +/// Logger is the class responsible for creating log records. +/// internal #endif abstract class Logger diff --git a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs index eef75966631..a0e65003fac 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs @@ -20,18 +20,18 @@ using System.Diagnostics.CodeAnalysis; #endif -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// LoggerProvider is the entry point of the OpenTelemetry API. It provides access to . /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// LoggerProvider is the entry point of the OpenTelemetry API. It provides access to . +/// internal #endif class LoggerProvider : BaseProvider diff --git a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs index ae0c8e92f50..76e7ad33ecc 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs @@ -16,18 +16,18 @@ #nullable enable -#if EXPOSE_EXPERIMENTAL_FEATURES -namespace OpenTelemetry.Logs.Experimental; -#else namespace OpenTelemetry.Logs; -#endif +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// LoggerProviderBuilder base class. /// -#if EXPOSE_EXPERIMENTAL_FEATURES +/// public #else +/// +/// LoggerProviderBuilder base class. +/// internal #endif abstract class LoggerProviderBuilder diff --git a/src/OpenTelemetry.Api/Logs/NoopLogger.cs b/src/OpenTelemetry.Api/Logs/NoopLogger.cs index 14be1c0f46a..51ba1d81042 100644 --- a/src/OpenTelemetry.Api/Logs/NoopLogger.cs +++ b/src/OpenTelemetry.Api/Logs/NoopLogger.cs @@ -16,10 +16,6 @@ #nullable enable -#if EXPOSE_EXPERIMENTAL_FEATURES -using OpenTelemetry.Logs.Experimental; -#endif - namespace OpenTelemetry.Logs; internal sealed class NoopLogger : Logger From 9f252c411f817433f641a2391d68e3276b0d15b3 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 12:58:05 -0700 Subject: [PATCH 11/28] Updates to OpenTelemetry.Api.ProviderBuilderExtensions logging api. --- .../net462/PublicAPI.Unshipped.txt | 0 .../net6.0/PublicAPI.Unshipped.txt | 9 +++ .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../{ => Stable}/net462/PublicAPI.Shipped.txt | 0 .../net462/PublicAPI.Unshipped.txt} | 0 .../net6.0}/PublicAPI.Shipped.txt | 0 .../Stable/net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt} | 47 +++++-------- .../netstandard2.0/PublicAPI.Unshipped.txt | 0 ...njectionLoggerProviderBuilderExtensions.cs | 69 ++++++++++++++++++- ...ctionLoggingServiceCollectionExtensions.cs | 67 +++++++++++++++++- 11 files changed, 162 insertions(+), 30 deletions(-) rename src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/{ => Experimental}/net462/PublicAPI.Unshipped.txt (100%) create mode 100644 src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt rename src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/{ => Experimental}/netstandard2.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/{ => Stable}/net462/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/{net6.0/PublicAPI.Shipped.txt => Stable/net462/PublicAPI.Unshipped.txt} (100%) rename src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/{netstandard2.0 => Stable/net6.0}/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt rename src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/{net6.0/PublicAPI.Unshipped.txt => Stable/netstandard2.0/PublicAPI.Shipped.txt} (66%) create mode 100644 src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..a0f2e472dd6 --- /dev/null +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -0,0 +1,9 @@ +OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions +OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder) -> OpenTelemetry.Logs.LoggerProviderBuilder! +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, T! instrumentation) -> OpenTelemetry.Logs.LoggerProviderBuilder! +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.ConfigureServices(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.ConfigureOpenTelemetryLoggerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! +static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.ConfigureOpenTelemetryLoggerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt similarity index 66% rename from src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt index b552d2cb69c..a647699c919 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt @@ -1,28 +1,19 @@ -#nullable enable -OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions -OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions -OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions -OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder) -> OpenTelemetry.Metrics.MeterProviderBuilder! -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder! -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder! -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, T! instrumentation) -> OpenTelemetry.Metrics.MeterProviderBuilder! -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.ConfigureServices(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, System.Action! configure) -> OpenTelemetry.Metrics.MeterProviderBuilder! -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.ConfigureOpenTelemetryMeterProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! -static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.ConfigureOpenTelemetryMeterProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder) -> OpenTelemetry.Trace.TracerProviderBuilder! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, T! instrumentation) -> OpenTelemetry.Trace.TracerProviderBuilder! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.ConfigureServices(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, System.Action! configure) -> OpenTelemetry.Trace.TracerProviderBuilder! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.ConfigureOpenTelemetryTracerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! -static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.ConfigureOpenTelemetryTracerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! -OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions -OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder) -> OpenTelemetry.Logs.LoggerProviderBuilder! -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Logs.LoggerProviderBuilder! -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, T! instrumentation) -> OpenTelemetry.Logs.LoggerProviderBuilder! -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.ConfigureServices(this OpenTelemetry.Logs.LoggerProviderBuilder! loggerProviderBuilder, System.Action! configure) -> OpenTelemetry.Logs.LoggerProviderBuilder! -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.ConfigureOpenTelemetryLoggerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! -static OpenTelemetry.Logs.OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.ConfigureOpenTelemetryLoggerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! \ No newline at end of file +#nullable enable +OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions +OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions +OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions +OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder) -> OpenTelemetry.Metrics.MeterProviderBuilder! +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder! +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Metrics.MeterProviderBuilder! +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, T! instrumentation) -> OpenTelemetry.Metrics.MeterProviderBuilder! +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMeterProviderBuilderExtensions.ConfigureServices(this OpenTelemetry.Metrics.MeterProviderBuilder! meterProviderBuilder, System.Action! configure) -> OpenTelemetry.Metrics.MeterProviderBuilder! +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.ConfigureOpenTelemetryMeterProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! +static OpenTelemetry.Metrics.OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.ConfigureOpenTelemetryMeterProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder) -> OpenTelemetry.Trace.TracerProviderBuilder! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, System.Func! instrumentationFactory) -> OpenTelemetry.Trace.TracerProviderBuilder! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.AddInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, T! instrumentation) -> OpenTelemetry.Trace.TracerProviderBuilder! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.ConfigureServices(this OpenTelemetry.Trace.TracerProviderBuilder! tracerProviderBuilder, System.Action! configure) -> OpenTelemetry.Trace.TracerProviderBuilder! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.ConfigureOpenTelemetryTracerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! +static OpenTelemetry.Trace.OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.ConfigureOpenTelemetryTracerProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services, System.Action! configure) -> Microsoft.Extensions.DependencyInjection.IServiceCollection! diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Api.ProviderBuilderExtensions/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs index 4c2a12c27ec..e113baa8cd4 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs @@ -26,8 +26,26 @@ namespace OpenTelemetry.Logs; /// /// Contains extension methods for the class. /// -public static class OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions +#if EXPOSE_EXPERIMENTAL_FEATURES + public +#else + internal +#endif + static class OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions { +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds instrumentation to the provider. + /// + /// + /// + /// Note: The type specified by will be + /// registered as a singleton service into application services. + /// + /// Instrumentation type. + /// . + /// The supplied for chaining. +#else /// /// Adds instrumentation to the provider. /// @@ -38,6 +56,7 @@ public static class OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensi /// Instrumentation type. /// . /// The supplied for chaining. +#endif public static LoggerProviderBuilder AddInstrumentation< #if NET6_0_OR_GREATER [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] @@ -55,13 +74,24 @@ public static LoggerProviderBuilder AddInstrumentation< return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Adds instrumentation to the provider. /// /// Instrumentation type. + /// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. /// . /// Instrumentation instance. /// The supplied for chaining. +#else + /// + /// Adds instrumentation to the provider. + /// + /// Instrumentation type. + /// . + /// Instrumentation instance. + /// The supplied for chaining. +#endif public static LoggerProviderBuilder AddInstrumentation(this LoggerProviderBuilder loggerProviderBuilder, T instrumentation) where T : class { @@ -75,6 +105,16 @@ public static LoggerProviderBuilder AddInstrumentation(this LoggerProviderBui return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds instrumentation to the provider. + /// + /// Instrumentation type. + /// + /// . + /// Instrumentation factory. + /// The supplied for chaining. +#else /// /// Adds instrumentation to the provider. /// @@ -82,6 +122,7 @@ public static LoggerProviderBuilder AddInstrumentation(this LoggerProviderBui /// . /// Instrumentation factory. /// The supplied for chaining. +#endif public static LoggerProviderBuilder AddInstrumentation( this LoggerProviderBuilder loggerProviderBuilder, Func instrumentationFactory) @@ -97,6 +138,16 @@ public static LoggerProviderBuilder AddInstrumentation( return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds instrumentation to the provider. + /// + /// Instrumentation type. + /// + /// . + /// Instrumentation factory. + /// The supplied for chaining. +#else /// /// Adds instrumentation to the provider. /// @@ -104,6 +155,7 @@ public static LoggerProviderBuilder AddInstrumentation( /// . /// Instrumentation factory. /// The supplied for chaining. +#endif public static LoggerProviderBuilder AddInstrumentation( this LoggerProviderBuilder loggerProviderBuilder, Func instrumentationFactory) @@ -123,17 +175,32 @@ public static LoggerProviderBuilder AddInstrumentation( return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Register a callback action to configure the where logging services are configured. /// /// + /// /// Note: Logging services are only available during the application /// configuration phase. /// /// . /// Configuration callback. /// The supplied for chaining. +#else + /// + /// Register a callback action to configure the where logging services are configured. + /// + /// + /// Note: Logging services are only available during the application + /// configuration phase. + /// + /// . + /// Configuration callback. + /// The supplied for chaining. +#endif public static LoggerProviderBuilder ConfigureServices( this LoggerProviderBuilder loggerProviderBuilder, Action configure) diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs index f9679b1e9de..14102cf30da 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs @@ -22,13 +22,20 @@ namespace OpenTelemetry.Logs; /// /// Extension methods for setting up OpenTelemetry logging services in an . /// -public static class OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions +#if EXPOSE_EXPERIMENTAL_FEATURES + public +#else + internal +#endif + static class OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions { +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Registers an action used to configure the OpenTelemetry . /// /// + /// /// Notes: /// /// This is safe to be called multiple times and by library authors. @@ -45,6 +52,29 @@ public static class OpenTelemetryDependencyInjectionLoggingServiceCollectionExte /// cref="LoggerProviderBuilder"/>. /// The so that additional calls /// can be chained. +#else + /// + /// Registers an action used to configure the OpenTelemetry . + /// + /// + /// Notes: + /// + /// This is safe to be called multiple times and by library authors. + /// Each registered configuration action will be applied + /// sequentially. + /// A will NOT be created automatically + /// using this method. To begin collecting logs use the + /// IServiceCollection.AddOpenTelemetry extension in the + /// OpenTelemetry.Extensions.Hosting package. + /// + /// + /// . + /// Callback action to configure the . + /// The so that additional calls + /// can be chained. +#endif public static IServiceCollection ConfigureOpenTelemetryLoggerProvider( this IServiceCollection services, Action configure) @@ -57,6 +87,40 @@ public static IServiceCollection ConfigureOpenTelemetryLoggerProvider( return services; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Registers an action used to configure the OpenTelemetry once the + /// is available. + /// + /// + /// + /// Notes: + /// + /// This is safe to be called multiple times and by library authors. + /// Each registered configuration action will be applied + /// sequentially. + /// A will NOT be created automatically + /// using this method. To begin collecting logs use the + /// IServiceCollection.AddOpenTelemetry extension in the + /// OpenTelemetry.Extensions.Hosting package. + /// The supplied configuration delegate is called once the is available. Services may NOT be added to a + /// once the has been created. Many helper extensions + /// register services and may throw if invoked inside the configuration + /// delegate. If you don't need access to the + /// call instead which is safe to be used with + /// helper extensions. + /// + /// + /// . + /// Callback action to configure the . + /// The so that additional calls + /// can be chained. +#else /// /// Registers an action used to configure the OpenTelemetry once the @@ -88,6 +152,7 @@ public static IServiceCollection ConfigureOpenTelemetryLoggerProvider( /// cref="LoggerProviderBuilder"/>. /// The so that additional calls /// can be chained. +#endif public static IServiceCollection ConfigureOpenTelemetryLoggerProvider( this IServiceCollection services, Action configure) From a8db6368df76d4d290a267f6a3f23daedacd81c0 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 13:33:28 -0700 Subject: [PATCH 12/28] SDK updates moving logging and exemplar artifacts behind EXPOSE_EXPERIMENTAL_FEATURES. --- .../net462/PublicAPI.Unshipped.txt | 8 -- .../net6.0/PublicAPI.Unshipped.txt | 8 -- .../netstandard2.0/PublicAPI.Unshipped.txt | 8 -- .../netstandard2.1/PublicAPI.Unshipped.txt | 8 -- .../{ => Stable}/net462/PublicAPI.Shipped.txt | 0 .../Stable/net462/PublicAPI.Unshipped.txt | 8 ++ .../{ => Stable}/net6.0/PublicAPI.Shipped.txt | 0 .../Stable/net6.0/PublicAPI.Unshipped.txt | 8 ++ .../netstandard2.0/PublicAPI.Shipped.txt | 0 .../netstandard2.0/PublicAPI.Unshipped.txt | 8 ++ .../netstandard2.1/PublicAPI.Shipped.txt | 0 .../netstandard2.1/PublicAPI.Unshipped.txt | 8 ++ .../LoggerProviderBuilderExtensions.cs | 90 +++++++++++++++++-- src/OpenTelemetry/Logs/LogRecord.cs | 33 ++++++- .../Logs/LoggerProviderExtensions.cs | 67 +++++++++++++- .../Builder/MeterProviderBuilderExtensions.cs | 45 ++++++---- .../Exemplar/AlwaysOffExemplarFilter.cs | 12 ++- .../Exemplar/AlwaysOnExemplarFilter.cs | 11 ++- .../Metrics/Exemplar/Exemplar.cs | 16 +++- .../Metrics/Exemplar/ExemplarFilter.cs | 11 ++- .../Exemplar/TraceBasedExemplarFilter.cs | 12 ++- src/OpenTelemetry/Metrics/MetricPoint.cs | 13 ++- src/OpenTelemetry/Sdk.cs | 43 ++++++--- 23 files changed, 336 insertions(+), 81 deletions(-) rename src/OpenTelemetry/.publicApi/{ => Experimental}/net462/PublicAPI.Unshipped.txt (87%) rename src/OpenTelemetry/.publicApi/{ => Experimental}/net6.0/PublicAPI.Unshipped.txt (87%) rename src/OpenTelemetry/.publicApi/{ => Experimental}/netstandard2.0/PublicAPI.Unshipped.txt (87%) rename src/OpenTelemetry/.publicApi/{ => Experimental}/netstandard2.1/PublicAPI.Unshipped.txt (87%) rename src/OpenTelemetry/.publicApi/{ => Stable}/net462/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry/.publicApi/Stable/net462/PublicAPI.Unshipped.txt rename src/OpenTelemetry/.publicApi/{ => Stable}/net6.0/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt rename src/OpenTelemetry/.publicApi/{ => Stable}/netstandard2.0/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt rename src/OpenTelemetry/.publicApi/{ => Stable}/netstandard2.1/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry/.publicApi/Stable/netstandard2.1/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt similarity index 87% rename from src/OpenTelemetry/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt index e75f84d65db..c274d8400be 100644 --- a/src/OpenTelemetry/.publicApi/net462/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt @@ -1,5 +1,3 @@ -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void OpenTelemetry.Logs.LoggerProviderBuilderExtensions OpenTelemetry.Logs.LoggerProviderExtensions OpenTelemetry.Logs.LogRecord.Logger.get -> OpenTelemetry.Logs.Logger? @@ -7,12 +5,6 @@ OpenTelemetry.Logs.LogRecord.Severity.get -> OpenTelemetry.Logs.LogRecordSeverit OpenTelemetry.Logs.LogRecord.Severity.set -> void OpenTelemetry.Logs.LogRecord.SeverityText.get -> string? OpenTelemetry.Logs.LogRecord.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void OpenTelemetry.Metrics.AlwaysOffExemplarFilter OpenTelemetry.Metrics.AlwaysOffExemplarFilter.AlwaysOffExemplarFilter() -> void OpenTelemetry.Metrics.AlwaysOnExemplarFilter diff --git a/src/OpenTelemetry/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt similarity index 87% rename from src/OpenTelemetry/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt index e75f84d65db..c274d8400be 100644 --- a/src/OpenTelemetry/.publicApi/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -1,5 +1,3 @@ -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void OpenTelemetry.Logs.LoggerProviderBuilderExtensions OpenTelemetry.Logs.LoggerProviderExtensions OpenTelemetry.Logs.LogRecord.Logger.get -> OpenTelemetry.Logs.Logger? @@ -7,12 +5,6 @@ OpenTelemetry.Logs.LogRecord.Severity.get -> OpenTelemetry.Logs.LogRecordSeverit OpenTelemetry.Logs.LogRecord.Severity.set -> void OpenTelemetry.Logs.LogRecord.SeverityText.get -> string? OpenTelemetry.Logs.LogRecord.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void OpenTelemetry.Metrics.AlwaysOffExemplarFilter OpenTelemetry.Metrics.AlwaysOffExemplarFilter.AlwaysOffExemplarFilter() -> void OpenTelemetry.Metrics.AlwaysOnExemplarFilter diff --git a/src/OpenTelemetry/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt similarity index 87% rename from src/OpenTelemetry/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt index e75f84d65db..c274d8400be 100644 --- a/src/OpenTelemetry/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt @@ -1,5 +1,3 @@ -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void OpenTelemetry.Logs.LoggerProviderBuilderExtensions OpenTelemetry.Logs.LoggerProviderExtensions OpenTelemetry.Logs.LogRecord.Logger.get -> OpenTelemetry.Logs.Logger? @@ -7,12 +5,6 @@ OpenTelemetry.Logs.LogRecord.Severity.get -> OpenTelemetry.Logs.LogRecordSeverit OpenTelemetry.Logs.LogRecord.Severity.set -> void OpenTelemetry.Logs.LogRecord.SeverityText.get -> string? OpenTelemetry.Logs.LogRecord.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void OpenTelemetry.Metrics.AlwaysOffExemplarFilter OpenTelemetry.Metrics.AlwaysOffExemplarFilter.AlwaysOffExemplarFilter() -> void OpenTelemetry.Metrics.AlwaysOnExemplarFilter diff --git a/src/OpenTelemetry/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Experimental/netstandard2.1/PublicAPI.Unshipped.txt similarity index 87% rename from src/OpenTelemetry/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt rename to src/OpenTelemetry/.publicApi/Experimental/netstandard2.1/PublicAPI.Unshipped.txt index e75f84d65db..c274d8400be 100644 --- a/src/OpenTelemetry/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry/.publicApi/Experimental/netstandard2.1/PublicAPI.Unshipped.txt @@ -1,5 +1,3 @@ -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions -OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void OpenTelemetry.Logs.LoggerProviderBuilderExtensions OpenTelemetry.Logs.LoggerProviderExtensions OpenTelemetry.Logs.LogRecord.Logger.get -> OpenTelemetry.Logs.Logger? @@ -7,12 +5,6 @@ OpenTelemetry.Logs.LogRecord.Severity.get -> OpenTelemetry.Logs.LogRecordSeverit OpenTelemetry.Logs.LogRecord.Severity.set -> void OpenTelemetry.Logs.LogRecord.SeverityText.get -> string? OpenTelemetry.Logs.LogRecord.SeverityText.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! -OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType -OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void -OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void OpenTelemetry.Metrics.AlwaysOffExemplarFilter OpenTelemetry.Metrics.AlwaysOffExemplarFilter.AlwaysOffExemplarFilter() -> void OpenTelemetry.Metrics.AlwaysOnExemplarFilter diff --git a/src/OpenTelemetry/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry/.publicApi/Stable/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry/.publicApi/Stable/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Stable/net462/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..3110de1318e --- /dev/null +++ b/src/OpenTelemetry/.publicApi/Stable/net462/PublicAPI.Unshipped.txt @@ -0,0 +1,8 @@ +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void diff --git a/src/OpenTelemetry/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..3110de1318e --- /dev/null +++ b/src/OpenTelemetry/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt @@ -0,0 +1,8 @@ +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void diff --git a/src/OpenTelemetry/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..3110de1318e --- /dev/null +++ b/src/OpenTelemetry/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt @@ -0,0 +1,8 @@ +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void diff --git a/src/OpenTelemetry/.publicApi/netstandard2.1/PublicAPI.Shipped.txt b/src/OpenTelemetry/.publicApi/Stable/netstandard2.1/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry/.publicApi/netstandard2.1/PublicAPI.Shipped.txt rename to src/OpenTelemetry/.publicApi/Stable/netstandard2.1/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry/.publicApi/Stable/netstandard2.1/PublicAPI.Unshipped.txt b/src/OpenTelemetry/.publicApi/Stable/netstandard2.1/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..3110de1318e --- /dev/null +++ b/src/OpenTelemetry/.publicApi/Stable/netstandard2.1/PublicAPI.Unshipped.txt @@ -0,0 +1,8 @@ +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions +OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions.BatchExportLogRecordProcessorOptions() -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.get -> OpenTelemetry.Logs.BatchExportLogRecordProcessorOptions! +OpenTelemetry.Logs.LogRecordExportProcessorOptions.BatchExportProcessorOptions.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.get -> OpenTelemetry.ExportProcessorType +OpenTelemetry.Logs.LogRecordExportProcessorOptions.ExportProcessorType.set -> void +OpenTelemetry.Logs.LogRecordExportProcessorOptions.LogRecordExportProcessorOptions() -> void diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs index 1f772c2411b..47813a3a1af 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs @@ -29,17 +29,39 @@ namespace OpenTelemetry.Logs; /// /// Contains extension methods for the class. /// -public static class LoggerProviderBuilderExtensions +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + static class LoggerProviderBuilderExtensions { +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Sets the from which the associated with + /// this provider is built from. + /// + /// + /// + /// Note: Calling will override the currently set . + /// To modify the current call instead. + /// + /// . + /// from which Resource will be built. + /// Returns for chaining. +#else /// - /// Sets the from which the Resource associated with - /// this provider is built from. Overwrites currently set ResourceBuilder. - /// You should usually use instead - /// (call if desired). + /// Sets the from which the associated with + /// this provider is built from. /// + /// + /// Note: Calling will override the currently set . + /// To modify the current call instead. + /// /// . /// from which Resource will be built. /// Returns for chaining. +#endif public static LoggerProviderBuilder SetResourceBuilder(this LoggerProviderBuilder loggerProviderBuilder, ResourceBuilder resourceBuilder) { Guard.ThrowIfNull(resourceBuilder); @@ -55,13 +77,24 @@ public static LoggerProviderBuilder SetResourceBuilder(this LoggerProviderBuilde return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Modify in-place the from which the associated with + /// this provider is built from. + /// + /// + /// . + /// An action which modifies the provided in-place. + /// Returns for chaining. +#else /// - /// Modify the from which the Resource associated with - /// this provider is built from in-place. + /// Modify in-place the from which the associated with + /// this provider is built from. /// /// . /// An action which modifies the provided in-place. /// Returns for chaining. +#endif public static LoggerProviderBuilder ConfigureResource(this LoggerProviderBuilder loggerProviderBuilder, Action configure) { Guard.ThrowIfNull(configure); @@ -77,12 +110,22 @@ public static LoggerProviderBuilder ConfigureResource(this LoggerProviderBuilder return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds a processor to the provider. + /// + /// + /// . + /// LogRecord processor to add. + /// Returns for chaining. +#else /// /// Adds a processor to the provider. /// /// . /// LogRecord processor to add. /// Returns for chaining. +#endif public static LoggerProviderBuilder AddProcessor(this LoggerProviderBuilder loggerProviderBuilder, BaseProcessor processor) { Guard.ThrowIfNull(processor); @@ -98,16 +141,30 @@ public static LoggerProviderBuilder AddProcessor(this LoggerProviderBuilder logg return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Adds a processor to the provider which will be retrieved using dependency injection. /// /// + /// /// Note: The type specified by will be /// registered as a singleton service into application services. /// /// Processor type. /// . /// The supplied for chaining. +#else + /// + /// Adds a processor to the provider which will be retrieved using dependency injection. + /// + /// + /// Note: The type specified by will be + /// registered as a singleton service into application services. + /// + /// Processor type. + /// . + /// The supplied for chaining. +#endif public static LoggerProviderBuilder AddProcessor< #if NET6_0_OR_GREATER [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] @@ -128,12 +185,22 @@ public static LoggerProviderBuilder AddProcessor< return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds a processor to the provider which will be retrieved using dependency injection. + /// + /// + /// . + /// The factory that creates the service. + /// The supplied for chaining. +#else /// /// Adds a processor to the provider which will be retrieved using dependency injection. /// /// . /// The factory that creates the service. /// The supplied for chaining. +#endif public static LoggerProviderBuilder AddProcessor( this LoggerProviderBuilder loggerProviderBuilder, Func> implementationFactory) @@ -151,11 +218,20 @@ public static LoggerProviderBuilder AddProcessor( return loggerProviderBuilder; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Run the given actions to initialize the . /// + /// /// . /// . +#else + /// + /// Run the given actions to initialize the . + /// + /// . + /// . +#endif public static LoggerProvider Build(this LoggerProviderBuilder loggerProviderBuilder) { if (loggerProviderBuilder is LoggerProviderBuilderBase loggerProviderBuilderBase) diff --git a/src/OpenTelemetry/Logs/LogRecord.cs b/src/OpenTelemetry/Logs/LogRecord.cs index 41232d5797d..6dd0a2e5f65 100644 --- a/src/OpenTelemetry/Logs/LogRecord.cs +++ b/src/OpenTelemetry/Logs/LogRecord.cs @@ -160,7 +160,9 @@ public string? CategoryName /// /// Gets or sets the log . /// +#if EXPOSE_EXPERIMENTAL_FEATURES [Obsolete("Use Severity instead. LogLevel will be removed in a future version.")] +#endif public LogLevel LogLevel { get @@ -284,29 +286,56 @@ public Exception? Exception set => this.ILoggerData.Exception = value; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Gets or sets the original string representation of the severity as it is /// known at the source. /// - public string? SeverityText + /// + public +#else + /// + /// Gets or sets the original string representation of the severity as it is + /// known at the source. + /// + internal +#endif + string? SeverityText { get => this.Data.SeverityText; set => this.Data.SeverityText = value; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Gets or sets the log . /// - public LogRecordSeverity? Severity + /// + public +#else + /// + /// Gets or sets the log . + /// + internal +#endif + LogRecordSeverity? Severity { get => this.Data.Severity; set => this.Data.Severity = value; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Gets the which emitted the . /// + /// public Logger? Logger { get; internal set; } +#else + /// + /// Gets or sets the which emitted the . + /// + internal Logger? Logger { get; set; } +#endif /// /// Executes callback for each currently active scope objects in order diff --git a/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs b/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs index da788c1e735..5fbd0f84359 100644 --- a/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs +++ b/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs @@ -23,12 +23,19 @@ namespace OpenTelemetry.Logs; /// /// Contains extension methods for the class. /// -public static class LoggerProviderExtensions +#if EXPOSE_EXPERIMENTAL_FEATURES +public +#else +internal +#endif + static class LoggerProviderExtensions { +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Add a processor to the . /// /// + /// /// Note: The supplied will be /// automatically disposed when then the is disposed. @@ -36,6 +43,19 @@ public static class LoggerProviderExtensions /// instance on which ForceFlush will be called. /// Log processor to add. /// The supplied for chaining. +#else + /// + /// Add a processor to the . + /// + /// + /// Note: The supplied will be + /// automatically disposed when then the is disposed. + /// + /// instance on which ForceFlush will be called. + /// Log processor to add. + /// The supplied for chaining. +#endif public static LoggerProvider AddProcessor(this LoggerProvider provider, BaseProcessor processor) { Guard.ThrowIfNull(provider); @@ -49,6 +69,27 @@ public static LoggerProvider AddProcessor(this LoggerProvider provider, BaseProc return provider; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Flushes all the processors registered under , blocks the current thread + /// until flush completed, shutdown signaled or timed out. + /// + /// instance on which ForceFlush will be called. + /// + /// The number (non-negative) of milliseconds to wait, or + /// Timeout.Infinite to wait indefinitely. + /// + /// + /// Returns true when force flush succeeded; otherwise, false. + /// + /// + /// Thrown when the timeoutMilliseconds is smaller than -1. + /// + /// + /// + /// This function guarantees thread-safety. + /// +#else /// /// Flushes all the processors registered under , blocks the current thread /// until flush completed, shutdown signaled or timed out. @@ -67,6 +108,7 @@ public static LoggerProvider AddProcessor(this LoggerProvider provider, BaseProc /// /// This function guarantees thread-safety. /// +#endif public static bool ForceFlush(this LoggerProvider provider, int timeoutMilliseconds = Timeout.Infinite) { Guard.ThrowIfNull(provider); @@ -80,6 +122,28 @@ public static bool ForceFlush(this LoggerProvider provider, int timeoutMilliseco return true; } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Attempts to shutdown the , blocks the current thread until + /// shutdown completed or timed out. + /// + /// instance on which Shutdown will be called. + /// + /// The number (non-negative) of milliseconds to wait, or + /// Timeout.Infinite to wait indefinitely. + /// + /// + /// Returns true when shutdown succeeded; otherwise, false. + /// + /// + /// Thrown when the timeoutMilliseconds is smaller than -1. + /// + /// + /// + /// This function guarantees thread-safety. Only the first call will + /// win, subsequent calls will be no-op. + /// +#else /// /// Attempts to shutdown the , blocks the current thread until /// shutdown completed or timed out. @@ -99,6 +163,7 @@ public static bool ForceFlush(this LoggerProvider provider, int timeoutMilliseco /// This function guarantees thread-safety. Only the first call will /// win, subsequent calls will be no-op. /// +#endif public static bool Shutdown(this LoggerProvider provider, int timeoutMilliseconds = Timeout.Infinite) { Guard.ThrowIfNull(provider); diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs index 6f0708db335..6aa21e1503d 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs @@ -310,6 +310,32 @@ public static MeterProviderBuilder ConfigureResource(this MeterProviderBuilder m return meterProviderBuilder; } + /// + /// Run the given actions to initialize the . + /// + /// . + /// . + public static MeterProvider? Build(this MeterProviderBuilder meterProviderBuilder) + { + if (meterProviderBuilder is MeterProviderBuilderBase meterProviderBuilderBase) + { + return meterProviderBuilderBase.InvokeBuild(); + } + + return null; + } + +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Sets the to be used for this provider. + /// This is applied to all the metrics from this provider. + /// + /// + /// . + /// ExemplarFilter to use. + /// The supplied for chaining. + public +#else /// /// Sets the to be used for this provider. /// This is applied to all the metrics from this provider. @@ -317,7 +343,9 @@ public static MeterProviderBuilder ConfigureResource(this MeterProviderBuilder m /// . /// ExemplarFilter to use. /// The supplied for chaining. - public static MeterProviderBuilder SetExemplarFilter(this MeterProviderBuilder meterProviderBuilder, ExemplarFilter exemplarFilter) + internal +#endif + static MeterProviderBuilder SetExemplarFilter(this MeterProviderBuilder meterProviderBuilder, ExemplarFilter exemplarFilter) { Guard.ThrowIfNull(exemplarFilter); @@ -331,19 +359,4 @@ public static MeterProviderBuilder SetExemplarFilter(this MeterProviderBuilder m return meterProviderBuilder; } - - /// - /// Run the given actions to initialize the . - /// - /// . - /// . - public static MeterProvider? Build(this MeterProviderBuilder meterProviderBuilder) - { - if (meterProviderBuilder is MeterProviderBuilderBase meterProviderBuilderBase) - { - return meterProviderBuilderBase.InvokeBuild(); - } - - return null; - } } diff --git a/src/OpenTelemetry/Metrics/Exemplar/AlwaysOffExemplarFilter.cs b/src/OpenTelemetry/Metrics/Exemplar/AlwaysOffExemplarFilter.cs index 2d3f3cab898..88077a2b100 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/AlwaysOffExemplarFilter.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/AlwaysOffExemplarFilter.cs @@ -16,11 +16,21 @@ namespace OpenTelemetry.Metrics; +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// An ExemplarFilter which makes no measurements eligible for being an Exemplar. /// Using this ExemplarFilter is as good as disabling Exemplar feature. /// -public sealed class AlwaysOffExemplarFilter : ExemplarFilter +/// +public +#else +/// +/// An ExemplarFilter which makes no measurements eligible for being an Exemplar. +/// Using this ExemplarFilter is as good as disabling Exemplar feature. +/// +internal +#endif + sealed class AlwaysOffExemplarFilter : ExemplarFilter { public override bool ShouldSample(long value, ReadOnlySpan> tags) { diff --git a/src/OpenTelemetry/Metrics/Exemplar/AlwaysOnExemplarFilter.cs b/src/OpenTelemetry/Metrics/Exemplar/AlwaysOnExemplarFilter.cs index 79adb9eeba3..45886c2f35c 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/AlwaysOnExemplarFilter.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/AlwaysOnExemplarFilter.cs @@ -16,10 +16,19 @@ namespace OpenTelemetry.Metrics; +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// An ExemplarFilter which makes all measurements eligible for being an Exemplar. /// -public sealed class AlwaysOnExemplarFilter : ExemplarFilter +/// +public +#else +/// +/// An ExemplarFilter which makes all measurements eligible for being an Exemplar. +/// +internal +#endif + sealed class AlwaysOnExemplarFilter : ExemplarFilter { public override bool ShouldSample(long value, ReadOnlySpan> tags) { diff --git a/src/OpenTelemetry/Metrics/Exemplar/Exemplar.cs b/src/OpenTelemetry/Metrics/Exemplar/Exemplar.cs index 5837ca362d0..7e5352c0bc3 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/Exemplar.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/Exemplar.cs @@ -18,14 +18,23 @@ namespace OpenTelemetry.Metrics; -#pragma warning disable SA1623 // The property's documentation summary text should begin with: `Gets or sets` +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Represents an Exemplar data. /// -public struct Exemplar +/// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. +public +#else +/// +/// Represents an Exemplar data. +/// +#pragma warning disable SA1623 // The property's documentation summary text should begin with: `Gets or sets` +internal +#endif + struct Exemplar { /// - /// Gets the timestamp (UTC). + /// Gets the timestamp. /// public DateTimeOffset Timestamp { get; internal set; } @@ -52,5 +61,4 @@ public struct Exemplar /// public List> FilteredTags { get; internal set; } } -#pragma warning restore SA1623 diff --git a/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs b/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs index 9e79570ce77..b6739989a93 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs @@ -15,10 +15,19 @@ // namespace OpenTelemetry.Metrics; +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// The base class for defining Exemplar Filter. /// -public abstract class ExemplarFilter +/// +public +#else +/// +/// The base class for defining Exemplar Filter. +/// +internal +#endif + abstract class ExemplarFilter { /// /// Determines if a given measurement is eligible for being diff --git a/src/OpenTelemetry/Metrics/Exemplar/TraceBasedExemplarFilter.cs b/src/OpenTelemetry/Metrics/Exemplar/TraceBasedExemplarFilter.cs index 69c4c29e9f8..41db4a22e06 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/TraceBasedExemplarFilter.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/TraceBasedExemplarFilter.cs @@ -18,11 +18,21 @@ namespace OpenTelemetry.Metrics; +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// An ExemplarFilter which makes those measurements eligible for being an Exemplar, /// which are recorded in the context of a sampled parent activity (span). /// -public sealed class TraceBasedExemplarFilter : ExemplarFilter +/// +public +#else +/// +/// An ExemplarFilter which makes those measurements eligible for being an Exemplar, +/// which are recorded in the context of a sampled parent activity (span). +/// +internal +#endif + sealed class TraceBasedExemplarFilter : ExemplarFilter { public override bool ShouldSample(long value, ReadOnlySpan> tags) { diff --git a/src/OpenTelemetry/Metrics/MetricPoint.cs b/src/OpenTelemetry/Metrics/MetricPoint.cs index 35ed8dd0c44..f4fc5c5a265 100644 --- a/src/OpenTelemetry/Metrics/MetricPoint.cs +++ b/src/OpenTelemetry/Metrics/MetricPoint.cs @@ -331,12 +331,23 @@ public bool TryGetHistogramMinMaxValues(out double min, out double max) return false; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Gets the exemplars associated with the metric point. /// + /// /// . [MethodImpl(MethodImplOptions.AggressiveInlining)] - public readonly Exemplar[] GetExemplars() + public +#else + /// + /// Gets the exemplars associated with the metric point. + /// + /// . + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal +#endif + readonly Exemplar[] GetExemplars() { // TODO: Do not expose Exemplar data structure (array now) return this.mpComponents?.Exemplars ?? Array.Empty(); diff --git a/src/OpenTelemetry/Sdk.cs b/src/OpenTelemetry/Sdk.cs index dbce381b747..2d608dd76ed 100644 --- a/src/OpenTelemetry/Sdk.cs +++ b/src/OpenTelemetry/Sdk.cs @@ -70,20 +70,6 @@ public static void SetDefaultTextMapPropagator(TextMapPropagator textMapPropagat Propagators.DefaultTextMapPropagator = textMapPropagator; } - /// - /// Creates a which is used to build - /// a . In a typical application, a single - /// is created at application startup and - /// disposed at application shutdown. It is important to ensure that the - /// provider is not disposed too early. - /// - /// instance, which is used - /// to build a . - public static LoggerProviderBuilder CreateLoggerProviderBuilder() - { - return new LoggerProviderBuilderBase(); - } - /// /// Creates a which is used to build /// a . In a typical application, a single @@ -110,6 +96,35 @@ public static TracerProviderBuilder CreateTracerProviderBuilder() return new TracerProviderBuilderBase(); } +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Creates a which is used to build + /// a . In a typical application, a single + /// is created at application startup and + /// disposed at application shutdown. It is important to ensure that the + /// provider is not disposed too early. + /// + /// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. + /// instance, which is used + /// to build a . + public +#else + /// + /// Creates a which is used to build + /// a . In a typical application, a single + /// is created at application startup and + /// disposed at application shutdown. It is important to ensure that the + /// provider is not disposed too early. + /// + /// instance, which is used + /// to build a . + internal +#endif + static LoggerProviderBuilder CreateLoggerProviderBuilder() + { + return new LoggerProviderBuilderBase(); + } + internal static string ParseAssemblyInformationalVersion(string? informationalVersion) { if (string.IsNullOrWhiteSpace(informationalVersion)) From 284d53f863e33668600bc30c407c05e8b968ae6c Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 13:46:55 -0700 Subject: [PATCH 13/28] CHANGELOG updates and fixes. --- .../CHANGELOG.md | 6 ++- src/OpenTelemetry.Api/AssemblyInfo.cs | 4 ++ src/OpenTelemetry/CHANGELOG.md | 44 +++++++++++-------- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/CHANGELOG.md b/src/OpenTelemetry.Api.ProviderBuilderExtensions/CHANGELOG.md index 135e8f96372..80639a59e98 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/CHANGELOG.md +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/CHANGELOG.md @@ -6,10 +6,12 @@ Released 2023-Jul-12 -* Added extension methods to support using the [Logs Bridge +* **Experimental (pre-release builds only):** Added extension methods to support + using the [Logs Bridge API](https://github.com/open-telemetry/opentelemetry-specification/blob/976432b74c565e8a84af3570e9b82cb95e1d844c/specification/logs/bridge-api.md) implementation (eg `LoggerProviderBuilder`) with dependency injection. - ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) + ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433), + [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735)) ## 1.5.1 diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index 2af154f989e..8684ee1d622 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -23,6 +23,10 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2" + AssemblyInfo.MoqPublicKey)] +#if !EXPOSE_EXPERIMENTAL_FEATURES +[assembly: InternalsVisibleTo("OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo.PublicKey)] +#endif + #if SIGNED internal static class AssemblyInfo { diff --git a/src/OpenTelemetry/CHANGELOG.md b/src/OpenTelemetry/CHANGELOG.md index 396db7aee78..071680a3806 100644 --- a/src/OpenTelemetry/CHANGELOG.md +++ b/src/OpenTelemetry/CHANGELOG.md @@ -6,25 +6,31 @@ Released 2023-Jul-12 -* Add back support for Exemplars. See [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) - for instructions to enable exemplars. - ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) - -* Added [Logs Bridge - API](https://github.com/open-telemetry/opentelemetry-specification/blob/976432b74c565e8a84af3570e9b82cb95e1d844c/specification/logs/bridge-api.md) - implementation (`Sdk.CreateLoggerProviderBuilder`, etc.). - ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) - -* Obsoleted `LogRecord.LogLevel` in favor of the `LogRecord.Severity` property - which matches the [OpenTelemetry Specification > Logs DataModel > Severity - definition](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-severitynumber). - ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) - -* Added `LogRecord.Logger` property to access the [OpenTelemetry Specification > - Instrumentation - Scope](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#instrumentation-scope) - provided during Logger creation. - ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) +* **Experimental (pre-release builds only):** + + * Note: See + [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735) + for the introduction of experimental api support. + + * Add back support for Exemplars. See [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) + for instructions to enable exemplars. + ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) + + * Added [Logs Bridge + API](https://github.com/open-telemetry/opentelemetry-specification/blob/976432b74c565e8a84af3570e9b82cb95e1d844c/specification/logs/bridge-api.md) + implementation (`Sdk.CreateLoggerProviderBuilder`, etc.). + ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) + + * Obsoleted `LogRecord.LogLevel` in favor of the `LogRecord.Severity` property + which matches the [OpenTelemetry Specification > Logs DataModel > Severity + definition](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-severitynumber). + ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) + + * Added `LogRecord.Logger` property to access the [OpenTelemetry Specification > + Instrumentation + Scope](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#instrumentation-scope) + provided during Logger creation. + ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) * Fix the issue of potentially running into the `ArgumentException`: `An instance of EventSource with Guid af2d5796-946b-50cb-5f76-166a609afcbb already From d2638cc255fcaad0e03ac3e61036b1d258562f5c Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 13:53:08 -0700 Subject: [PATCH 14/28] MD lint. --- src/OpenTelemetry/CHANGELOG.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/OpenTelemetry/CHANGELOG.md b/src/OpenTelemetry/CHANGELOG.md index 071680a3806..fa5fa8c2220 100644 --- a/src/OpenTelemetry/CHANGELOG.md +++ b/src/OpenTelemetry/CHANGELOG.md @@ -12,8 +12,9 @@ Released 2023-Jul-12 [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735) for the introduction of experimental api support. - * Add back support for Exemplars. See [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) - for instructions to enable exemplars. + * Add back support for Exemplars. See + [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) for + instructions to enable exemplars. ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) * Added [Logs Bridge @@ -26,8 +27,8 @@ Released 2023-Jul-12 definition](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-severitynumber). ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) - * Added `LogRecord.Logger` property to access the [OpenTelemetry Specification > - Instrumentation + * Added `LogRecord.Logger` property to access the [OpenTelemetry Specification + > Instrumentation Scope](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#instrumentation-scope) provided during Logger creation. ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) From e9a42d038de58eb3005ee6da0f991d90c1139458 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 13:55:48 -0700 Subject: [PATCH 15/28] More MD lint. --- src/OpenTelemetry/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTelemetry/CHANGELOG.md b/src/OpenTelemetry/CHANGELOG.md index fa5fa8c2220..ad5b0c8cbc3 100644 --- a/src/OpenTelemetry/CHANGELOG.md +++ b/src/OpenTelemetry/CHANGELOG.md @@ -28,7 +28,7 @@ Released 2023-Jul-12 ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) * Added `LogRecord.Logger` property to access the [OpenTelemetry Specification - > Instrumentation + Instrumentation Scope](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#instrumentation-scope) provided during Logger creation. ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) From dbe598434165a3706ec8a60194abcdf9f1cabef0 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 14:21:29 -0700 Subject: [PATCH 16/28] Update ConsoleExporter for experimental features. --- .../AssemblyInfo.cs | 4 ++ src/OpenTelemetry.Api/AssemblyInfo.cs | 1 + .../net462/PublicAPI.Unshipped.txt | 0 .../net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../{ => Stable}/net462/PublicAPI.Shipped.txt | 0 .../net462/PublicAPI.Unshipped.txt} | 0 .../net6.0}/PublicAPI.Shipped.txt | 0 .../Stable/net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt | 33 +++++++++++++++ .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../CHANGELOG.md | 27 +++++++----- .../ConsoleExporterLoggingExtensions.cs | 42 +++++++++++++++++-- .../OpenTelemetry.Exporter.Console.csproj | 8 ++-- src/OpenTelemetry/AssemblyInfo.cs | 4 ++ 15 files changed, 102 insertions(+), 17 deletions(-) rename src/OpenTelemetry.Exporter.Console/.publicApi/{ => Experimental}/net462/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.Console/.publicApi/{ => Experimental}/net6.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.Console/.publicApi/{ => Experimental}/netstandard2.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.Console/.publicApi/{ => Stable}/net462/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Exporter.Console/.publicApi/{net6.0/PublicAPI.Shipped.txt => Stable/net462/PublicAPI.Unshipped.txt} (100%) rename src/OpenTelemetry.Exporter.Console/.publicApi/{netstandard2.0 => Stable/net6.0}/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt create mode 100644 src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs index e1ba813e7aa..a39fcad6c1e 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs @@ -19,3 +19,7 @@ [assembly: InternalsVisibleTo("OpenTelemetry" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo.PublicKey)] + +#if !EXPOSE_EXPERIMENTAL_FEATURES +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] +#endif diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index 8684ee1d622..f3344af209b 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -25,6 +25,7 @@ #if !EXPOSE_EXPERIMENTAL_FEATURES [assembly: InternalsVisibleTo("OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] #endif #if SIGNED diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.Console/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.Console/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.Console/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.Console/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.Console/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.Console/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt new file mode 100644 index 00000000000..6f900a1f6f6 --- /dev/null +++ b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt @@ -0,0 +1,33 @@ +OpenTelemetry.Exporter.ConsoleActivityExporter +OpenTelemetry.Exporter.ConsoleActivityExporter.ConsoleActivityExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void +OpenTelemetry.Exporter.ConsoleExporter +OpenTelemetry.Exporter.ConsoleExporter.ConsoleExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void +OpenTelemetry.Exporter.ConsoleExporter.WriteLine(string message) -> void +OpenTelemetry.Exporter.ConsoleExporterOptions +OpenTelemetry.Exporter.ConsoleExporterOptions.ConsoleExporterOptions() -> void +OpenTelemetry.Exporter.ConsoleExporterOptions.Targets.get -> OpenTelemetry.Exporter.ConsoleExporterOutputTargets +OpenTelemetry.Exporter.ConsoleExporterOptions.Targets.set -> void +OpenTelemetry.Exporter.ConsoleExporterOutputTargets +OpenTelemetry.Exporter.ConsoleExporterOutputTargets.Console = 1 -> OpenTelemetry.Exporter.ConsoleExporterOutputTargets +OpenTelemetry.Exporter.ConsoleExporterOutputTargets.Debug = 2 -> OpenTelemetry.Exporter.ConsoleExporterOutputTargets +OpenTelemetry.Exporter.ConsoleLogRecordExporter +OpenTelemetry.Exporter.ConsoleLogRecordExporter.ConsoleLogRecordExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void +OpenTelemetry.Exporter.ConsoleMetricExporter +OpenTelemetry.Exporter.ConsoleMetricExporter.ConsoleMetricExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void +OpenTelemetry.Logs.ConsoleExporterLoggingExtensions +OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions +OpenTelemetry.Trace.ConsoleExporterHelperExtensions +override OpenTelemetry.Exporter.ConsoleActivityExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult +override OpenTelemetry.Exporter.ConsoleLogRecordExporter.Dispose(bool disposing) -> void +override OpenTelemetry.Exporter.ConsoleLogRecordExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult +override OpenTelemetry.Exporter.ConsoleMetricExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult +static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions +static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Action configure) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions +static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Action configureExporterAndMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Action configureExporter) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action configureExporterAndMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action configureExporter) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Trace.ConsoleExporterHelperExtensions.AddConsoleExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder +static OpenTelemetry.Trace.ConsoleExporterHelperExtensions.AddConsoleExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder +static OpenTelemetry.Trace.ConsoleExporterHelperExtensions.AddConsoleExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.Console/CHANGELOG.md b/src/OpenTelemetry.Exporter.Console/CHANGELOG.md index e7c5255d82b..b10e248645f 100644 --- a/src/OpenTelemetry.Exporter.Console/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Console/CHANGELOG.md @@ -6,16 +6,23 @@ Released 2023-Jul-12 -* Add back support for Exemplars. See [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) - for instructions to enable exemplars. - ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) - -* Updated to display `Severity` and `SeverityText` text instead of - `ILogger.LogLevel` when exporting `LogRecord` instances. - ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) - -* Added `LoggerProviderBuilder.AddConsoleExporter` registration extension. - ([#4583](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4583)) +* **Experimental (pre-release builds only):** + + * Note: See + [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735) + for the introduction of experimental api support. + + * Add back support for Exemplars. See + [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) for + instructions to enable exemplars. + ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) + + * Updated to display `Severity` and `SeverityText` text instead of + `ILogger.LogLevel` when exporting `LogRecord` instances. + ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) + + * Added `LoggerProviderBuilder.AddConsoleExporter` registration extension. + ([#4583](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4583)) ## 1.5.1 diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs index 23c7a78bd38..c041b43b3b6 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs @@ -48,26 +48,60 @@ public static OpenTelemetryLoggerOptions AddConsoleExporter(this OpenTelemetryLo return loggerOptions.AddProcessor(new SimpleLogRecordExportProcessor(new ConsoleLogRecordExporter(options))); } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Adds Console exporter with LoggerProviderBuilder. /// + /// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. /// . /// The supplied instance of to chain the calls. - public static LoggerProviderBuilder AddConsoleExporter( + public +#else + /// + /// Adds Console exporter with LoggerProviderBuilder. + /// + /// . + /// The supplied instance of to chain the calls. + internal +#endif + static LoggerProviderBuilder AddConsoleExporter( this LoggerProviderBuilder loggerProviderBuilder) => AddConsoleExporter(loggerProviderBuilder, name: null, configure: null); +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds Console exporter with LoggerProviderBuilder. + /// + /// + /// . + /// Callback action for configuring . + /// The supplied instance of to chain the calls. + public +#else /// /// Adds Console exporter with LoggerProviderBuilder. /// /// . /// Callback action for configuring . /// The supplied instance of to chain the calls. - public static LoggerProviderBuilder AddConsoleExporter( + internal +#endif + static LoggerProviderBuilder AddConsoleExporter( this LoggerProviderBuilder loggerProviderBuilder, Action configure) => AddConsoleExporter(loggerProviderBuilder, name: null, configure); +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds Console exporter with LoggerProviderBuilder. + /// + /// + /// . + /// Name which is used when retrieving options. + /// Callback action for configuring . + /// The supplied instance of to chain the calls. + public +#else /// /// Adds Console exporter with LoggerProviderBuilder. /// @@ -75,7 +109,9 @@ public static LoggerProviderBuilder AddConsoleExporter( /// Name which is used when retrieving options. /// Callback action for configuring . /// The supplied instance of to chain the calls. - public static LoggerProviderBuilder AddConsoleExporter( + internal +#endif + static LoggerProviderBuilder AddConsoleExporter( this LoggerProviderBuilder loggerProviderBuilder, string name, Action configure) diff --git a/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj b/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj index 8c6aaed69e3..0760cf0bea4 100644 --- a/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj +++ b/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj @@ -30,13 +30,13 @@ - + - - - + + + diff --git a/src/OpenTelemetry/AssemblyInfo.cs b/src/OpenTelemetry/AssemblyInfo.cs index 6b94f59eb69..9f0bdb2f3b5 100644 --- a/src/OpenTelemetry/AssemblyInfo.cs +++ b/src/OpenTelemetry/AssemblyInfo.cs @@ -25,3 +25,7 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2" + AssemblyInfo.MoqPublicKey)] [assembly: InternalsVisibleTo("Benchmarks" + AssemblyInfo.PublicKey)] + +#if !EXPOSE_EXPERIMENTAL_FEATURES +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] +#endif From b66bdd7c3e3eccf9f1a96b71ca26f848cfe760f6 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 14:27:05 -0700 Subject: [PATCH 17/28] Updated in-memory exporter for experimental features. --- src/OpenTelemetry.Api/AssemblyInfo.cs | 1 + .../net462/PublicAPI.Unshipped.txt | 0 .../net6.0/PublicAPI.Unshipped.txt | 48 +++++++++---------- .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../{ => Stable}/net462/PublicAPI.Shipped.txt | 0 .../net462/PublicAPI.Unshipped.txt} | 0 .../net6.0}/PublicAPI.Shipped.txt | 0 .../Stable/net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt | 24 ++++++++++ .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../InMemoryExporterLoggingExtensions.cs | 14 +++++- .../OpenTelemetry.Exporter.InMemory.csproj | 2 +- 12 files changed, 63 insertions(+), 26 deletions(-) rename src/OpenTelemetry.Exporter.InMemory/.publicApi/{ => Experimental}/net462/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.InMemory/.publicApi/{ => Experimental}/net6.0/PublicAPI.Unshipped.txt (99%) rename src/OpenTelemetry.Exporter.InMemory/.publicApi/{ => Experimental}/netstandard2.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.InMemory/.publicApi/{ => Stable}/net462/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Exporter.InMemory/.publicApi/{net6.0/PublicAPI.Shipped.txt => Stable/net462/PublicAPI.Unshipped.txt} (100%) rename src/OpenTelemetry.Exporter.InMemory/.publicApi/{netstandard2.0 => Stable/net6.0}/PublicAPI.Shipped.txt (100%) create mode 100644 src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt create mode 100644 src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index f3344af209b..61f86d5bf79 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -26,6 +26,7 @@ #if !EXPOSE_EXPERIMENTAL_FEATURES [assembly: InternalsVisibleTo("OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.InMemory" + AssemblyInfo.PublicKey)] #endif #if SIGNED diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.InMemory/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt similarity index 99% rename from src/OpenTelemetry.Exporter.InMemory/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt index 2d87e5058f5..7dd51ae6956 100644 --- a/src/OpenTelemetry.Exporter.InMemory/.publicApi/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -1,25 +1,25 @@ -OpenTelemetry.Exporter.InMemoryExporter -OpenTelemetry.Exporter.InMemoryExporter.InMemoryExporter(System.Collections.Generic.ICollection exportedItems) -> void -OpenTelemetry.Logs.InMemoryExporterLoggingExtensions -OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions -OpenTelemetry.Metrics.MetricSnapshot -OpenTelemetry.Metrics.MetricSnapshot.Description.get -> string -OpenTelemetry.Metrics.MetricSnapshot.MeterName.get -> string -OpenTelemetry.Metrics.MetricSnapshot.MeterVersion.get -> string -OpenTelemetry.Metrics.MetricSnapshot.MetricPoints.get -> System.Collections.Generic.IReadOnlyList -OpenTelemetry.Metrics.MetricSnapshot.MetricSnapshot(OpenTelemetry.Metrics.Metric metric) -> void -OpenTelemetry.Metrics.MetricSnapshot.MetricType.get -> OpenTelemetry.Metrics.MetricType -OpenTelemetry.Metrics.MetricSnapshot.Name.get -> string -OpenTelemetry.Metrics.MetricSnapshot.Unit.get -> string -OpenTelemetry.Trace.InMemoryExporterHelperExtensions -override OpenTelemetry.Exporter.InMemoryExporter.Dispose(bool disposing) -> void -override OpenTelemetry.Exporter.InMemoryExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult -static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.LoggerProviderBuilder -static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +OpenTelemetry.Exporter.InMemoryExporter +OpenTelemetry.Exporter.InMemoryExporter.InMemoryExporter(System.Collections.Generic.ICollection exportedItems) -> void +OpenTelemetry.Logs.InMemoryExporterLoggingExtensions +OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions +OpenTelemetry.Metrics.MetricSnapshot +OpenTelemetry.Metrics.MetricSnapshot.Description.get -> string +OpenTelemetry.Metrics.MetricSnapshot.MeterName.get -> string +OpenTelemetry.Metrics.MetricSnapshot.MeterVersion.get -> string +OpenTelemetry.Metrics.MetricSnapshot.MetricPoints.get -> System.Collections.Generic.IReadOnlyList +OpenTelemetry.Metrics.MetricSnapshot.MetricSnapshot(OpenTelemetry.Metrics.Metric metric) -> void +OpenTelemetry.Metrics.MetricSnapshot.MetricType.get -> OpenTelemetry.Metrics.MetricType +OpenTelemetry.Metrics.MetricSnapshot.Name.get -> string +OpenTelemetry.Metrics.MetricSnapshot.Unit.get -> string +OpenTelemetry.Trace.InMemoryExporterHelperExtensions +override OpenTelemetry.Exporter.InMemoryExporter.Dispose(bool disposing) -> void +override OpenTelemetry.Exporter.InMemoryExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult +static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.LoggerProviderBuilder +static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder static OpenTelemetry.Trace.InMemoryExporterHelperExtensions.AddInMemoryExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Trace.TracerProviderBuilder \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.InMemory/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.InMemory/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.InMemory/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.InMemory/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt new file mode 100644 index 00000000000..499065e2d09 --- /dev/null +++ b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt @@ -0,0 +1,24 @@ +OpenTelemetry.Exporter.InMemoryExporter +OpenTelemetry.Exporter.InMemoryExporter.InMemoryExporter(System.Collections.Generic.ICollection exportedItems) -> void +OpenTelemetry.Logs.InMemoryExporterLoggingExtensions +OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions +OpenTelemetry.Metrics.MetricSnapshot +OpenTelemetry.Metrics.MetricSnapshot.Description.get -> string +OpenTelemetry.Metrics.MetricSnapshot.MeterName.get -> string +OpenTelemetry.Metrics.MetricSnapshot.MeterVersion.get -> string +OpenTelemetry.Metrics.MetricSnapshot.MetricPoints.get -> System.Collections.Generic.IReadOnlyList +OpenTelemetry.Metrics.MetricSnapshot.MetricSnapshot(OpenTelemetry.Metrics.Metric metric) -> void +OpenTelemetry.Metrics.MetricSnapshot.MetricType.get -> OpenTelemetry.Metrics.MetricType +OpenTelemetry.Metrics.MetricSnapshot.Name.get -> string +OpenTelemetry.Metrics.MetricSnapshot.Unit.get -> string +OpenTelemetry.Trace.InMemoryExporterHelperExtensions +override OpenTelemetry.Exporter.InMemoryExporter.Dispose(bool disposing) -> void +override OpenTelemetry.Exporter.InMemoryExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult +static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder +static OpenTelemetry.Trace.InMemoryExporterHelperExtensions.AddInMemoryExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Trace.TracerProviderBuilder diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs index 23a28319a9a..136ded44d1c 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs @@ -41,13 +41,25 @@ public static OpenTelemetryLoggerOptions AddInMemoryExporter( new SimpleLogRecordExportProcessor(logExporter)); } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Adds InMemory exporter to the LoggerProviderBuilder. /// + /// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. /// . /// Collection which will be populated with the exported . /// The supplied instance of to chain the calls. - public static LoggerProviderBuilder AddInMemoryExporter( + public +#else + /// + /// Adds InMemory exporter to the LoggerProviderBuilder. + /// + /// . + /// Collection which will be populated with the exported . + /// The supplied instance of to chain the calls. + internal +#endif + static LoggerProviderBuilder AddInMemoryExporter( this LoggerProviderBuilder loggerProviderBuilder, ICollection exportedItems) { diff --git a/src/OpenTelemetry.Exporter.InMemory/OpenTelemetry.Exporter.InMemory.csproj b/src/OpenTelemetry.Exporter.InMemory/OpenTelemetry.Exporter.InMemory.csproj index 88e23dc3e42..d026e8d970d 100644 --- a/src/OpenTelemetry.Exporter.InMemory/OpenTelemetry.Exporter.InMemory.csproj +++ b/src/OpenTelemetry.Exporter.InMemory/OpenTelemetry.Exporter.InMemory.csproj @@ -25,7 +25,7 @@ - + From b29d488c56d33ac25f61480d09d7cc9b88e133ad Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 15:02:10 -0700 Subject: [PATCH 18/28] CHANGELOG update for in-memory exporter. --- src/OpenTelemetry.Exporter.InMemory/CHANGELOG.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OpenTelemetry.Exporter.InMemory/CHANGELOG.md b/src/OpenTelemetry.Exporter.InMemory/CHANGELOG.md index 2947bb52bc8..1edbdd46c20 100644 --- a/src/OpenTelemetry.Exporter.InMemory/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.InMemory/CHANGELOG.md @@ -6,8 +6,10 @@ Released 2023-Jul-12 -* Added `LoggerProviderBuilder.AddInMemoryExporter` registration extension. - ([#4584](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4584)) +* **Experimental (pre-release builds only):** Added + `LoggerProviderBuilder.AddInMemoryExporter` registration extension. + ([#4584](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4584), + [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735)) ## 1.5.1 From 1339ce091a47e704ab250b6ff9d0466572304f85 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 15:09:36 -0700 Subject: [PATCH 19/28] Update OTLP project for experimental features. --- src/OpenTelemetry.Api/AssemblyInfo.cs | 2 ++ .../net462/PublicAPI.Unshipped.txt | 0 .../net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.1/PublicAPI.Unshipped.txt | 0 .../{ => Stable}/net462/PublicAPI.Shipped.txt | 0 .../net462/PublicAPI.Unshipped.txt | 0 .../{ => Stable}/net6.0/PublicAPI.Shipped.txt | 0 .../net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt | 0 .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.1/PublicAPI.Shipped.txt | 0 .../netstandard2.1/PublicAPI.Unshipped.txt | 0 .../CHANGELOG.md | 22 +++++++++++++------ ...etry.Exporter.OpenTelemetryProtocol.csproj | 16 +++++++------- src/OpenTelemetry/AssemblyInfo.cs | 2 ++ 16 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/netstandard2.1/PublicAPI.Unshipped.txt rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/net462/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/net462/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/net6.0/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/net6.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/netstandard2.0/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/netstandard2.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/netstandard2.1/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/{ => Stable}/netstandard2.1/PublicAPI.Unshipped.txt (100%) diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index 61f86d5bf79..c62582ec8f6 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -27,6 +27,8 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.InMemory" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo.PublicKey)] #endif #if SIGNED diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/netstandard2.1/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Experimental/netstandard2.1/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.1/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.1/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.1/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.1/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.1/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/netstandard2.1/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/netstandard2.1/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md index 86a3c04ef39..c29294704a4 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md @@ -24,23 +24,31 @@ Released 2023-Jul-12 are now included in this package. ([#4556](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4556)) -* Add back support for Exemplars. See [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) - for instructions to enable exemplars. - ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) - * Updated Grpc.Net.Client to `2.45.0` to fix unobserved exception from failed calls. ([#4573](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4573)) -* Updated to support `Severity` and `SeverityText` when exporting `LogRecord`s. - ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) - * Updated Grpc.Net.Client to `2.52.0` to address the vulnerability reported by CVE-2023-32731. Refer to [https://github.com/grpc/grpc/pull/32309](https://github.com/grpc/grpc/pull/32309) for more details. ([#4647](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4647)) +* **Experimental (pre-release builds only):** + + * Note: See + [#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735) + for the introduction of experimental api support. + + * Add back support for Exemplars. See + [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) for + instructions to enable exemplars. + ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) + + * Updated to support `Severity` and `SeverityText` when exporting + `LogRecord`s. + ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) + ## 1.5.1 Released 2023-Jun-26 diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj index 3146e3ccfd1..07dab61c857 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj @@ -22,16 +22,16 @@ - + - - - - + + + + - - - + + + diff --git a/src/OpenTelemetry/AssemblyInfo.cs b/src/OpenTelemetry/AssemblyInfo.cs index 9f0bdb2f3b5..8fb928e92b4 100644 --- a/src/OpenTelemetry/AssemblyInfo.cs +++ b/src/OpenTelemetry/AssemblyInfo.cs @@ -28,4 +28,6 @@ #if !EXPOSE_EXPERIMENTAL_FEATURES [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo.PublicKey)] #endif From 8b8d9b1a8c01812138437988b263447fd8d04600 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 15:29:20 -0700 Subject: [PATCH 20/28] Updated hosting project for experimental features. --- .../AssemblyInfo.cs | 1 + src/OpenTelemetry.Api/AssemblyInfo.cs | 1 + .../net462/PublicAPI.Unshipped.txt | 2 ++ .../net6.0/PublicAPI.Unshipped.txt | 2 ++ .../netstandard2.0/PublicAPI.Unshipped.txt | 2 ++ .../{ => Stable}/net462/PublicAPI.Shipped.txt | 0 .../net462/PublicAPI.Unshipped.txt | 0 .../{ => Stable}/net6.0/PublicAPI.Shipped.txt | 0 .../net6.0/PublicAPI.Unshipped.txt | 0 .../netstandard2.0/PublicAPI.Shipped.txt | 0 .../netstandard2.0/PublicAPI.Unshipped.txt | 0 .../AssemblyInfo.cs | 2 ++ .../CHANGELOG.md | 5 +++ .../OpenTelemetry.Extensions.Hosting.csproj | 4 +-- .../OpenTelemetryBuilder.cs | 33 +++++++++++++++++-- 15 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt create mode 100644 src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt rename src/OpenTelemetry.Extensions.Hosting/.publicApi/{ => Stable}/net462/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Extensions.Hosting/.publicApi/{ => Stable}/net462/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Extensions.Hosting/.publicApi/{ => Stable}/net6.0/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Extensions.Hosting/.publicApi/{ => Stable}/net6.0/PublicAPI.Unshipped.txt (100%) rename src/OpenTelemetry.Extensions.Hosting/.publicApi/{ => Stable}/netstandard2.0/PublicAPI.Shipped.txt (100%) rename src/OpenTelemetry.Extensions.Hosting/.publicApi/{ => Stable}/netstandard2.0/PublicAPI.Unshipped.txt (100%) diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs index a39fcad6c1e..8403a000861 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs @@ -22,4 +22,5 @@ #if !EXPOSE_EXPERIMENTAL_FEATURES [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting" + AssemblyInfo.PublicKey)] #endif diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index c62582ec8f6..0c66c5a6d96 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -29,6 +29,7 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.InMemory" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting" + AssemblyInfo.PublicKey)] #endif #if SIGNED diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..8617a4e70a1 --- /dev/null +++ b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net462/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +OpenTelemetry.OpenTelemetryBuilder.WithLogging() -> OpenTelemetry.OpenTelemetryBuilder! +OpenTelemetry.OpenTelemetryBuilder.WithLogging(System.Action! configure) -> OpenTelemetry.OpenTelemetryBuilder! diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..8617a4e70a1 --- /dev/null +++ b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +OpenTelemetry.OpenTelemetryBuilder.WithLogging() -> OpenTelemetry.OpenTelemetryBuilder! +OpenTelemetry.OpenTelemetryBuilder.WithLogging(System.Action! configure) -> OpenTelemetry.OpenTelemetryBuilder! diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt new file mode 100644 index 00000000000..8617a4e70a1 --- /dev/null +++ b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Experimental/netstandard2.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +OpenTelemetry.OpenTelemetryBuilder.WithLogging() -> OpenTelemetry.OpenTelemetryBuilder! +OpenTelemetry.OpenTelemetryBuilder.WithLogging(System.Action! configure) -> OpenTelemetry.OpenTelemetryBuilder! diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/net462/PublicAPI.Shipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net462/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Extensions.Hosting/.publicApi/net462/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net462/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/net462/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net462/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Extensions.Hosting/.publicApi/net462/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net462/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/net6.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Extensions.Hosting/.publicApi/net6.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net6.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Extensions.Hosting/.publicApi/net6.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/net6.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt similarity index 100% rename from src/OpenTelemetry.Extensions.Hosting/.publicApi/netstandard2.0/PublicAPI.Shipped.txt rename to src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/netstandard2.0/PublicAPI.Shipped.txt diff --git a/src/OpenTelemetry.Extensions.Hosting/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt similarity index 100% rename from src/OpenTelemetry.Extensions.Hosting/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt rename to src/OpenTelemetry.Extensions.Hosting/.publicApi/Stable/netstandard2.0/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs index abf21ce8c15..aeb539526fb 100644 --- a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs @@ -19,6 +19,7 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2" + AssemblyInfo.MoqPublicKey)] +#if EXPOSE_EXPERIMENTAL_FEATURES #if SIGNED internal static class AssemblyInfo { @@ -32,3 +33,4 @@ internal static class AssemblyInfo public const string MoqPublicKey = ""; } #endif +#endif diff --git a/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md b/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md index 5019a0e3bed..f52024b2215 100644 --- a/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md +++ b/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +* **Experimental (pre-release builds only):** Added [Logs Bridge + API](https://github.com/open-telemetry/opentelemetry-specification/blob/976432b74c565e8a84af3570e9b82cb95e1d844c/specification/logs/bridge-api.md) + implementation (`OpenTelemetryBuilder.WithLogging`). + ([#4735](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4735)) + ## 1.6.0-alpha.1 Released 2023-Jul-12 diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj index 82f35987c84..4db3b5689b5 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj @@ -23,8 +23,8 @@ - - + + diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs index 1f50f76637a..805808488a1 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs @@ -136,19 +136,46 @@ public OpenTelemetryBuilder WithTracing(Action configure) return this; } +#if EXPOSE_EXPERIMENTAL_FEATURES /// /// Adds logging services into the builder. /// /// + /// WARNING: This is an experimental API which might change or be removed in the future. Use at your own risk. /// Note: This is safe to be called multiple times and by library authors. /// Only a single will be created for a given /// . /// /// The supplied for chaining /// calls. - internal OpenTelemetryBuilder WithLogging() + public +#else + /// + /// Adds logging services into the builder. + /// + /// + /// Note: This is safe to be called multiple times and by library authors. + /// Only a single will be created for a given + /// . + /// + /// The supplied for chaining + /// calls. + internal +#endif + OpenTelemetryBuilder WithLogging() => this.WithLogging(b => { }); +#if EXPOSE_EXPERIMENTAL_FEATURES + /// + /// Adds logging services into the builder. + /// + /// + /// + /// configuration callback. + /// The supplied for chaining + /// calls. + public +#else /// /// Adds logging services into the builder. /// @@ -157,7 +184,9 @@ internal OpenTelemetryBuilder WithLogging() /// configuration callback. /// The supplied for chaining /// calls. - internal OpenTelemetryBuilder WithLogging(Action configure) + internal +#endif + OpenTelemetryBuilder WithLogging(Action configure) { Guard.ThrowIfNull(configure); From 5cbf663f7d7e8bd08b7d8010664136d7b966cd4f Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 15:33:12 -0700 Subject: [PATCH 21/28] Fix for in-memory exporter public api files. --- .../net6.0/PublicAPI.Unshipped.txt | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt index 7dd51ae6956..f7378ee36cc 100644 --- a/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Exporter.InMemory/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -1,25 +1 @@ -OpenTelemetry.Exporter.InMemoryExporter -OpenTelemetry.Exporter.InMemoryExporter.InMemoryExporter(System.Collections.Generic.ICollection exportedItems) -> void -OpenTelemetry.Logs.InMemoryExporterLoggingExtensions -OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions -OpenTelemetry.Metrics.MetricSnapshot -OpenTelemetry.Metrics.MetricSnapshot.Description.get -> string -OpenTelemetry.Metrics.MetricSnapshot.MeterName.get -> string -OpenTelemetry.Metrics.MetricSnapshot.MeterVersion.get -> string -OpenTelemetry.Metrics.MetricSnapshot.MetricPoints.get -> System.Collections.Generic.IReadOnlyList -OpenTelemetry.Metrics.MetricSnapshot.MetricSnapshot(OpenTelemetry.Metrics.Metric metric) -> void -OpenTelemetry.Metrics.MetricSnapshot.MetricType.get -> OpenTelemetry.Metrics.MetricType -OpenTelemetry.Metrics.MetricSnapshot.Name.get -> string -OpenTelemetry.Metrics.MetricSnapshot.Unit.get -> string -OpenTelemetry.Trace.InMemoryExporterHelperExtensions -override OpenTelemetry.Exporter.InMemoryExporter.Dispose(bool disposing) -> void -override OpenTelemetry.Exporter.InMemoryExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.LoggerProviderBuilder -static OpenTelemetry.Logs.InMemoryExporterLoggingExtensions.AddInMemoryExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.InMemoryExporterMetricsExtensions.AddInMemoryExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Collections.Generic.ICollection exportedItems, System.Action configureMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Trace.InMemoryExporterHelperExtensions.AddInMemoryExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Collections.Generic.ICollection exportedItems) -> OpenTelemetry.Trace.TracerProviderBuilder \ No newline at end of file From d7f53cc5d51cd9f2189671af5b402edb56919518 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 8 Aug 2023 15:40:24 -0700 Subject: [PATCH 22/28] Fixes. --- examples/AspNetCore/Program.cs | 2 ++ src/OpenTelemetry.Api/AssemblyInfo.cs | 1 + .../net6.0/PublicAPI.Unshipped.txt | 35 +------------------ 3 files changed, 4 insertions(+), 34 deletions(-) diff --git a/examples/AspNetCore/Program.cs b/examples/AspNetCore/Program.cs index bc4e0602cda..33e2a08abf0 100644 --- a/examples/AspNetCore/Program.cs +++ b/examples/AspNetCore/Program.cs @@ -110,7 +110,9 @@ // Ensure the MeterProvider subscribes to any custom Meters. builder .AddMeter(Instrumentation.MeterName) +#if EXPOSE_EXPERIMENTAL_FEATURES .SetExemplarFilter(new TraceBasedExemplarFilter()) +#endif .AddRuntimeInstrumentation() .AddHttpClientInstrumentation() .AddAspNetCoreInstrumentation(); diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index 0c66c5a6d96..b195f34fe23 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -30,6 +30,7 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo.PublicKey)] #endif #if SIGNED diff --git a/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt index edb9ad0036b..be114835ccd 100644 --- a/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Exporter.Console/.publicApi/Experimental/net6.0/PublicAPI.Unshipped.txt @@ -1,36 +1,3 @@ -OpenTelemetry.Exporter.ConsoleActivityExporter -OpenTelemetry.Exporter.ConsoleActivityExporter.ConsoleActivityExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void -OpenTelemetry.Exporter.ConsoleExporter -OpenTelemetry.Exporter.ConsoleExporter.ConsoleExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void -OpenTelemetry.Exporter.ConsoleExporter.WriteLine(string message) -> void -OpenTelemetry.Exporter.ConsoleExporterOptions -OpenTelemetry.Exporter.ConsoleExporterOptions.ConsoleExporterOptions() -> void -OpenTelemetry.Exporter.ConsoleExporterOptions.Targets.get -> OpenTelemetry.Exporter.ConsoleExporterOutputTargets -OpenTelemetry.Exporter.ConsoleExporterOptions.Targets.set -> void -OpenTelemetry.Exporter.ConsoleExporterOutputTargets -OpenTelemetry.Exporter.ConsoleExporterOutputTargets.Console = 1 -> OpenTelemetry.Exporter.ConsoleExporterOutputTargets -OpenTelemetry.Exporter.ConsoleExporterOutputTargets.Debug = 2 -> OpenTelemetry.Exporter.ConsoleExporterOutputTargets -OpenTelemetry.Exporter.ConsoleLogRecordExporter -OpenTelemetry.Exporter.ConsoleLogRecordExporter.ConsoleLogRecordExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void -OpenTelemetry.Exporter.ConsoleMetricExporter -OpenTelemetry.Exporter.ConsoleMetricExporter.ConsoleMetricExporter(OpenTelemetry.Exporter.ConsoleExporterOptions options) -> void -OpenTelemetry.Logs.ConsoleExporterLoggingExtensions -OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions -OpenTelemetry.Trace.ConsoleExporterHelperExtensions -override OpenTelemetry.Exporter.ConsoleActivityExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult -override OpenTelemetry.Exporter.ConsoleLogRecordExporter.Dispose(bool disposing) -> void -override OpenTelemetry.Exporter.ConsoleLogRecordExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult -override OpenTelemetry.Exporter.ConsoleMetricExporter.Export(in OpenTelemetry.Batch batch) -> OpenTelemetry.ExportResult static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder) -> OpenTelemetry.Logs.LoggerProviderBuilder -static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder, System.Action configure) -> OpenTelemetry.Logs.LoggerProviderBuilder static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder, string name, System.Action configure) -> OpenTelemetry.Logs.LoggerProviderBuilder -static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions -static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Action configure) -> OpenTelemetry.Logs.OpenTelemetryLoggerOptions -static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action configureExporterAndMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action configureExporter) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Action configureExporterAndMetricReader) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Metrics.ConsoleExporterMetricsExtensions.AddConsoleExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, string name, System.Action configureExporter) -> OpenTelemetry.Metrics.MeterProviderBuilder -static OpenTelemetry.Trace.ConsoleExporterHelperExtensions.AddConsoleExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder -static OpenTelemetry.Trace.ConsoleExporterHelperExtensions.AddConsoleExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder -static OpenTelemetry.Trace.ConsoleExporterHelperExtensions.AddConsoleExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder \ No newline at end of file +static OpenTelemetry.Logs.ConsoleExporterLoggingExtensions.AddConsoleExporter(this OpenTelemetry.Logs.LoggerProviderBuilder loggerProviderBuilder, System.Action configure) -> OpenTelemetry.Logs.LoggerProviderBuilder From 498467d56aebf62860c4e554b7aee73173207be2 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 9 Aug 2023 11:32:08 -0700 Subject: [PATCH 23/28] Lint fixes. --- src/OpenTelemetry.Exporter.Console/CHANGELOG.md | 4 ++-- src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md | 2 +- src/OpenTelemetry/CHANGELOG.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenTelemetry.Exporter.Console/CHANGELOG.md b/src/OpenTelemetry.Exporter.Console/CHANGELOG.md index b10e248645f..a62e73c8ee9 100644 --- a/src/OpenTelemetry.Exporter.Console/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Console/CHANGELOG.md @@ -16,11 +16,11 @@ Released 2023-Jul-12 [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) for instructions to enable exemplars. ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) - + * Updated to display `Severity` and `SeverityText` text instead of `ILogger.LogLevel` when exporting `LogRecord` instances. ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) - + * Added `LoggerProviderBuilder.AddConsoleExporter` registration extension. ([#4583](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4583)) diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md index c29294704a4..5663a2e083e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md @@ -44,7 +44,7 @@ Released 2023-Jul-12 [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) for instructions to enable exemplars. ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) - + * Updated to support `Severity` and `SeverityText` when exporting `LogRecord`s. ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) diff --git a/src/OpenTelemetry/CHANGELOG.md b/src/OpenTelemetry/CHANGELOG.md index cfb24e7e01e..6c0f86ca9a0 100644 --- a/src/OpenTelemetry/CHANGELOG.md +++ b/src/OpenTelemetry/CHANGELOG.md @@ -32,12 +32,12 @@ Released 2023-Jul-12 API](https://github.com/open-telemetry/opentelemetry-specification/blob/976432b74c565e8a84af3570e9b82cb95e1d844c/specification/logs/bridge-api.md) implementation (`Sdk.CreateLoggerProviderBuilder`, etc.). ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) - + * Obsoleted `LogRecord.LogLevel` in favor of the `LogRecord.Severity` property which matches the [OpenTelemetry Specification > Logs DataModel > Severity definition](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-severitynumber). ([#4433](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4433)) - + * Added `LogRecord.Logger` property to access the [OpenTelemetry Specification Instrumentation Scope](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#instrumentation-scope) From 8ef1e582ee00d2555c631faf00a664e505fd375a Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 9 Aug 2023 11:34:29 -0700 Subject: [PATCH 24/28] CI workflow fix. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c41adf2332f..68105bc9234 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,9 @@ jobs: with: fetch-depth: 0 # fetching all + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + - name: Install dependencies run: dotnet restore From 76d5a7c714fc9d4a5b3680e6f8993385a395f8c3 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 9 Aug 2023 11:40:11 -0700 Subject: [PATCH 25/28] More lint fixes. --- src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md index 5663a2e083e..fc9afc5e825 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/CHANGELOG.md @@ -44,7 +44,7 @@ Released 2023-Jul-12 [exemplars](../../docs/metrics/customizing-the-sdk/README.md#exemplars) for instructions to enable exemplars. ([#4553](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4553)) - + * Updated to support `Severity` and `SeverityText` when exporting `LogRecord`s. ([#4568](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4568)) From 88d3273c6ad3d3dbac231a35142fad1cdd6b3260 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 9 Aug 2023 16:57:26 -0700 Subject: [PATCH 26/28] Use file scoping on AssemblyInfo helpers. --- build/Common.props | 2 +- .../AssemblyInfo.cs | 16 ++++++++++++++++ src/OpenTelemetry.Api/AssemblyInfo.cs | 6 ++++-- .../AssemblyInfo.cs | 8 ++++---- src/OpenTelemetry/AssemblyInfo.cs | 16 ++++++++++++++++ 5 files changed, 41 insertions(+), 7 deletions(-) diff --git a/build/Common.props b/build/Common.props index 032dfa54304..90abd8e31cc 100644 --- a/build/Common.props +++ b/build/Common.props @@ -1,6 +1,6 @@ - 10.0 + latest true $([System.IO.Directory]::GetParent($(MSBuildThisFileDirectory)).Parent.FullName) $(MSBuildThisFileDirectory)debug.snk diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs index 8403a000861..b9f47a6b86d 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs @@ -24,3 +24,19 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Console" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting" + AssemblyInfo.PublicKey)] #endif + +#if SIGNED +#pragma warning disable SA1400 // Access modifier should be declared +file static class AssemblyInfo +{ + public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; + public const string MoqPublicKey = ", PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; +} +#else +file static class AssemblyInfo +{ + public const string PublicKey = ""; + public const string MoqPublicKey = ""; +} +#pragma warning restore SA1400 // Access modifier should be declared +#endif diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index b195f34fe23..cd27505cd40 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -34,15 +34,17 @@ #endif #if SIGNED -internal static class AssemblyInfo +#pragma warning disable SA1400 // Access modifier should be declared +file static class AssemblyInfo { public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; public const string MoqPublicKey = ", PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; } #else -internal static class AssemblyInfo +file static class AssemblyInfo { public const string PublicKey = ""; public const string MoqPublicKey = ""; } +#pragma warning restore SA1400 // Access modifier should be declared #endif diff --git a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs index aeb539526fb..266376b2ffd 100644 --- a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs @@ -19,18 +19,18 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2" + AssemblyInfo.MoqPublicKey)] -#if EXPOSE_EXPERIMENTAL_FEATURES #if SIGNED -internal static class AssemblyInfo +#pragma warning disable SA1400 // Access modifier should be declared +file static class AssemblyInfo { public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; public const string MoqPublicKey = ", PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; } #else -internal static class AssemblyInfo +file static class AssemblyInfo { public const string PublicKey = ""; public const string MoqPublicKey = ""; } -#endif +#pragma warning restore SA1400 // Access modifier should be declared #endif diff --git a/src/OpenTelemetry/AssemblyInfo.cs b/src/OpenTelemetry/AssemblyInfo.cs index 8fb928e92b4..a8daad7bad0 100644 --- a/src/OpenTelemetry/AssemblyInfo.cs +++ b/src/OpenTelemetry/AssemblyInfo.cs @@ -31,3 +31,19 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo.PublicKey)] #endif + +#if SIGNED +#pragma warning disable SA1400 // Access modifier should be declared +file static class AssemblyInfo +{ + public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; + public const string MoqPublicKey = ", PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7"; +} +#else +file static class AssemblyInfo +{ + public const string PublicKey = ""; + public const string MoqPublicKey = ""; +} +#pragma warning restore SA1400 // Access modifier should be declared +#endif From 463e977c11058321841f43380477aacd76d5236c Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Wed, 9 Aug 2023 17:20:18 -0700 Subject: [PATCH 27/28] Code review. --- .../OpenTelemetry.Exporter.Console.csproj | 11 +++++++---- ...etry.Exporter.OpenTelemetryProtocol.csproj | 19 +++++++++++-------- .../OpenTelemetry.Extensions.Hosting.csproj | 6 +++--- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj b/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj index 0760cf0bea4..6b065829b60 100644 --- a/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj +++ b/src/OpenTelemetry.Exporter.Console/OpenTelemetry.Exporter.Console.csproj @@ -29,14 +29,17 @@ + + + + + + + - - - - diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj index 07dab61c857..6342a5c789c 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj @@ -21,17 +21,20 @@ + + + + + + + + + + + - - - - - - - - diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj index 4db3b5689b5..cff040fe290 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetry.Extensions.Hosting.csproj @@ -22,9 +22,9 @@ - - - + + + From 65637b0ea3d85432503067c584fdf56399787a98 Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Thu, 10 Aug 2023 10:59:46 -0700 Subject: [PATCH 28/28] Update StyleCop and fix warnings using "file" or "required" modifiers. --- .editorconfig | 2 +- Directory.Packages.props | 2 +- src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs | 2 -- src/OpenTelemetry.Api/AssemblyInfo.cs | 2 -- src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs | 2 -- src/OpenTelemetry/AssemblyInfo.cs | 2 -- 6 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.editorconfig b/.editorconfig index fcbf24f9a5d..63cdbe40a1a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -34,7 +34,7 @@ csharp_indent_switch_labels = true csharp_indent_labels = flush_left # Modifier preferences -csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion +csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent # this. preferences diff --git a/Directory.Packages.props b/Directory.Packages.props index 763bba1b72d..fc53674953f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -81,7 +81,7 @@ - + diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs index b9f47a6b86d..678ad1e5c91 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs @@ -26,7 +26,6 @@ #endif #if SIGNED -#pragma warning disable SA1400 // Access modifier should be declared file static class AssemblyInfo { public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; @@ -38,5 +37,4 @@ file static class AssemblyInfo public const string PublicKey = ""; public const string MoqPublicKey = ""; } -#pragma warning restore SA1400 // Access modifier should be declared #endif diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index cd27505cd40..3709e7402a8 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -34,7 +34,6 @@ #endif #if SIGNED -#pragma warning disable SA1400 // Access modifier should be declared file static class AssemblyInfo { public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; @@ -46,5 +45,4 @@ file static class AssemblyInfo public const string PublicKey = ""; public const string MoqPublicKey = ""; } -#pragma warning restore SA1400 // Access modifier should be declared #endif diff --git a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs index 266376b2ffd..9c25df52d83 100644 --- a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs @@ -20,7 +20,6 @@ [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2" + AssemblyInfo.MoqPublicKey)] #if SIGNED -#pragma warning disable SA1400 // Access modifier should be declared file static class AssemblyInfo { public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; @@ -32,5 +31,4 @@ file static class AssemblyInfo public const string PublicKey = ""; public const string MoqPublicKey = ""; } -#pragma warning restore SA1400 // Access modifier should be declared #endif diff --git a/src/OpenTelemetry/AssemblyInfo.cs b/src/OpenTelemetry/AssemblyInfo.cs index a8daad7bad0..ddcbfd91a8e 100644 --- a/src/OpenTelemetry/AssemblyInfo.cs +++ b/src/OpenTelemetry/AssemblyInfo.cs @@ -33,7 +33,6 @@ #endif #if SIGNED -#pragma warning disable SA1400 // Access modifier should be declared file static class AssemblyInfo { public const string PublicKey = ", PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898"; @@ -45,5 +44,4 @@ file static class AssemblyInfo public const string PublicKey = ""; public const string MoqPublicKey = ""; } -#pragma warning restore SA1400 // Access modifier should be declared #endif