From 80c5dbdd345761f7b2a1b444e0c609db824566bf Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Wed, 6 Dec 2023 20:24:17 -0800 Subject: [PATCH 1/2] Simplify copyright disclaimer --- build/stylecop.json | 6 +++--- docs/logs/correlation/Program.cs | 17 ++--------------- docs/logs/customizing-the-sdk/Program.cs | 17 ++--------------- .../logs/extending-the-sdk/LoggerExtensions.cs | 17 ++--------------- docs/logs/extending-the-sdk/MyExporter.cs | 17 ++--------------- docs/logs/extending-the-sdk/MyProcessor.cs | 17 ++--------------- docs/logs/extending-the-sdk/Program.cs | 17 ++--------------- .../logs/getting-started-aspnetcore/Program.cs | 17 ++--------------- docs/logs/getting-started-console/Program.cs | 17 ++--------------- docs/logs/redaction/MyRedactionProcessor.cs | 17 ++--------------- docs/logs/redaction/Program.cs | 17 ++--------------- docs/metrics/customizing-the-sdk/Program.cs | 17 ++--------------- docs/metrics/extending-the-sdk/MyExporter.cs | 17 ++--------------- .../extending-the-sdk/MyExporterExtensions.cs | 17 ++--------------- docs/metrics/extending-the-sdk/Program.cs | 17 ++--------------- .../getting-started-aspnetcore/Program.cs | 17 ++--------------- .../metrics/getting-started-console/Program.cs | 17 ++--------------- .../Program.cs | 17 ++--------------- .../learning-more-instruments/Program.cs | 17 ++--------------- docs/trace/customizing-the-sdk/Program.cs | 17 ++--------------- .../extending-the-sdk/MyEnrichingProcessor.cs | 17 ++--------------- docs/trace/extending-the-sdk/MyExporter.cs | 17 ++--------------- .../extending-the-sdk/MyExporterExtensions.cs | 17 ++--------------- .../extending-the-sdk/MyFilteringProcessor.cs | 17 ++--------------- docs/trace/extending-the-sdk/MyProcessor.cs | 17 ++--------------- .../extending-the-sdk/MyResourceDetector.cs | 17 ++--------------- docs/trace/extending-the-sdk/MySampler.cs | 17 ++--------------- docs/trace/extending-the-sdk/Program.cs | 17 ++--------------- .../getting-started-aspnetcore/Program.cs | 17 ++--------------- docs/trace/getting-started-console/Program.cs | 17 ++--------------- docs/trace/getting-started-jaeger/Program.cs | 17 ++--------------- .../LinksAndParentBasedSampler.cs | 17 ++--------------- .../links-based-sampler/LinksBasedSampler.cs | 17 ++--------------- docs/trace/links-based-sampler/Program.cs | 17 ++--------------- .../Program.cs | 17 ++--------------- docs/trace/reporting-exceptions/Program.cs | 17 ++--------------- .../stratified-sampling-example/Program.cs | 17 ++--------------- .../StratifiedSampler.cs | 17 ++--------------- .../ParentBasedElseAlwaysRecordSampler.cs | 17 ++--------------- .../tail-based-sampling-span-level/Program.cs | 17 ++--------------- .../TailSamplingProcessor.cs | 17 ++--------------- .../Controllers/WeatherForecastController.cs | 17 ++--------------- examples/AspNetCore/Instrumentation.cs | 17 ++--------------- examples/AspNetCore/Models/WeatherForecast.cs | 17 ++--------------- examples/AspNetCore/Program.cs | 17 ++--------------- .../InstrumentationWithActivitySource.cs | 17 ++--------------- examples/Console/Program.cs | 16 +--------------- examples/Console/TestConsoleExporter.cs | 17 ++--------------- examples/Console/TestGrpcNetClient.cs | 17 ++--------------- examples/Console/TestHttpClient.cs | 18 +++--------------- examples/Console/TestInMemoryExporter.cs | 17 ++--------------- examples/Console/TestLogs.cs | 17 ++--------------- examples/Console/TestMetrics.cs | 17 ++--------------- .../Console/TestOTelShimWithConsoleExporter.cs | 17 ++--------------- examples/Console/TestOpenTracingShim.cs | 17 ++--------------- examples/Console/TestOtlpExporter.cs | 17 ++--------------- examples/Console/TestPrometheusExporter.cs | 17 ++--------------- examples/Console/TestZipkinExporter.cs | 17 ++--------------- examples/GrpcService/Program.cs | 17 ++--------------- .../GrpcService/Services/GreeterService.cs | 17 ++--------------- examples/GrpcService/Startup.cs | 17 ++--------------- .../Utils/Messaging/MessageReceiver.cs | 17 ++--------------- .../Utils/Messaging/MessageSender.cs | 17 ++--------------- .../Utils/Messaging/RabbitMqHelper.cs | 17 ++--------------- .../Controllers/SendMessageController.cs | 17 ++--------------- examples/MicroserviceExample/WebApi/Program.cs | 17 ++--------------- examples/MicroserviceExample/WebApi/Startup.cs | 17 ++--------------- .../WorkerService/Program.cs | 17 ++--------------- .../WorkerService/Worker.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../Logs/IConfigureLoggerProviderBuilder.cs | 17 ++--------------- .../Logs/ILoggerProviderBuilder.cs | 17 ++--------------- .../LoggerProviderServiceCollectionBuilder.cs | 17 ++--------------- ...InjectionLoggerProviderBuilderExtensions.cs | 17 ++--------------- ...ectionLoggingServiceCollectionExtensions.cs | 17 ++--------------- .../Metrics/IConfigureMeterProviderBuilder.cs | 17 ++--------------- .../Metrics/IMeterProviderBuilder.cs | 17 ++--------------- .../MeterProviderServiceCollectionBuilder.cs | 17 ++--------------- ...yInjectionMeterProviderBuilderExtensions.cs | 17 ++--------------- ...ectionMetricsServiceCollectionExtensions.cs | 17 ++--------------- .../Trace/IConfigureTracerProviderBuilder.cs | 17 ++--------------- .../Trace/ITracerProviderBuilder.cs | 17 ++--------------- ...InjectionTracerProviderBuilderExtensions.cs | 17 ++--------------- ...ectionTracingServiceCollectionExtensions.cs | 17 ++--------------- .../TracerProviderServiceCollectionBuilder.cs | 17 ++--------------- .../ActivityContextExtensions.cs | 17 ++--------------- src/OpenTelemetry.Api/AssemblyInfo.cs | 17 ++--------------- src/OpenTelemetry.Api/Baggage.cs | 17 ++--------------- src/OpenTelemetry.Api/BaseProvider.cs | 17 ++--------------- .../Context/AsyncLocalRuntimeContextSlot.cs | 17 ++--------------- .../IRuntimeContextSlotValueAccessor.cs | 17 ++--------------- .../Context/Propagation/B3Propagator.cs | 17 ++--------------- .../Context/Propagation/BaggagePropagator.cs | 17 ++--------------- .../Propagation/CompositeTextMapPropagator.cs | 17 ++--------------- .../Propagation/NoopTextMapPropagator.cs | 17 ++--------------- .../Context/Propagation/PropagationContext.cs | 17 ++--------------- .../Context/Propagation/Propagators.cs | 17 ++--------------- .../Context/Propagation/TextMapPropagator.cs | 17 ++--------------- .../Propagation/TraceContextPropagator.cs | 17 ++--------------- .../Context/Propagation/TraceStateUtilsNew.cs | 17 ++--------------- .../Context/RemotingRuntimeContextSlot.cs | 17 ++--------------- .../Context/RuntimeContext.cs | 17 ++--------------- .../Context/RuntimeContextSlot.cs | 17 ++--------------- .../Context/ThreadLocalRuntimeContextSlot.cs | 17 ++--------------- .../Internal/OpenTelemetryApiEventSource.cs | 17 ++--------------- .../Logs/IDeferredLoggerProviderBuilder.cs | 17 ++--------------- .../Logs/LogRecordAttributeList.cs | 17 ++--------------- src/OpenTelemetry.Api/Logs/LogRecordData.cs | 17 ++--------------- .../Logs/LogRecordSeverity.cs | 17 ++--------------- .../Logs/LogRecordSeverityExtensions.cs | 17 ++--------------- src/OpenTelemetry.Api/Logs/Logger.cs | 17 ++--------------- src/OpenTelemetry.Api/Logs/LoggerProvider.cs | 17 ++--------------- .../Logs/LoggerProviderBuilder.cs | 17 ++--------------- src/OpenTelemetry.Api/Logs/NoopLogger.cs | 17 ++--------------- .../Metrics/IDeferredMeterProviderBuilder.cs | 17 ++--------------- src/OpenTelemetry.Api/Metrics/MeterProvider.cs | 17 ++--------------- .../Metrics/MeterProviderBuilder.cs | 17 ++--------------- .../Trace/ActivityExtensions.cs | 17 ++--------------- .../Trace/IDeferredTracerProviderBuilder.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/Link.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/SpanAttributes.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/SpanContext.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/SpanKind.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/Status.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/StatusCode.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/TelemetrySpan.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/Tracer.cs | 17 ++--------------- src/OpenTelemetry.Api/Trace/TracerProvider.cs | 17 ++--------------- .../Trace/TracerProviderBuilder.cs | 17 ++--------------- .../ConsoleActivityExporter.cs | 17 ++--------------- .../ConsoleExporter.cs | 17 ++--------------- .../ConsoleExporterHelperExtensions.cs | 17 ++--------------- .../ConsoleExporterLoggingExtensions.cs | 17 ++--------------- .../ConsoleExporterMetricsExtensions.cs | 17 ++--------------- .../ConsoleExporterOptions.cs | 17 ++--------------- .../ConsoleExporterOutputTargets.cs | 17 ++--------------- .../ConsoleLogRecordExporter.cs | 17 ++--------------- .../ConsoleMetricExporter.cs | 17 ++--------------- .../ConsoleTagTransformer.cs | 17 ++--------------- .../InMemoryExporter.cs | 17 ++--------------- .../InMemoryExporterHelperExtensions.cs | 17 ++--------------- .../InMemoryExporterLoggingExtensions.cs | 17 ++--------------- .../InMemoryExporterMetricsExtensions.cs | 17 ++--------------- .../MetricSnapshot.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../Implementation/ActivityExtensions.cs | 17 ++--------------- .../Implementation/ExperimentalOptions.cs | 17 ++--------------- .../ExportClient/BaseOtlpGrpcExportClient.cs | 17 ++--------------- .../ExportClient/BaseOtlpHttpExportClient.cs | 17 ++--------------- .../ExportClient/ExporterClientValidation.cs | 17 ++--------------- .../ExportClient/IExportClient.cs | 17 ++--------------- .../ExportClient/OtlpGrpcLogExportClient.cs | 17 ++--------------- .../OtlpGrpcMetricsExportClient.cs | 17 ++--------------- .../ExportClient/OtlpGrpcTraceExportClient.cs | 17 ++--------------- .../ExportClient/OtlpHttpLogExportClient.cs | 17 ++--------------- .../OtlpHttpMetricsExportClient.cs | 17 ++--------------- .../ExportClient/OtlpHttpTraceExportClient.cs | 17 ++--------------- .../Implementation/ExportClient/OtlpRetry.cs | 17 ++--------------- .../Implementation/MetricItemExtensions.cs | 17 ++--------------- ...OpenTelemetryProtocolExporterEventSource.cs | 17 ++--------------- .../Implementation/OtlpKeyValueTransformer.cs | 17 ++--------------- .../Implementation/OtlpLogRecordTransformer.cs | 17 ++--------------- .../Implementation/ResourceExtensions.cs | 17 ++--------------- .../Implementation/SdkLimitOptions.cs | 17 ++--------------- .../Implementation/TimestampHelpers.cs | 17 ++--------------- .../OtlpExportProtocol.cs | 17 ++--------------- .../OtlpExportProtocolParser.cs | 17 ++--------------- .../OtlpExporterOptions.cs | 17 ++--------------- .../OtlpExporterOptionsExtensions.cs | 17 ++--------------- .../OtlpLogExporter.cs | 17 ++--------------- .../OtlpLogExporterHelperExtensions.cs | 17 ++--------------- .../OtlpMetricExporter.cs | 17 ++--------------- .../OtlpMetricExporterExtensions.cs | 17 ++--------------- .../OtlpTraceExporter.cs | 17 ++--------------- .../OtlpTraceExporterHelperExtensions.cs | 17 ++--------------- .../PersistentStorage/DirectorySizeTracker.cs | 17 ++--------------- .../PersistentStorage/FileBlob.cs | 17 ++--------------- .../PersistentStorage/FileBlobProvider.cs | 17 ++--------------- .../PersistentStorage/PersistentBlob.cs | 17 ++--------------- .../PersistentBlobProvider.cs | 17 ++--------------- ...PersistentStorageAbstractionsEventSource.cs | 17 ++--------------- .../PersistentStorageEventSource.cs | 17 ++--------------- .../PersistentStorageHelper.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../PrometheusAspNetCoreOptions.cs | 17 ++--------------- ...heusExporterApplicationBuilderExtensions.cs | 17 ++--------------- ...usExporterEndpointRouteBuilderExtensions.cs | 17 ++--------------- ...usExporterMeterProviderBuilderExtensions.cs | 17 ++--------------- .../PrometheusExporterMiddleware.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../Internal/PrometheusCollectionManager.cs | 17 ++--------------- .../Internal/PrometheusExporter.cs | 17 ++--------------- .../Internal/PrometheusExporterEventSource.cs | 17 ++--------------- .../Internal/PrometheusExporterOptions.cs | 17 ++--------------- .../Internal/PrometheusHeadersParser.cs | 17 ++--------------- .../Internal/PrometheusMetric.cs | 17 ++--------------- .../Internal/PrometheusSerializer.cs | 17 ++--------------- .../Internal/PrometheusSerializerExt.cs | 17 ++--------------- .../Internal/PrometheusType.cs | 17 ++--------------- .../PrometheusHttpListener.cs | 17 ++--------------- ...tpListenerMeterProviderBuilderExtensions.cs | 17 ++--------------- .../PrometheusHttpListenerOptions.cs | 17 ++--------------- .../AssemblyInfo.cs | 18 +++--------------- .../ZipkinActivityConversionExtensions.cs | 17 ++--------------- .../Implementation/ZipkinAnnotation.cs | 18 +++--------------- .../Implementation/ZipkinEndpoint.cs | 17 ++--------------- .../ZipkinExporterEventSource.cs | 17 ++--------------- .../Implementation/ZipkinSpan.cs | 17 ++--------------- .../Implementation/ZipkinSpanJsonHelper.cs | 17 ++--------------- .../Implementation/ZipkinTagTransformer.cs | 17 ++--------------- .../ZipkinExporter.cs | 17 ++--------------- .../ZipkinExporterHelperExtensions.cs | 17 ++--------------- .../ZipkinExporterOptions.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../HostingExtensionsEventSource.cs | 17 ++--------------- .../OpenTelemetryMetricsListener.cs | 17 ++--------------- .../Implementation/TelemetryHostedService.cs | 17 ++--------------- .../OpenTelemetryBuilder.cs | 17 ++--------------- .../OpenTelemetryMetricsBuilderExtensions.cs | 17 ++--------------- .../OpenTelemetryServicesExtensions.cs | 17 ++--------------- .../AssemblyInfo.cs | 18 +++--------------- .../B3Propagator.cs | 17 ++--------------- .../JaegerPropagator.cs | 17 ++--------------- .../OpenTelemetryPropagatorsEventSource.cs | 17 ++--------------- .../AspNetCoreInstrumentation.cs | 18 +++--------------- .../AspNetCoreMetrics.cs | 17 ++--------------- .../AspNetCoreTraceInstrumentationOptions.cs | 17 ++--------------- .../AssemblyInfo.cs | 18 +++--------------- .../AspNetCoreInstrumentationEventSource.cs | 17 ++--------------- .../Implementation/HttpInListener.cs | 17 ++--------------- .../Implementation/HttpInMetricsListener.cs | 17 ++--------------- .../Implementation/HttpTagHelper.cs | 17 ++--------------- .../Implementation/TelemetryHelper.cs | 17 ++--------------- .../MeterProviderBuilderExtensions.cs | 17 ++--------------- .../TracerProviderBuilderExtensions.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../GrpcClientInstrumentation.cs | 18 +++--------------- .../GrpcClientInstrumentationOptions.cs | 17 ++--------------- .../GrpcTagHelper.cs | 17 ++--------------- .../GrpcClientDiagnosticListener.cs | 17 ++--------------- .../GrpcInstrumentationEventSource.cs | 17 ++--------------- .../StatusCanonicalCode.cs | 17 ++--------------- .../TracerProviderBuilderExtensions.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../HttpClientInstrumentation.cs | 18 +++--------------- .../HttpClientMetrics.cs | 17 ++--------------- .../HttpClientTraceInstrumentationOptions.cs | 17 ++--------------- .../HttpRequestMessageContextPropagation.cs | 17 ++--------------- .../HttpHandlerDiagnosticListener.cs | 17 ++--------------- .../HttpHandlerMetricsDiagnosticListener.cs | 17 ++--------------- .../HttpInstrumentationEventSource.cs | 17 ++--------------- .../Implementation/HttpTagHelper.cs | 18 +++--------------- .../HttpWebRequestActivitySource.netfx.cs | 17 ++--------------- .../Implementation/TelemetryHelper.cs | 17 ++--------------- .../MeterProviderBuilderExtensions.cs | 17 ++--------------- .../TracerProviderBuilderExtensions.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../Implementation/SqlActivitySourceHelper.cs | 18 +++--------------- .../SqlClientDiagnosticListener.cs | 18 +++--------------- .../SqlClientInstrumentationEventSource.cs | 17 ++--------------- .../SqlEventSourceListener.netfx.cs | 17 ++--------------- .../SqlClientInstrumentation.cs | 17 ++--------------- .../SqlClientInstrumentationOptions.cs | 17 ++--------------- .../TracerProviderBuilderExtensions.cs | 17 ++--------------- .../Resource/ResourceSemanticConventions.cs | 17 ++--------------- .../Trace/TraceSemanticConventions.cs | 17 ++--------------- .../AssemblyInfo.cs | 17 ++--------------- .../ScopeManagerShim.cs | 17 ++--------------- .../SpanBuilderShim.cs | 17 ++--------------- .../SpanContextShim.cs | 17 ++--------------- .../SpanShim.cs | 17 ++--------------- .../TracerShim.cs | 17 ++--------------- src/OpenTelemetry/AssemblyInfo.cs | 17 ++--------------- src/OpenTelemetry/BaseExportProcessor.cs | 17 ++--------------- src/OpenTelemetry/BaseExporter.cs | 17 ++--------------- src/OpenTelemetry/BaseProcessor.cs | 17 ++--------------- src/OpenTelemetry/Batch.cs | 17 ++--------------- src/OpenTelemetry/BatchExportProcessor.cs | 17 ++--------------- .../BatchExportProcessorOptions.cs | 17 ++--------------- src/OpenTelemetry/CompositeProcessor.cs | 17 ++--------------- ...oviderBuilderServiceCollectionExtensions.cs | 17 ++--------------- src/OpenTelemetry/Internal/CircularBuffer.cs | 17 ++--------------- .../Internal/OpenTelemetrySdkEventSource.cs | 17 ++--------------- src/OpenTelemetry/Internal/SelfDiagnostics.cs | 17 ++--------------- .../Internal/SelfDiagnosticsConfigParser.cs | 17 ++--------------- .../Internal/SelfDiagnosticsConfigRefresher.cs | 17 ++--------------- .../Internal/SelfDiagnosticsEventListener.cs | 17 ++--------------- src/OpenTelemetry/Internal/WildcardHelper.cs | 17 ++--------------- .../BatchExportLogRecordProcessorOptions.cs | 17 ++--------------- .../Logs/BatchLogRecordExportProcessor.cs | 17 ++--------------- .../Logs/Builder/LoggerProviderBuilderBase.cs | 17 ++--------------- .../Builder/LoggerProviderBuilderExtensions.cs | 17 ++--------------- .../Logs/Builder/LoggerProviderBuilderSdk.cs | 17 ++--------------- .../Logs/ILogger/OpenTelemetryLogger.cs | 17 ++--------------- .../Logs/ILogger/OpenTelemetryLoggerOptions.cs | 17 ++--------------- .../ILogger/OpenTelemetryLoggerProvider.cs | 17 ++--------------- .../ILogger/OpenTelemetryLoggingExtensions.cs | 17 ++--------------- src/OpenTelemetry/Logs/LogRecord.cs | 17 ++--------------- .../Logs/LogRecordExportProcessorOptions.cs | 17 ++--------------- src/OpenTelemetry/Logs/LogRecordScope.cs | 17 ++--------------- .../Logs/LoggerProviderExtensions.cs | 17 ++--------------- src/OpenTelemetry/Logs/LoggerProviderSdk.cs | 17 ++--------------- src/OpenTelemetry/Logs/LoggerSdk.cs | 17 ++--------------- src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs | 17 ++--------------- .../Logs/Pool/LogRecordPoolHelper.cs | 17 ++--------------- .../Logs/Pool/LogRecordSharedPool.cs | 17 ++--------------- .../Logs/Pool/LogRecordThreadStaticPool.cs | 17 ++--------------- .../Logs/SimpleLogRecordExportProcessor.cs | 17 ++--------------- .../Metrics/AggregationTemporality.cs | 17 ++--------------- src/OpenTelemetry/Metrics/AggregationType.cs | 17 ++--------------- src/OpenTelemetry/Metrics/AggregatorStore.cs | 17 ++--------------- .../Metrics/Base2ExponentialBucketHistogram.cs | 17 ++--------------- ...2ExponentialBucketHistogramConfiguration.cs | 17 ++--------------- .../Metrics/BaseExportingMetricReader.cs | 17 ++--------------- .../Builder/MeterProviderBuilderBase.cs | 17 ++--------------- .../Builder/MeterProviderBuilderExtensions.cs | 17 ++--------------- .../Metrics/Builder/MeterProviderBuilderSdk.cs | 17 ++--------------- .../Metrics/CircularBufferBuckets.cs | 17 ++--------------- .../Metrics/CompositeMetricReader.cs | 17 ++--------------- .../Metrics/CompositeMetricReaderExt.cs | 17 ++--------------- .../AlignedHistogramBucketExemplarReservoir.cs | 17 ++--------------- .../Exemplar/AlwaysOffExemplarFilter.cs | 17 ++--------------- .../Metrics/Exemplar/AlwaysOnExemplarFilter.cs | 17 ++--------------- src/OpenTelemetry/Metrics/Exemplar/Exemplar.cs | 16 +--------------- .../Metrics/Exemplar/ExemplarFilter.cs | 17 ++--------------- .../Metrics/Exemplar/ExemplarReservoir.cs | 17 ++--------------- .../Exemplar/SimpleExemplarReservoir.cs | 17 ++--------------- .../Exemplar/TraceBasedExemplarFilter.cs | 17 ++--------------- .../ExplicitBucketHistogramConfiguration.cs | 17 ++--------------- .../Metrics/ExponentialHistogramBuckets.cs | 17 ++--------------- .../Metrics/ExponentialHistogramData.cs | 17 ++--------------- src/OpenTelemetry/Metrics/ExportModes.cs | 17 ++--------------- .../Metrics/ExportModesAttribute.cs | 17 ++--------------- src/OpenTelemetry/Metrics/HistogramBucket.cs | 17 ++--------------- src/OpenTelemetry/Metrics/HistogramBuckets.cs | 17 ++--------------- .../Metrics/HistogramConfiguration.cs | 17 ++--------------- .../Metrics/IPullMetricExporter.cs | 17 ++--------------- src/OpenTelemetry/Metrics/LookupData.cs | 17 ++--------------- .../Metrics/MeterProviderExtensions.cs | 17 ++--------------- src/OpenTelemetry/Metrics/MeterProviderSdk.cs | 17 ++--------------- src/OpenTelemetry/Metrics/Metric.cs | 17 ++--------------- src/OpenTelemetry/Metrics/MetricPoint.cs | 17 ++--------------- .../Metrics/MetricPointOptionalComponents.cs | 17 ++--------------- src/OpenTelemetry/Metrics/MetricPointStatus.cs | 17 ++--------------- .../Metrics/MetricPointValueStorage.cs | 17 ++--------------- .../Metrics/MetricPointsAccessor.cs | 17 ++--------------- src/OpenTelemetry/Metrics/MetricReader.cs | 17 ++--------------- src/OpenTelemetry/Metrics/MetricReaderExt.cs | 17 ++--------------- .../Metrics/MetricReaderOptions.cs | 17 ++--------------- .../MetricReaderTemporalityPreference.cs | 17 ++--------------- .../Metrics/MetricStreamConfiguration.cs | 17 ++--------------- .../Metrics/MetricStreamIdentity.cs | 17 ++--------------- src/OpenTelemetry/Metrics/MetricType.cs | 17 ++--------------- .../Metrics/MetricTypeExtensions.cs | 17 ++--------------- .../Metrics/PeriodicExportingMetricReader.cs | 17 ++--------------- .../PeriodicExportingMetricReaderOptions.cs | 17 ++--------------- src/OpenTelemetry/Metrics/PullMetricScope.cs | 17 ++--------------- .../Metrics/StringArrayEqualityComparer.cs | 17 ++--------------- src/OpenTelemetry/Metrics/Tags.cs | 17 ++--------------- .../Metrics/ThreadStaticStorage.cs | 17 ++--------------- src/OpenTelemetry/ProviderExtensions.cs | 17 ++--------------- src/OpenTelemetry/ReadOnlyTagCollection.cs | 17 ++--------------- .../Resources/IResourceDetector.cs | 17 ++--------------- .../Resources/OtelEnvResourceDetector.cs | 17 ++--------------- .../Resources/OtelServiceNameEnvVarDetector.cs | 17 ++--------------- src/OpenTelemetry/Resources/Resource.cs | 17 ++--------------- src/OpenTelemetry/Resources/ResourceBuilder.cs | 17 ++--------------- .../Resources/ResourceBuilderExtensions.cs | 17 ++--------------- src/OpenTelemetry/Sdk.cs | 17 ++--------------- src/OpenTelemetry/SimpleExportProcessor.cs | 17 ++--------------- .../SuppressInstrumentationScope.cs | 17 ++--------------- src/OpenTelemetry/Trace/AlwaysOffSampler.cs | 17 ++--------------- src/OpenTelemetry/Trace/AlwaysOnSampler.cs | 17 ++--------------- .../Trace/BatchActivityExportProcessor.cs | 17 ++--------------- .../BatchExportActivityProcessorOptions.cs | 17 ++--------------- .../Trace/Builder/TracerProviderBuilderBase.cs | 17 ++--------------- .../Builder/TracerProviderBuilderExtensions.cs | 17 ++--------------- .../Trace/Builder/TracerProviderBuilderSdk.cs | 17 ++--------------- src/OpenTelemetry/Trace/ExceptionProcessor.cs | 17 ++--------------- src/OpenTelemetry/Trace/ParentBasedSampler.cs | 17 ++--------------- src/OpenTelemetry/Trace/Sampler.cs | 17 ++--------------- src/OpenTelemetry/Trace/SamplingDecision.cs | 17 ++--------------- src/OpenTelemetry/Trace/SamplingParameters.cs | 17 ++--------------- src/OpenTelemetry/Trace/SamplingResult.cs | 17 ++--------------- .../Trace/SimpleActivityExportProcessor.cs | 17 ++--------------- .../Trace/TraceIdRatioBasedSampler.cs | 17 ++--------------- .../Trace/TracerProviderExtensions.cs | 17 ++--------------- src/OpenTelemetry/Trace/TracerProviderSdk.cs | 17 ++--------------- src/Shared/ActivityHelperExtensions.cs | 17 ++--------------- src/Shared/ActivityInstrumentationHelper.cs | 17 ++--------------- .../DiagnosticSourceListener.cs | 17 ++--------------- .../DiagnosticSourceSubscriber.cs | 17 ++--------------- .../ListenerHandler.cs | 18 +++--------------- .../PropertyFetcher.cs | 17 ++--------------- src/Shared/ExceptionExtensions.cs | 17 ++--------------- src/Shared/Guard.cs | 17 ++--------------- src/Shared/HttpSemanticConventionHelper.cs | 17 ++--------------- src/Shared/MathHelper.cs | 17 ++--------------- .../Base2ExponentialBucketHistogramHelper.cs | 17 ++--------------- src/Shared/Options/ConfigurationExtensions.cs | 17 ++--------------- src/Shared/PeerServiceResolver.cs | 17 ++--------------- .../PeriodicExportingMetricReaderHelper.cs | 17 ++--------------- src/Shared/PooledList.cs | 17 ++--------------- src/Shared/RequestMethodHelper.cs | 17 ++--------------- src/Shared/ResourceSemanticConventions.cs | 17 ++--------------- src/Shared/SemanticConventions.cs | 17 ++--------------- src/Shared/Shims/IsExternalInit.cs | 17 ++--------------- src/Shared/Shims/NullableAttributes.cs | 17 ++--------------- src/Shared/SpanAttributeConstants.cs | 17 ++--------------- src/Shared/SpanHelper.cs | 17 ++--------------- src/Shared/StatusHelper.cs | 17 ++--------------- src/Shared/TagAndValueTransformer.cs | 17 ++--------------- src/Shared/TagTransformer.cs | 17 ++--------------- src/Shared/TagTransformerJsonHelper.cs | 17 ++--------------- test/Benchmarks/EventSourceBenchmarks.cs | 17 ++--------------- .../Exporter/OtlpGrpcExporterBenchmarks.cs | 17 ++--------------- .../Exporter/OtlpHttpExporterBenchmarks.cs | 17 ++--------------- .../Exporter/OtlpLogExporterBenchmarks.cs | 17 ++--------------- .../Exporter/OtlpTraceExporterBenchmarks.cs | 17 ++--------------- .../Exporter/PrometheusSerializerBenchmarks.cs | 17 ++--------------- .../Exporter/ZipkinExporterBenchmarks.cs | 17 ++--------------- .../Helper/ActivityCreationScenarios.cs | 17 ++--------------- test/Benchmarks/Helper/ActivityHelper.cs | 17 ++--------------- test/Benchmarks/Helper/LogRecordHelper.cs | 17 ++--------------- .../Benchmarks/Helper/SpanCreationScenarios.cs | 17 ++--------------- test/Benchmarks/Helper/TestExporter.cs | 17 ++--------------- .../AspNetCoreInstrumentationBenchmarks.cs | 17 ++--------------- .../AspNetCoreInstrumentationNewBenchmarks.cs | 17 ++--------------- .../HttpClientInstrumentationBenchmarks.cs | 17 ++--------------- test/Benchmarks/Logs/Food.cs | 17 ++--------------- test/Benchmarks/Logs/LogBenchmarks.cs | 17 ++--------------- test/Benchmarks/Logs/LogScopeBenchmarks.cs | 17 ++--------------- .../Base2ExponentialHistogramBenchmarks.cs | 17 ++--------------- ...ExponentialHistogramMapToIndexBenchmarks.cs | 17 ++--------------- ...Base2ExponentialHistogramScaleBenchmarks.cs | 17 ++--------------- test/Benchmarks/Metrics/ExemplarBenchmarks.cs | 17 ++--------------- test/Benchmarks/Metrics/HistogramBenchmarks.cs | 17 ++--------------- .../Metrics/MetricCollectBenchmarks.cs | 17 ++--------------- test/Benchmarks/Metrics/MetricsBenchmarks.cs | 17 ++--------------- .../Metrics/MetricsViewBenchmarks.cs | 17 ++--------------- test/Benchmarks/Program.cs | 17 ++--------------- .../SuppressInstrumentationScopeBenchmarks.cs | 17 ++--------------- test/Benchmarks/TestTraceServiceClient.cs | 17 ++--------------- .../Trace/ActivityCreationBenchmarks.cs | 17 ++--------------- test/Benchmarks/Trace/SamplerBenchmarks.cs | 17 ++--------------- .../Benchmarks/Trace/SpanCreationBenchmarks.cs | 17 ++--------------- test/Benchmarks/Trace/TraceBenchmarks.cs | 17 ++--------------- test/Benchmarks/Trace/TraceShimBenchmarks.cs | 17 ++--------------- .../Program.cs | 17 ++--------------- .../PropertyFetcherAotTest.cs | 17 ++--------------- .../LoggerProviderBuilderExtensionsTests.cs | 17 ++--------------- .../Logs/TestLoggerProviderBuilder.cs | 17 ++--------------- .../MeterProviderBuilderExtensionsTests.cs | 17 ++--------------- .../Metrics/TestMeterProviderBuilder.cs | 17 ++--------------- .../ServiceCollectionExtensionsTests.cs | 17 ++--------------- .../Trace/TestTracerProviderBuilder.cs | 17 ++--------------- .../TracerProviderBuilderExtensionsTests.cs | 17 ++--------------- test/OpenTelemetry.Api.Tests/BaggageTests.cs | 17 ++--------------- .../Context/Propagation/PropagatorsTest.cs | 17 ++--------------- .../Context/RuntimeContextTest.cs | 17 ++--------------- .../OpenTelemetry.Api.Tests/EventSourceTest.cs | 17 ++--------------- .../Internal/GuardTest.cs | 17 ++--------------- .../Logs/LogRecordAttributeListTests.cs | 17 ++--------------- .../Logs/LogRecordDataTests.cs | 17 ++--------------- .../Logs/LogRecordSeverityExtensionsTests.cs | 17 ++--------------- .../Logs/LoggerProviderTests.cs | 17 ++--------------- .../Trace/ActivityExtensionsTest.cs | 17 ++--------------- .../Trace/Propagation/B3PropagatorTest.cs | 18 +++--------------- .../Trace/Propagation/BaggagePropagatorTest.cs | 17 ++--------------- .../Propagation/CompositePropagatorTest.cs | 17 ++--------------- .../Trace/Propagation/TestPropagator.cs | 17 ++--------------- .../Trace/Propagation/TracestateUtilsTests.cs | 17 ++--------------- .../Trace/SpanAttributesTest.cs | 17 ++--------------- .../Trace/StatusTest.cs | 17 ++--------------- .../Trace/TelemetrySpanTest.cs | 17 ++--------------- .../Trace/TracerTest.cs | 17 ++--------------- .../ConsoleActivityExporterTest.cs | 17 ++--------------- .../BaseOtlpHttpExportClientTests.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- .../ExporterClientValidationTests.cs | 17 ++--------------- .../Http2UnencryptedSupportTests.cs | 17 ++--------------- .../OtlpHttpTraceExportClientTests.cs | 17 ++--------------- .../IntegrationTest/IntegrationTests.cs | 17 ++--------------- .../MockCollectorIntegrationTests.cs | 17 ++--------------- .../OtlpAttributeTests.cs | 17 ++--------------- .../OtlpExportProtocolParserTests.cs | 17 ++--------------- .../OtlpExporterOptionsExtensionsTests.cs | 17 ++--------------- .../OtlpExporterOptionsTests.cs | 17 ++--------------- .../OtlpLogExporterTests.cs | 17 ++--------------- .../OtlpMetricsExporterTests.cs | 17 ++--------------- .../OtlpResourceTests.cs | 17 ++--------------- .../OtlpRetryTests.cs | 17 ++--------------- .../OtlpTestHelpers.cs | 17 ++--------------- .../OtlpTraceExporterTests.cs | 17 ++--------------- .../SdkLimitOptionsTests.cs | 17 ++--------------- .../TestExportClient.cs | 17 ++--------------- .../TestHttpMessageHandler.cs | 17 ++--------------- ...orterMeterProviderBuilderExtensionsTests.cs | 17 ++--------------- .../PrometheusExporterMiddlewareTests.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- .../PrometheusCollectionManagerTests.cs | 17 ++--------------- .../PrometheusHeadersParserTests.cs | 17 ++--------------- ...tenerMeterProviderBuilderExtensionsTests.cs | 17 ++--------------- .../PrometheusHttpListenerTests.cs | 17 ++--------------- .../PrometheusMetricTests.cs | 17 ++--------------- .../PrometheusSerializerTests.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- .../ZipkinActivityConversionExtensionsTest.cs | 17 ++--------------- .../ZipkinActivityConversionTest.cs | 17 ++--------------- ...ipkinActivityExporterRemoteEndpointTests.cs | 17 ++--------------- .../ZipkinExporterTests.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- .../InMemoryExporterMetricsExtensionsTests.cs | 17 ++--------------- .../OpenTelemetryBuilderTests.cs | 17 ++--------------- ...enTelemetryMetricsBuilderExtensionsTests.cs | 17 ++--------------- .../OpenTelemetryServicesExtensionsTests.cs | 17 ++--------------- .../B3PropagatorTest.cs | 18 +++--------------- .../EventSourceTest.cs | 17 ++--------------- .../JaegerPropagatorTest.cs | 18 +++--------------- .../AttributesExtensions.cs | 17 ++--------------- .../BasicTests.cs | 17 ++--------------- .../DependencyInjectionConfigTests.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- ...estsCollectionsIsAccordingToTheSpecTests.cs | 17 ++--------------- .../MetricTests.cs | 17 ++--------------- .../RouteTests/RoutingTestCases.cs | 17 ++--------------- .../RouteTests/RoutingTestFixture.cs | 17 ++--------------- .../RouteTests/RoutingTestResult.cs | 17 ++--------------- .../RouteTests/RoutingTests.cs | 17 ++--------------- .../Controllers/AnotherAreaController.cs | 17 ++--------------- .../ControllerForMyAreaController.cs | 17 ++--------------- .../Controllers/AttributeRouteController.cs | 17 ++--------------- .../Controllers/ConventionalRouteController.cs | 17 ++--------------- .../RouteTests/TestApplication/RouteInfo.cs | 17 ++--------------- .../RouteInfoDiagnosticObserver.cs | 17 ++--------------- .../TestApplication/TestApplicationFactory.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- .../GrpcServer.cs | 17 ++--------------- .../GrpcTagHelperTests.cs | 18 +++--------------- .../GrpcTestHelpers/ClientTestHelpers.cs | 17 ++--------------- .../GrpcTestHelpers/ResponseUtils.cs | 17 ++--------------- .../GrpcTestHelpers/TestHttpMessageHandler.cs | 17 ++--------------- .../GrpcTestHelpers/TrailingHeadersHelpers.cs | 17 ++--------------- .../GrpcTests.client.cs | 17 ++--------------- .../GrpcTests.server.cs | 17 ++--------------- .../Services/GreeterService.cs | 18 +++--------------- .../EventSourceTest.cs | 17 ++--------------- .../HttpClientTests.Basic.cs | 17 ++--------------- .../HttpClientTests.cs | 17 ++--------------- .../HttpTestData.cs | 17 ++--------------- .../HttpWebRequestActivitySourceTests.netfx.cs | 17 ++--------------- .../HttpWebRequestTests.Basic.cs | 17 ++--------------- .../HttpWebRequestTests.cs | 17 ++--------------- .../RetryHandler.cs | 17 ++--------------- .../EventSourceTest.cs | 17 ++--------------- .../SqlClientInstrumentationOptionsTests.cs | 17 ++--------------- .../SqlClientIntegrationTests.cs | 17 ++--------------- .../SqlClientTests.cs | 17 ++--------------- .../SqlEventSourceTests.netfx.cs | 17 ++--------------- .../W3CTraceContextTests.cs | 17 ++--------------- .../IntegrationTests.cs | 17 ++--------------- .../ListenAndSampleAllActivitySources.cs | 17 ++--------------- .../ScopeManagerShimTests.cs | 17 ++--------------- .../SpanBuilderShimTests.cs | 17 ++--------------- .../SpanContextShimTests.cs | 17 ++--------------- .../SpanShimTests.cs | 17 ++--------------- .../TestFormatTextMap.cs | 17 ++--------------- .../TestSpan.cs | 17 ++--------------- .../TestSpanContext.cs | 17 ++--------------- .../TestTextMap.cs | 17 ++--------------- .../TracerShimTests.cs | 17 ++--------------- .../DummyProcessor.cs | 17 ++--------------- .../OpenTelemetry.Tests.Stress.Logs/Payload.cs | 17 ++--------------- .../OpenTelemetry.Tests.Stress.Logs/Program.cs | 17 ++--------------- .../Program.cs | 17 ++--------------- .../Program.cs | 17 ++--------------- test/OpenTelemetry.Tests.Stress/Meat.cs | 17 ++--------------- test/OpenTelemetry.Tests.Stress/Skeleton.cs | 17 ++--------------- test/OpenTelemetry.Tests/BaseExporterTest.cs | 17 ++--------------- test/OpenTelemetry.Tests/BaseProcessorTest.cs | 17 ++--------------- .../Concurrency/MetricsConcurrencyTests.cs | 17 ++--------------- test/OpenTelemetry.Tests/EventSourceTest.cs | 17 ++--------------- .../ActivityInstrumentationHelperTest.cs | 17 ++--------------- .../Instrumentation/PropertyFetcherTest.cs | 17 ++--------------- .../Internal/CircularBufferTest.cs | 17 ++--------------- .../Internal/MathHelperTest.cs | 17 ++--------------- ...PeriodicExportingMetricReaderHelperTests.cs | 17 ++--------------- .../Internal/PooledListTest.cs | 17 ++--------------- .../SelfDiagnosticsConfigParserTest.cs | 17 ++--------------- .../SelfDiagnosticsConfigRefresherTest.cs | 17 ++--------------- .../SelfDiagnosticsEventListenerTest.cs | 17 ++--------------- .../Internal/WildcardHelperTests.cs | 17 ++--------------- ...BatchExportLogRecordProcessorOptionsTest.cs | 17 ++--------------- .../Logs/BatchLogRecordExportProcessorTests.cs | 17 ++--------------- .../Logs/LogRecordSharedPoolTests.cs | 17 ++--------------- test/OpenTelemetry.Tests/Logs/LogRecordTest.cs | 17 ++--------------- .../Logs/LogRecordThreadStaticPoolTests.cs | 17 ++--------------- .../LoggerFactoryAndResourceBuilderTests.cs | 17 ++--------------- .../LoggerProviderBuilderExtensionsTests.cs | 17 ++--------------- .../Logs/LoggerProviderExtensionsTests.cs | 17 ++--------------- .../Logs/LoggerProviderSdkTests.cs | 17 ++--------------- .../Logs/OpenTelemetryLoggerProviderTests.cs | 17 ++--------------- .../OpenTelemetryLoggingExtensionsTests.cs | 17 ++--------------- .../Metrics/AggregatorTestsBase.cs | 17 ++--------------- ...se2ExponentialBucketHistogramHelperTests.cs | 17 ++--------------- .../Base2ExponentialBucketHistogramTest.cs | 17 ++--------------- .../Metrics/CircularBufferBucketsTest.cs | 17 ++--------------- .../Metrics/InMemoryExporterTests.cs | 17 ++--------------- .../Metrics/KnownHistogramBuckets.cs | 17 ++--------------- .../Metrics/MemoryEfficiencyTests.cs | 17 ++--------------- .../MeterProviderBuilderExtensionsTests.cs | 17 ++--------------- .../Metrics/MeterProviderSdkTest.cs | 17 ++--------------- .../Metrics/MeterProviderTests.cs | 17 ++--------------- .../Metrics/MetricApiTestsBase.cs | 17 ++--------------- .../Metrics/MetricExemplarTests.cs | 17 ++--------------- .../Metrics/MetricExporterTests.cs | 17 ++--------------- .../MetricOverflowAttributeTestsBase.cs | 17 ++--------------- .../Metrics/MetricPointReclaimTestsBase.cs | 17 ++--------------- .../Metrics/MetricPointTests.cs | 17 ++--------------- .../Metrics/MetricSnapshotTestsBase.cs | 17 ++--------------- .../Metrics/MetricTestData.cs | 17 ++--------------- .../Metrics/MetricTestsBase.cs | 17 ++--------------- .../Metrics/MetricViewTests.cs | 17 ++--------------- .../Metrics/MultipleReadersTests.cs | 17 ++--------------- .../Resources/OtelEnvResourceDetectorTest.cs | 17 ++--------------- .../OtelServiceNameEnvVarDetectorTests.cs | 17 ++--------------- .../Resources/ResourceBuilderTests.cs | 17 ++--------------- .../Resources/ResourceTest.cs | 17 ++--------------- test/OpenTelemetry.Tests/SdkTests.cs | 17 ++--------------- .../Shared/CustomTextMapPropagator.cs | 17 ++--------------- .../Shared/DelegatingExporter.cs | 17 ++--------------- .../Shared/DelegatingProcessor.cs | 17 ++--------------- .../EnabledOnDockerPlatformTheoryAttribute.cs | 17 ++--------------- .../Shared/EventSourceTestHelper.cs | 17 ++--------------- .../Shared/HttpSemanticConventionHelperTest.cs | 17 ++--------------- .../Shared/IEEE754Double.cs | 17 ++--------------- .../Shared/InMemoryEventListener.cs | 17 ++--------------- test/OpenTelemetry.Tests/Shared/MathHelper.cs | 17 ++--------------- .../Shared/RecordOnlySampler.cs | 17 ++--------------- .../SkipUnlessEnvVarFoundFactAttribute.cs | 17 ++--------------- .../SkipUnlessEnvVarFoundTheoryAttribute.cs | 18 +++--------------- .../Shared/TagTransformerJsonHelperTest.cs | 17 ++--------------- .../Shared/TestActivityExportProcessor.cs | 17 ++--------------- .../Shared/TestActivityProcessor.cs | 17 ++--------------- .../Shared/TestEventListener.cs | 17 ++--------------- .../Shared/TestHttpServer.cs | 18 +++--------------- test/OpenTelemetry.Tests/Shared/TestSampler.cs | 17 ++--------------- test/OpenTelemetry.Tests/Shared/Utils.cs | 17 ++--------------- .../SimpleExportProcessorTest.cs | 17 ++--------------- .../SuppressInstrumentationTest.cs | 17 ++--------------- .../TestSelfDiagnosticsConfigRefresher.cs | 17 ++--------------- .../Trace/AttributesExtensions.cs | 17 ++--------------- .../BatchExportActivityProcessorOptionsTest.cs | 17 ++--------------- .../Trace/BatchExportActivityProcessorTest.cs | 17 ++--------------- test/OpenTelemetry.Tests/Trace/BatchTest.cs | 17 ++--------------- .../Trace/CompositeActivityProcessorTests.cs | 17 ++--------------- .../Trace/CurrentSpanTests.cs | 17 ++--------------- .../Trace/ExceptionProcessorTest.cs | 17 ++--------------- .../Trace/ExportProcessorTest.cs | 17 ++--------------- test/OpenTelemetry.Tests/Trace/LinkTest.cs | 18 +++--------------- .../Trace/ParentBasedSamplerTests.cs | 17 ++--------------- .../Propagation/TraceContextPropagatorTest.cs | 18 +++--------------- test/OpenTelemetry.Tests/Trace/SamplersTest.cs | 18 +++--------------- .../Trace/SamplingResultTest.cs | 18 +++--------------- .../Trace/SimpleExportActivityProcessorTest.cs | 17 ++--------------- .../Trace/SpanContextTest.cs | 17 ++--------------- .../Trace/TraceIdRatioBasedSamplerTest.cs | 18 +++--------------- .../Trace/TracerProviderBuilderBaseTests.cs | 17 ++--------------- .../TracerProviderBuilderExtensionsTest.cs | 17 ++--------------- .../Trace/TracerProviderExtensionsTest.cs | 17 ++--------------- .../Trace/TracerProviderSdkTest.cs | 17 ++--------------- test/TestApp.AspNetCore/ActivityMiddleware.cs | 17 ++--------------- test/TestApp.AspNetCore/CallbackMiddleware.cs | 17 ++--------------- .../Controllers/ChildActivityController.cs | 17 ++--------------- .../Controllers/ErrorController.cs | 18 +++--------------- .../Controllers/ValuesController.cs | 18 +++--------------- .../Filters/ExceptionFilter1.cs | 17 ++--------------- .../Filters/ExceptionFilter2.cs | 17 ++--------------- test/TestApp.AspNetCore/Program.cs | 17 ++--------------- 679 files changed, 1383 insertions(+), 10173 deletions(-) diff --git a/build/stylecop.json b/build/stylecop.json index 064a1ef5a76..c3fd1a04c3c 100644 --- a/build/stylecop.json +++ b/build/stylecop.json @@ -1,9 +1,9 @@ -{ +{ "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", "settings": { "documentationRules": { - "companyName": "OpenTelemetry Authors", - "copyrightText": "Copyright The OpenTelemetry Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License." + "copyrightText": "Copyright The OpenTelemetry Authors\nSPDX-License-Identifier: Apache-2.0", + "xmlHeader": false }, "orderingRules": { "usingDirectivesPlacement": "outsideNamespace" diff --git a/docs/logs/correlation/Program.cs b/docs/logs/correlation/Program.cs index 722e66347e6..f5418ce17ed 100644 --- a/docs/logs/correlation/Program.cs +++ b/docs/logs/correlation/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Logging; @@ -56,4 +43,4 @@ public static void Main() logger.LogInformation("Hello from {name} {price}.", "tomato", 2.99); } } -} +} \ No newline at end of file diff --git a/docs/logs/customizing-the-sdk/Program.cs b/docs/logs/customizing-the-sdk/Program.cs index 549737954c9..a5a89d17c9f 100644 --- a/docs/logs/customizing-the-sdk/Program.cs +++ b/docs/logs/customizing-the-sdk/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry.Logs; @@ -51,4 +38,4 @@ public static void Main() logger.LogInformation("Hello from {food} {price}.", "tomato", 2.99); } } -} +} \ No newline at end of file diff --git a/docs/logs/extending-the-sdk/LoggerExtensions.cs b/docs/logs/extending-the-sdk/LoggerExtensions.cs index 5b9f87eb3a9..971e77d4957 100644 --- a/docs/logs/extending-the-sdk/LoggerExtensions.cs +++ b/docs/logs/extending-the-sdk/LoggerExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Logs; @@ -28,4 +15,4 @@ public static OpenTelemetryLoggerOptions AddMyExporter(this OpenTelemetryLoggerO return options.AddProcessor(new BatchLogRecordExportProcessor(new MyExporter())); } -} +} \ No newline at end of file diff --git a/docs/logs/extending-the-sdk/MyExporter.cs b/docs/logs/extending-the-sdk/MyExporter.cs index d2552616e62..3226db3dd30 100644 --- a/docs/logs/extending-the-sdk/MyExporter.cs +++ b/docs/logs/extending-the-sdk/MyExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Text; using OpenTelemetry; @@ -74,4 +61,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} +} \ No newline at end of file diff --git a/docs/logs/extending-the-sdk/MyProcessor.cs b/docs/logs/extending-the-sdk/MyProcessor.cs index 4c0c54ec173..8b37549fa2b 100644 --- a/docs/logs/extending-the-sdk/MyProcessor.cs +++ b/docs/logs/extending-the-sdk/MyProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Logs; @@ -47,4 +34,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} +} \ No newline at end of file diff --git a/docs/logs/extending-the-sdk/Program.cs b/docs/logs/extending-the-sdk/Program.cs index 5fea2ce69d4..690d1f299d3 100644 --- a/docs/logs/extending-the-sdk/Program.cs +++ b/docs/logs/extending-the-sdk/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry; @@ -74,4 +61,4 @@ internal struct Food public double Price { get; set; } } -} +} \ No newline at end of file diff --git a/docs/logs/getting-started-aspnetcore/Program.cs b/docs/logs/getting-started-aspnetcore/Program.cs index f1e301c616c..b7aa7683f5a 100644 --- a/docs/logs/getting-started-aspnetcore/Program.cs +++ b/docs/logs/getting-started-aspnetcore/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Logs; using OpenTelemetry.Resources; @@ -61,4 +48,4 @@ public static partial class ApplicationLogs [LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")] public static partial void FoodPriceChanged(this ILogger logger, string name, double price); -} +} \ No newline at end of file diff --git a/docs/logs/getting-started-console/Program.cs b/docs/logs/getting-started-console/Program.cs index 9d0ef0e653e..97a049106c5 100644 --- a/docs/logs/getting-started-console/Program.cs +++ b/docs/logs/getting-started-console/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry.Logs; @@ -53,4 +40,4 @@ public static partial void FoodRecallNotice( string productType, string recallReasonDescription, string companyName); -} +} \ No newline at end of file diff --git a/docs/logs/redaction/MyRedactionProcessor.cs b/docs/logs/redaction/MyRedactionProcessor.cs index 046c5347ad5..8bbbde130aa 100644 --- a/docs/logs/redaction/MyRedactionProcessor.cs +++ b/docs/logs/redaction/MyRedactionProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using OpenTelemetry; @@ -67,4 +54,4 @@ IEnumerator IEnumerable.GetEnumerator() return this.GetEnumerator(); } } -} +} \ No newline at end of file diff --git a/docs/logs/redaction/Program.cs b/docs/logs/redaction/Program.cs index 3b75b689c6f..c0796cdb545 100644 --- a/docs/logs/redaction/Program.cs +++ b/docs/logs/redaction/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry.Logs; @@ -39,4 +26,4 @@ public static partial class ApplicationLogs { [LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")] public static partial void FoodPriceChanged(this ILogger logger, string name, double price); -} +} \ No newline at end of file diff --git a/docs/metrics/customizing-the-sdk/Program.cs b/docs/metrics/customizing-the-sdk/Program.cs index c8b08c3cc5b..f685b07e5b8 100644 --- a/docs/metrics/customizing-the-sdk/Program.cs +++ b/docs/metrics/customizing-the-sdk/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry; @@ -108,4 +95,4 @@ public static void Main() histogram2.Record(random.Next(1, 1000), new("tag1", "value1"), new("tag2", "value2")); } } -} +} \ No newline at end of file diff --git a/docs/metrics/extending-the-sdk/MyExporter.cs b/docs/metrics/extending-the-sdk/MyExporter.cs index 36cb6cc4663..bc028dee8aa 100644 --- a/docs/metrics/extending-the-sdk/MyExporter.cs +++ b/docs/metrics/extending-the-sdk/MyExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Text; using OpenTelemetry; @@ -67,4 +54,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} +} \ No newline at end of file diff --git a/docs/metrics/extending-the-sdk/MyExporterExtensions.cs b/docs/metrics/extending-the-sdk/MyExporterExtensions.cs index bc1ea34eae0..19a270ffe0d 100644 --- a/docs/metrics/extending-the-sdk/MyExporterExtensions.cs +++ b/docs/metrics/extending-the-sdk/MyExporterExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Metrics; @@ -36,4 +23,4 @@ public static MeterProviderBuilder AddMyExporter(this MeterProviderBuilder build return builder.AddReader(new PeriodicExportingMetricReader(new MyExporter(), exportIntervalMilliSeconds)); } } -} +} \ No newline at end of file diff --git a/docs/metrics/extending-the-sdk/Program.cs b/docs/metrics/extending-the-sdk/Program.cs index 469a9aff087..d2356e49008 100644 --- a/docs/metrics/extending-the-sdk/Program.cs +++ b/docs/metrics/extending-the-sdk/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -53,4 +40,4 @@ public static void Main() MyFruitCounter.Add(5, new("name", "apple"), new("color", "red")); MyFruitCounter.Add(4, new("name", "lemon"), new("color", "yellow")); } -} +} \ No newline at end of file diff --git a/docs/metrics/getting-started-aspnetcore/Program.cs b/docs/metrics/getting-started-aspnetcore/Program.cs index 98c7e98b343..b66dab60b28 100644 --- a/docs/metrics/getting-started-aspnetcore/Program.cs +++ b/docs/metrics/getting-started-aspnetcore/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Metrics; using OpenTelemetry.Resources; @@ -34,4 +21,4 @@ app.MapGet("/", () => $"Hello from OpenTelemetry Metrics!"); -app.Run(); +app.Run(); \ No newline at end of file diff --git a/docs/metrics/getting-started-console/Program.cs b/docs/metrics/getting-started-console/Program.cs index 1be50b86230..ece0cb1b99d 100644 --- a/docs/metrics/getting-started-console/Program.cs +++ b/docs/metrics/getting-started-console/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry; @@ -41,4 +28,4 @@ public static void Main() // This will flush the remaining metrics and shutdown the metrics pipeline. meterProvider.Dispose(); } -} +} \ No newline at end of file diff --git a/docs/metrics/getting-started-prometheus-grafana/Program.cs b/docs/metrics/getting-started-prometheus-grafana/Program.cs index 640dc8bfb85..1693202ef58 100644 --- a/docs/metrics/getting-started-prometheus-grafana/Program.cs +++ b/docs/metrics/getting-started-prometheus-grafana/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry; @@ -54,4 +41,4 @@ public static void Main() // This will flush the remaining metrics and shutdown the metrics pipeline. meterProvider.Dispose(); } -} +} \ No newline at end of file diff --git a/docs/metrics/learning-more-instruments/Program.cs b/docs/metrics/learning-more-instruments/Program.cs index 40b36c11500..655cc0a8711 100644 --- a/docs/metrics/learning-more-instruments/Program.cs +++ b/docs/metrics/learning-more-instruments/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -64,4 +51,4 @@ private static IEnumerable> GetThreadState(Process process) yield return new((int)thread.ThreadState, new("ProcessId", process.Id), new("ThreadId", thread.Id)); } } -} +} \ No newline at end of file diff --git a/docs/trace/customizing-the-sdk/Program.cs b/docs/trace/customizing-the-sdk/Program.cs index 20f0f9df73e..6f5f8879882 100644 --- a/docs/trace/customizing-the-sdk/Program.cs +++ b/docs/trace/customizing-the-sdk/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -82,4 +69,4 @@ public static void Main() tracerProvider.Dispose(); } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs b/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs index 4565852c1b1..0a1a17afaa7 100644 --- a/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs +++ b/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -38,4 +25,4 @@ public override void OnEnd(Activity activity) activity.SetTag("device.type", deviceTypeFromBaggage); } } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MyExporter.cs b/docs/trace/extending-the-sdk/MyExporter.cs index 3bdefc0d339..856f26298ed 100644 --- a/docs/trace/extending-the-sdk/MyExporter.cs +++ b/docs/trace/extending-the-sdk/MyExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -58,4 +45,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MyExporterExtensions.cs b/docs/trace/extending-the-sdk/MyExporterExtensions.cs index d4d9c8072e2..c4e8ca99234 100644 --- a/docs/trace/extending-the-sdk/MyExporterExtensions.cs +++ b/docs/trace/extending-the-sdk/MyExporterExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Trace; @@ -28,4 +15,4 @@ public static TracerProviderBuilder AddMyExporter(this TracerProviderBuilder bui return builder.AddProcessor(new BatchActivityExportProcessor(new MyExporter())); } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MyFilteringProcessor.cs b/docs/trace/extending-the-sdk/MyFilteringProcessor.cs index 37571b3fd7a..4bac385f26b 100644 --- a/docs/trace/extending-the-sdk/MyFilteringProcessor.cs +++ b/docs/trace/extending-the-sdk/MyFilteringProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -44,4 +31,4 @@ public override void OnEnd(Activity activity) activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded; } } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MyProcessor.cs b/docs/trace/extending-the-sdk/MyProcessor.cs index 8b42d1f4016..9f03f99b472 100644 --- a/docs/trace/extending-the-sdk/MyProcessor.cs +++ b/docs/trace/extending-the-sdk/MyProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -52,4 +39,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MyResourceDetector.cs b/docs/trace/extending-the-sdk/MyResourceDetector.cs index 1d7d4ae7b9c..dd8156d4e06 100644 --- a/docs/trace/extending-the-sdk/MyResourceDetector.cs +++ b/docs/trace/extending-the-sdk/MyResourceDetector.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Resources; @@ -27,4 +14,4 @@ public Resource Detect() return new Resource(attributes); } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/MySampler.cs b/docs/trace/extending-the-sdk/MySampler.cs index a39f0e664b3..7b008d8122a 100644 --- a/docs/trace/extending-the-sdk/MySampler.cs +++ b/docs/trace/extending-the-sdk/MySampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; @@ -23,4 +10,4 @@ public override SamplingResult ShouldSample(in SamplingParameters param) Console.WriteLine($"MySampler.ShouldSample({param.Name})"); return new SamplingResult(SamplingDecision.RecordAndSample); } -} +} \ No newline at end of file diff --git a/docs/trace/extending-the-sdk/Program.cs b/docs/trace/extending-the-sdk/Program.cs index 382a5be6c85..35009277d6f 100644 --- a/docs/trace/extending-the-sdk/Program.cs +++ b/docs/trace/extending-the-sdk/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -47,4 +34,4 @@ public static void Main() } } } -} +} \ No newline at end of file diff --git a/docs/trace/getting-started-aspnetcore/Program.cs b/docs/trace/getting-started-aspnetcore/Program.cs index 178057b991a..ef3e8a27367 100644 --- a/docs/trace/getting-started-aspnetcore/Program.cs +++ b/docs/trace/getting-started-aspnetcore/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Resources; @@ -32,4 +19,4 @@ app.MapGet("/", () => $"Hello World! OpenTelemetry Trace: {Activity.Current?.Id}"); -app.Run(); +app.Run(); \ No newline at end of file diff --git a/docs/trace/getting-started-console/Program.cs b/docs/trace/getting-started-console/Program.cs index 1d25438133e..5f86493e9d2 100644 --- a/docs/trace/getting-started-console/Program.cs +++ b/docs/trace/getting-started-console/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -41,4 +28,4 @@ public static void Main() // This will flush the remaining spans and shutdown the tracing pipeline. tracerProvider.Dispose(); } -} +} \ No newline at end of file diff --git a/docs/trace/getting-started-jaeger/Program.cs b/docs/trace/getting-started-jaeger/Program.cs index d6c5cded32b..6d01898b32e 100644 --- a/docs/trace/getting-started-jaeger/Program.cs +++ b/docs/trace/getting-started-jaeger/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NETFRAMEWORK @@ -56,4 +43,4 @@ public static async Task Main() } } } -} +} \ No newline at end of file diff --git a/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs b/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs index 2ea3ec78239..dd62898350a 100644 --- a/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs +++ b/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; @@ -50,4 +37,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return this.linksBasedSampler.ShouldSample(samplingParameters); } -} +} \ No newline at end of file diff --git a/docs/trace/links-based-sampler/LinksBasedSampler.cs b/docs/trace/links-based-sampler/LinksBasedSampler.cs index 7d6342c756a..84e735d2df8 100644 --- a/docs/trace/links-based-sampler/LinksBasedSampler.cs +++ b/docs/trace/links-based-sampler/LinksBasedSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Trace; @@ -46,4 +33,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame Console.WriteLine($"{samplingParameters.TraceId}: No linked span is sampled. Hence, LinksBasedSampler decision is Drop."); return new SamplingResult(SamplingDecision.Drop); } -} +} \ No newline at end of file diff --git a/docs/trace/links-based-sampler/Program.cs b/docs/trace/links-based-sampler/Program.cs index 85ae36acac2..6a5e8bf99eb 100644 --- a/docs/trace/links-based-sampler/Program.cs +++ b/docs/trace/links-based-sampler/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -65,4 +52,4 @@ private static IEnumerable GetActivityLinks(int seed) return linkedActivitiesList; } -} +} \ No newline at end of file diff --git a/docs/trace/links-creation-with-new-activities/Program.cs b/docs/trace/links-creation-with-new-activities/Program.cs index 633525a4bac..6447d5b2b32 100644 --- a/docs/trace/links-creation-with-new-activities/Program.cs +++ b/docs/trace/links-creation-with-new-activities/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -96,4 +83,4 @@ public static async Task DoFanoutAsync() // This will ensure that the rest of the code executes in the context of the original activity. Activity.Current = previous; } -} +} \ No newline at end of file diff --git a/docs/trace/reporting-exceptions/Program.cs b/docs/trace/reporting-exceptions/Program.cs index 4ffd8a4cfd9..8381126c74d 100644 --- a/docs/trace/reporting-exceptions/Program.cs +++ b/docs/trace/reporting-exceptions/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -49,4 +36,4 @@ public static void Main() // swallow the exception } } -} +} \ No newline at end of file diff --git a/docs/trace/stratified-sampling-example/Program.cs b/docs/trace/stratified-sampling-example/Program.cs index e85179126e7..3e607ee25ae 100644 --- a/docs/trace/stratified-sampling-example/Program.cs +++ b/docs/trace/stratified-sampling-example/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -69,4 +56,4 @@ public static void Main(string[] args) tagsList.Clear(); } } -} +} \ No newline at end of file diff --git a/docs/trace/stratified-sampling-example/StratifiedSampler.cs b/docs/trace/stratified-sampling-example/StratifiedSampler.cs index 16ca4b437ce..4f6d9fb7486 100644 --- a/docs/trace/stratified-sampling-example/StratifiedSampler.cs +++ b/docs/trace/stratified-sampling-example/StratifiedSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; @@ -77,4 +64,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return new SamplingResult(SamplingDecision.Drop); } -} +} \ No newline at end of file diff --git a/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs b/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs index ae15a40d370..fd3017dfee7 100644 --- a/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs +++ b/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; @@ -58,4 +45,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame // instrumentations end up populating the required attributes. return new SamplingResult(SamplingDecision.RecordOnly); } -} +} \ No newline at end of file diff --git a/docs/trace/tail-based-sampling-span-level/Program.cs b/docs/trace/tail-based-sampling-span-level/Program.cs index 3dfc4cf4f08..4382ed8db4a 100644 --- a/docs/trace/tail-based-sampling-span-level/Program.cs +++ b/docs/trace/tail-based-sampling-span-level/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -56,4 +43,4 @@ public static void Main(string[] args) } } } -} +} \ No newline at end of file diff --git a/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs b/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs index 19352cfa898..b8c1f14aa6f 100644 --- a/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs +++ b/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -70,4 +57,4 @@ private void IncludeForExportIfFailedActivity(Activity activity) Console.WriteLine($"Dropping activity with id {activity.Id} and status {activity.Status}"); } } -} +} \ No newline at end of file diff --git a/examples/AspNetCore/Controllers/WeatherForecastController.cs b/examples/AspNetCore/Controllers/WeatherForecastController.cs index fab6acf5a73..5098079f1c0 100644 --- a/examples/AspNetCore/Controllers/WeatherForecastController.cs +++ b/examples/AspNetCore/Controllers/WeatherForecastController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace Examples.AspNetCore.Controllers; @@ -84,4 +71,4 @@ public IEnumerable Get() return forecast; } -} +} \ No newline at end of file diff --git a/examples/AspNetCore/Instrumentation.cs b/examples/AspNetCore/Instrumentation.cs index e4583887e07..beec272f2da 100644 --- a/examples/AspNetCore/Instrumentation.cs +++ b/examples/AspNetCore/Instrumentation.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace Examples.AspNetCore; @@ -47,4 +34,4 @@ public void Dispose() this.ActivitySource.Dispose(); this.meter.Dispose(); } -} +} \ No newline at end of file diff --git a/examples/AspNetCore/Models/WeatherForecast.cs b/examples/AspNetCore/Models/WeatherForecast.cs index 5b9359e3fa9..c515b41db56 100644 --- a/examples/AspNetCore/Models/WeatherForecast.cs +++ b/examples/AspNetCore/Models/WeatherForecast.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace Examples.AspNetCore; @@ -25,4 +12,4 @@ public class WeatherForecast public int TemperatureF => 32 + (int)(this.TemperatureC / 0.5556); public string? Summary { get; set; } -} +} \ No newline at end of file diff --git a/examples/AspNetCore/Program.cs b/examples/AspNetCore/Program.cs index 9ecff725e81..68ea3fe4158 100644 --- a/examples/AspNetCore/Program.cs +++ b/examples/AspNetCore/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using Examples.AspNetCore; @@ -191,4 +178,4 @@ app.UseOpenTelemetryPrometheusScrapingEndpoint(); } -app.Run(); +app.Run(); \ No newline at end of file diff --git a/examples/Console/InstrumentationWithActivitySource.cs b/examples/Console/InstrumentationWithActivitySource.cs index 23c4b4e826b..ddb2f3904bc 100644 --- a/examples/Console/InstrumentationWithActivitySource.cs +++ b/examples/Console/InstrumentationWithActivitySource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Globalization; @@ -173,4 +160,4 @@ public void Dispose() } } } -} +} \ No newline at end of file diff --git a/examples/Console/Program.cs b/examples/Console/Program.cs index b912d278804..2b93979e071 100644 --- a/examples/Console/Program.cs +++ b/examples/Console/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using CommandLine; @@ -165,4 +152,3 @@ internal class InMemoryOptions } #pragma warning restore SA1402 // File may only contain a single type - diff --git a/examples/Console/TestConsoleExporter.cs b/examples/Console/TestConsoleExporter.cs index 5a58c94193c..80f0ecc6fe2 100644 --- a/examples/Console/TestConsoleExporter.cs +++ b/examples/Console/TestConsoleExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -80,4 +67,4 @@ public override void OnStart(Activity activity) } } } -} +} \ No newline at end of file diff --git a/examples/Console/TestGrpcNetClient.cs b/examples/Console/TestGrpcNetClient.cs index 991ce5b35f0..1544381d902 100644 --- a/examples/Console/TestGrpcNetClient.cs +++ b/examples/Console/TestGrpcNetClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Examples.GrpcService; @@ -70,4 +57,4 @@ internal static object Run() return null; } -} +} \ No newline at end of file diff --git a/examples/Console/TestHttpClient.cs b/examples/Console/TestHttpClient.cs index a0bc50b67bf..63e5db80714 100644 --- a/examples/Console/TestHttpClient.cs +++ b/examples/Console/TestHttpClient.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using OpenTelemetry; using OpenTelemetry.Resources; @@ -50,4 +38,4 @@ internal static object Run() return null; } -} +} \ No newline at end of file diff --git a/examples/Console/TestInMemoryExporter.cs b/examples/Console/TestInMemoryExporter.cs index 15039261256..d71ec24c6b9 100644 --- a/examples/Console/TestInMemoryExporter.cs +++ b/examples/Console/TestInMemoryExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry; @@ -64,4 +51,4 @@ private static void RunWithActivitySource(ICollection exportedItems) "Press ENTER to stop."); System.Console.ReadLine(); } -} +} \ No newline at end of file diff --git a/examples/Console/TestLogs.cs b/examples/Console/TestLogs.cs index 991b7d0e71e..c5f34408f39 100644 --- a/examples/Console/TestLogs.cs +++ b/examples/Console/TestLogs.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry; @@ -123,4 +110,4 @@ internal static object Run(LogsOptions options) return null; } -} +} \ No newline at end of file diff --git a/examples/Console/TestMetrics.cs b/examples/Console/TestMetrics.cs index 5b814be1cc8..7b1f891d763 100644 --- a/examples/Console/TestMetrics.cs +++ b/examples/Console/TestMetrics.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -165,4 +152,4 @@ internal static object Run(MetricsOptions options) return null; } -} +} \ No newline at end of file diff --git a/examples/Console/TestOTelShimWithConsoleExporter.cs b/examples/Console/TestOTelShimWithConsoleExporter.cs index 0be9476a399..9cf7910b029 100644 --- a/examples/Console/TestOTelShimWithConsoleExporter.cs +++ b/examples/Console/TestOTelShimWithConsoleExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Resources; @@ -55,4 +42,4 @@ internal static object Run(OpenTelemetryShimOptions options) return null; } -} +} \ No newline at end of file diff --git a/examples/Console/TestOpenTracingShim.cs b/examples/Console/TestOpenTracingShim.cs index da9921cf914..34c6fc19f7c 100644 --- a/examples/Console/TestOpenTracingShim.cs +++ b/examples/Console/TestOpenTracingShim.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Context.Propagation; @@ -68,4 +55,4 @@ internal static object Run(OpenTracingShimOptions options) return null; } -} +} \ No newline at end of file diff --git a/examples/Console/TestOtlpExporter.cs b/examples/Console/TestOtlpExporter.cs index af73004b0b0..c7377102c03 100644 --- a/examples/Console/TestOtlpExporter.cs +++ b/examples/Console/TestOtlpExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Exporter; @@ -102,4 +89,4 @@ private static object RunWithActivitySource(string endpoint, string protocol) "http/protobuf" => OtlpExportProtocol.HttpProtobuf, _ => null, }; -} +} \ No newline at end of file diff --git a/examples/Console/TestPrometheusExporter.cs b/examples/Console/TestPrometheusExporter.cs index 170b2c241b5..7a0cd0401ab 100644 --- a/examples/Console/TestPrometheusExporter.cs +++ b/examples/Console/TestPrometheusExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -103,4 +90,4 @@ private static IEnumerable> GetThreadCpuTime(Process process yield return new(thread.TotalProcessorTime.TotalMilliseconds, new("ProcessId", process.Id), new("ThreadId", thread.Id)); } } -} +} \ No newline at end of file diff --git a/examples/Console/TestZipkinExporter.cs b/examples/Console/TestZipkinExporter.cs index 487a067540d..645dae79dc6 100644 --- a/examples/Console/TestZipkinExporter.cs +++ b/examples/Console/TestZipkinExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry; using OpenTelemetry.Resources; @@ -57,4 +44,4 @@ internal static object Run(string zipkinUri) return null; } -} +} \ No newline at end of file diff --git a/examples/GrpcService/Program.cs b/examples/GrpcService/Program.cs index afbea322b82..e005ca0517e 100644 --- a/examples/GrpcService/Program.cs +++ b/examples/GrpcService/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace Examples.GrpcService; @@ -32,4 +19,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) => webBuilder.UseStartup(); webBuilder.UseUrls("https://localhost:44335"); }); -} +} \ No newline at end of file diff --git a/examples/GrpcService/Services/GreeterService.cs b/examples/GrpcService/Services/GreeterService.cs index 2333f434b4a..fb99aebf968 100644 --- a/examples/GrpcService/Services/GreeterService.cs +++ b/examples/GrpcService/Services/GreeterService.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Grpc.Core; @@ -34,4 +21,4 @@ public override Task SayHello(HelloRequest request, ServerCallContex Message = "Hello " + request.Name, }); } -} +} \ No newline at end of file diff --git a/examples/GrpcService/Startup.cs b/examples/GrpcService/Startup.cs index 0e6ab11be02..a5069627cc5 100644 --- a/examples/GrpcService/Startup.cs +++ b/examples/GrpcService/Startup.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Resources; using OpenTelemetry.Trace; @@ -81,4 +68,4 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) }); }); } -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs b/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs index 51a1466b43f..d156787f46c 100644 --- a/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs +++ b/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -99,4 +86,4 @@ private IEnumerable ExtractTraceContextFromBasicProperties(IBasicPropert return Enumerable.Empty(); } -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs b/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs index 13ebc8c8d53..655737cdca5 100644 --- a/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs +++ b/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -111,4 +98,4 @@ private void InjectTraceContextIntoBasicProperties(IBasicProperties props, strin this.logger.LogError(ex, "Failed to inject trace context."); } } -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs b/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs index fe56ad84da6..4439d08aacc 100644 --- a/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs +++ b/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using RabbitMQ.Client; @@ -78,4 +65,4 @@ public static void AddMessagingTags(Activity activity) activity?.SetTag("messaging.destination", DefaultExchangeName); activity?.SetTag("messaging.rabbitmq.routing_key", TestQueueName); } -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs b/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs index 9881101fa8f..f8c1e51774c 100644 --- a/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs +++ b/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.AspNetCore.Mvc; using Utils.Messaging; @@ -37,4 +24,4 @@ public string Get() { return this.messageSender.SendMessage(); } -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/WebApi/Program.cs b/examples/MicroserviceExample/WebApi/Program.cs index 38c8a91ab69..22b91b82001 100644 --- a/examples/MicroserviceExample/WebApi/Program.cs +++ b/examples/MicroserviceExample/WebApi/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace WebApi; @@ -29,4 +16,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) => { webBuilder.UseUrls("http://*:5000").UseStartup(); }); -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/WebApi/Startup.cs b/examples/MicroserviceExample/WebApi/Startup.cs index 72442407e79..488d9d1e499 100644 --- a/examples/MicroserviceExample/WebApi/Startup.cs +++ b/examples/MicroserviceExample/WebApi/Startup.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; using Utils.Messaging; @@ -59,4 +46,4 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapControllers(); }); } -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/WorkerService/Program.cs b/examples/MicroserviceExample/WorkerService/Program.cs index bdc8563c3b4..11769319d39 100644 --- a/examples/MicroserviceExample/WorkerService/Program.cs +++ b/examples/MicroserviceExample/WorkerService/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; using Utils.Messaging; @@ -43,4 +30,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) => b.Endpoint = new Uri($"http://{zipkinHostName}:9411/api/v2/spans"); })); }); -} +} \ No newline at end of file diff --git a/examples/MicroserviceExample/WorkerService/Worker.cs b/examples/MicroserviceExample/WorkerService/Worker.cs index 702c172f7b8..586e012c689 100644 --- a/examples/MicroserviceExample/WorkerService/Worker.cs +++ b/examples/MicroserviceExample/WorkerService/Worker.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Utils.Messaging; @@ -45,4 +32,4 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) await Task.CompletedTask.ConfigureAwait(false); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs index ac99c40c8e3..96c452440cc 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -35,4 +22,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs index 91a43a3ae9e..3a25d168d0e 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Logs; @@ -28,4 +15,4 @@ internal interface IConfigureLoggerProviderBuilder /// . /// . void ConfigureBuilder(IServiceProvider serviceProvider, LoggerProviderBuilder loggerProviderBuilder); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs index 0142659bbca..8ebdf77ed9d 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; @@ -47,4 +34,4 @@ internal interface ILoggerProviderBuilder : IDeferredLoggerProviderBuilder /// Configuration callback. /// The supplied for chaining. LoggerProviderBuilder ConfigureServices(Action configure); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs index 8a97c908d51..84100114a42 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; @@ -78,4 +65,4 @@ private LoggerProviderServiceCollectionBuilder ConfigureServicesInternal(Action< return this; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs index b37acd20267..236472a7cf8 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -252,4 +239,4 @@ internal static LoggerProviderBuilder ConfigureBuilder( return loggerProviderBuilder; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs index 19aae08523b..96bbbb71666 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; @@ -182,4 +169,4 @@ public void ConfigureBuilder(IServiceProvider serviceProvider, LoggerProviderBui this.configure(serviceProvider, loggerProviderBuilder); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs index 5021c427425..3fab9a285c6 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -28,4 +15,4 @@ internal interface IConfigureMeterProviderBuilder /// . /// . void ConfigureBuilder(IServiceProvider serviceProvider, MeterProviderBuilder meterProviderBuilder); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs index cbeca74e849..d9830567322 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; @@ -47,4 +34,4 @@ internal interface IMeterProviderBuilder : IDeferredMeterProviderBuilder /// Configuration callback. /// The supplied for chaining. MeterProviderBuilder ConfigureServices(Action configure); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs index 8a054c2f964..6ea7107c656 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; @@ -91,4 +78,4 @@ private MeterProviderServiceCollectionBuilder ConfigureServicesInternal(Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -185,4 +172,4 @@ internal static MeterProviderBuilder ConfigureBuilder( return meterProviderBuilder; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.cs index e62776c6cad..83ba01bf5c7 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/OpenTelemetryDependencyInjectionMetricsServiceCollectionExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; @@ -117,4 +104,4 @@ public void ConfigureBuilder(IServiceProvider serviceProvider, MeterProviderBuil this.configure(serviceProvider, meterProviderBuilder); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/IConfigureTracerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/IConfigureTracerProviderBuilder.cs index 5e9f078d8f0..4b65ad0f9c1 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/IConfigureTracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/IConfigureTracerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Trace; @@ -28,4 +15,4 @@ internal interface IConfigureTracerProviderBuilder /// . /// . void ConfigureBuilder(IServiceProvider serviceProvider, TracerProviderBuilder tracerProviderBuilder); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs index bd2ae18d190..6ae13423478 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; @@ -47,4 +34,4 @@ internal interface ITracerProviderBuilder : IDeferredTracerProviderBuilder /// Configuration callback. /// The supplied for chaining. TracerProviderBuilder ConfigureServices(Action configure); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs index 0d6ec709f16..ca80c9e8439 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -185,4 +172,4 @@ internal static TracerProviderBuilder ConfigureBuilder( return tracerProviderBuilder; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs index 7d46cb52130..ff51fa859e3 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; @@ -117,4 +104,4 @@ public void ConfigureBuilder(IServiceProvider serviceProvider, TracerProviderBui this.configure(serviceProvider, tracerProviderBuilder); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs index 2943ea04c65..80ba98db8c7 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; @@ -104,4 +91,4 @@ private TracerProviderServiceCollectionBuilder ConfigureServicesInternal(Action< return this; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/ActivityContextExtensions.cs b/src/OpenTelemetry.Api/ActivityContextExtensions.cs index 8d21c95a31c..2c89d718fe6 100644 --- a/src/OpenTelemetry.Api/ActivityContextExtensions.cs +++ b/src/OpenTelemetry.Api/ActivityContextExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -39,4 +26,4 @@ public static bool IsValid(this ActivityContext ctx) { return ctx != default; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index 353b015fab5..302cd58b420 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -42,4 +29,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Baggage.cs b/src/OpenTelemetry.Api/Baggage.cs index 05d6666131e..92458faef87 100644 --- a/src/OpenTelemetry.Api/Baggage.cs +++ b/src/OpenTelemetry.Api/Baggage.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Context; @@ -379,4 +366,4 @@ private sealed class BaggageHolder { public Baggage Baggage; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/BaseProvider.cs b/src/OpenTelemetry.Api/BaseProvider.cs index 1ccca7e13b4..408b2c2fd48 100644 --- a/src/OpenTelemetry.Api/BaseProvider.cs +++ b/src/OpenTelemetry.Api/BaseProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -45,4 +32,4 @@ public void Dispose() protected virtual void Dispose(bool disposing) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs index 0a4d87d273a..e03cebd146b 100644 --- a/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -56,4 +43,4 @@ public override void Set(T value) { this.slot.Value = value; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs b/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs index 30055f51ef5..f884c00d54c 100644 --- a/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs +++ b/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Context; @@ -25,4 +12,4 @@ public interface IRuntimeContextSlotValueAccessor /// Gets or sets the value of the slot as an . /// object Value { get; set; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs b/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs index f9761e0a17f..47e86aa6739 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -268,4 +255,4 @@ private static PropagationContext ExtractFromSingleHeader(PropagationContext return context; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs index 3bc031f384d..ac3d7b1162b 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; using System.Text; @@ -174,4 +161,4 @@ internal static bool TryExtractBaggage(string[] baggageCollection, out Dictionar baggage = baggageDictionary; return baggageDictionary != null; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs index 8842b56a359..7cf101e6586 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -60,4 +47,4 @@ public override void Inject(PropagationContext context, T carrier, Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Context.Propagation; @@ -30,4 +17,4 @@ public override PropagationContext Extract(PropagationContext context, T carr public override void Inject(PropagationContext context, T carrier, Action setter) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs b/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs index 03ee300e128..5a014e82282 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -80,4 +67,4 @@ public override int GetHashCode() return hash; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs b/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs index 0b20125e96a..f5667136971 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Context.Propagation; @@ -35,4 +22,4 @@ internal static void Reset() { DefaultTextMapPropagator = Noop; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs index 4819d60ec7f..3e51285ee36 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Context.Propagation; @@ -48,4 +35,4 @@ public abstract class TextMapPropagator /// Function that will return string value of a key with the specified name. /// Context from it's text representation. public abstract PropagationContext Extract(PropagationContext context, T carrier, Func> getter); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs index 16c2456ad4a..40c83df3398 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -438,4 +425,4 @@ private static bool IsLowerAlphaDigit(char c) { return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs b/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs index 06357bcc095..1ae9f6fd008 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -266,4 +253,4 @@ private static bool ValidateValue(ReadOnlySpan value) return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs index 3b3fb71ab18..2ccefd159cb 100644 --- a/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Collections; @@ -81,4 +68,4 @@ public override void Set(T value) CallContext.LogicalSetData(this.Name, wrapper); } } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/RuntimeContext.cs b/src/OpenTelemetry.Api/Context/RuntimeContext.cs index 77516f7408c..e43f6fc5185 100644 --- a/src/OpenTelemetry.Api/Context/RuntimeContext.cs +++ b/src/OpenTelemetry.Api/Context/RuntimeContext.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Runtime.CompilerServices; @@ -202,4 +189,4 @@ private static object GuardNotFound(string slotName) return slot; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs index d832a94f9b0..01095b23e86 100644 --- a/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Context; @@ -62,4 +49,4 @@ public void Dispose() protected virtual void Dispose(bool disposing) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs index ff911798284..9760a0223b2 100644 --- a/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -73,4 +60,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs b/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs index dda27277d2b..6fc8ee49b03 100644 --- a/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs +++ b/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -121,4 +108,4 @@ public void FailedToInjectBaggage(string format, string error) { this.WriteEvent(11, format, error); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs index cf6852327ac..daa13698c02 100644 --- a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -44,4 +31,4 @@ interface IDeferredLoggerProviderBuilder /// Configuration callback. /// The supplied for chaining. LoggerProviderBuilder Configure(Action configure); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs index 9de29f92d3b..8d8d8e2c9c7 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -340,4 +327,4 @@ public readonly void Dispose() readonly void IEnumerator.Reset() => throw new NotSupportedException(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/LogRecordData.cs b/src/OpenTelemetry.Api/Logs/LogRecordData.cs index 37225cb3e74..190ab97315a 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordData.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordData.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -146,4 +133,4 @@ internal static void SetActivityContext(ref LogRecordData data, Activity? activi data.TraceFlags = ActivityTraceFlags.None; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs index 3fc9a7aa660..06050eb1b14 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -106,4 +93,4 @@ enum LogRecordSeverity /// Fatal4 severity (24). Fatal4 = Fatal3 + 1, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs index 0a9556e4b6a..f50f21d828c 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -121,4 +108,4 @@ public static string ToShortName(this LogRecordSeverity logRecordSeverity) return LogRecordSeverityShortNames[severityLevel]; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/Logger.cs b/src/OpenTelemetry.Api/Logs/Logger.cs index 17297a977f1..53cc8ca8eea 100644 --- a/src/OpenTelemetry.Api/Logs/Logger.cs +++ b/src/OpenTelemetry.Api/Logs/Logger.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -74,4 +61,4 @@ internal void SetInstrumentationScope( { this.Version = version; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs index 405ea7e12ac..8fa690b6934 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -94,4 +81,4 @@ protected virtual bool TryCreateLogger( logger = null; return false; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs index a460e6e2598..b8e73a7f515 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -48,4 +35,4 @@ protected LoggerProviderBuilder() public abstract LoggerProviderBuilder AddInstrumentation( Func instrumentationFactory) where TInstrumentation : class?; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Logs/NoopLogger.cs b/src/OpenTelemetry.Api/Logs/NoopLogger.cs index 51ba1d81042..2e02481a26f 100644 --- a/src/OpenTelemetry.Api/Logs/NoopLogger.cs +++ b/src/OpenTelemetry.Api/Logs/NoopLogger.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -30,4 +17,4 @@ public override void EmitLog( in LogRecordAttributeList attributes) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs b/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs index dded0bf1271..b3803a06760 100644 --- a/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -32,4 +19,4 @@ public interface IDeferredMeterProviderBuilder /// Configuration callback. /// The supplied for chaining. MeterProviderBuilder Configure(Action configure); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Metrics/MeterProvider.cs b/src/OpenTelemetry.Api/Metrics/MeterProvider.cs index ab66f629bc4..c9191ec8922 100644 --- a/src/OpenTelemetry.Api/Metrics/MeterProvider.cs +++ b/src/OpenTelemetry.Api/Metrics/MeterProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -29,4 +16,4 @@ public class MeterProvider : BaseProvider protected MeterProvider() { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs b/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs index 7ba999e91f7..76fdf3ac231 100644 --- a/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -46,4 +33,4 @@ public abstract MeterProviderBuilder AddInstrumentation( /// Meter names. /// Returns for chaining. public abstract MeterProviderBuilder AddMeter(params string[] names); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs index 62419b821ad..3a890936046 100644 --- a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs +++ b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -110,4 +97,4 @@ public static void RecordException(this Activity activity, Exception? ex, in Tag activity.AddEvent(new ActivityEvent(SemanticConventions.AttributeExceptionEventName, default, tagsCollection)); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs b/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs index ec9aab9fd45..141a5cc900b 100644 --- a/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -33,4 +20,4 @@ public interface IDeferredTracerProviderBuilder /// Configuration callback. /// The supplied for chaining. TracerProviderBuilder Configure(Action configure); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/Link.cs b/src/OpenTelemetry.Api/Trace/Link.cs index 28ac1013065..f95da67d03c 100644 --- a/src/OpenTelemetry.Api/Trace/Link.cs +++ b/src/OpenTelemetry.Api/Trace/Link.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -85,4 +72,4 @@ public override int GetHashCode() /// public bool Equals(Link other) => this.ActivityLink.Equals(other.ActivityLink); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/SpanAttributes.cs b/src/OpenTelemetry.Api/Trace/SpanAttributes.cs index e3487feafe4..aa6759c8b11 100644 --- a/src/OpenTelemetry.Api/Trace/SpanAttributes.cs +++ b/src/OpenTelemetry.Api/Trace/SpanAttributes.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -138,4 +125,4 @@ private void AddInternal(string key, object? value) this.Attributes[key] = value; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/SpanContext.cs b/src/OpenTelemetry.Api/Trace/SpanContext.cs index 2b01e33b9f7..c1f12ca9294 100644 --- a/src/OpenTelemetry.Api/Trace/SpanContext.cs +++ b/src/OpenTelemetry.Api/Trace/SpanContext.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -149,4 +136,4 @@ private static bool IsTraceIdValid(ActivityTraceId traceId) private static bool IsSpanIdValid(ActivitySpanId spanId) => spanId != default; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/SpanKind.cs b/src/OpenTelemetry.Api/Trace/SpanKind.cs index a8d55dcc7eb..bf01ce63ede 100644 --- a/src/OpenTelemetry.Api/Trace/SpanKind.cs +++ b/src/OpenTelemetry.Api/Trace/SpanKind.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -51,4 +38,4 @@ public enum SpanKind /// spans. /// Consumer = 5, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/Status.cs b/src/OpenTelemetry.Api/Trace/Status.cs index 3eb4cb9e6b2..126b075fc65 100644 --- a/src/OpenTelemetry.Api/Trace/Status.cs +++ b/src/OpenTelemetry.Api/Trace/Status.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -120,4 +107,4 @@ public override string ToString() /// public bool Equals(Status other) => this.StatusCode == other.StatusCode && this.Description == other.Description; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/StatusCode.cs b/src/OpenTelemetry.Api/Trace/StatusCode.cs index c749d570d93..5f5bb320eb7 100644 --- a/src/OpenTelemetry.Api/Trace/StatusCode.cs +++ b/src/OpenTelemetry.Api/Trace/StatusCode.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -37,4 +24,4 @@ public enum StatusCode /// The operation contains an error. /// Error = 2, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs b/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs index ef5b5240737..c34b9bff5b0 100644 --- a/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs +++ b/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -355,4 +342,4 @@ private void AddEventInternal(string name, DateTimeOffset timestamp = default, A this.Activity!.AddEvent(new ActivityEvent(name, timestamp, tags)); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/Tracer.cs b/src/OpenTelemetry.Api/Trace/Tracer.cs index 91adfb8d38b..6cbfe3b2c3a 100644 --- a/src/OpenTelemetry.Api/Trace/Tracer.cs +++ b/src/OpenTelemetry.Api/Trace/Tracer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -246,4 +233,4 @@ private TelemetrySpan StartSpanHelper( } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/TracerProvider.cs b/src/OpenTelemetry.Api/Trace/TracerProvider.cs index f293b843c62..ea3a474a2d6 100644 --- a/src/OpenTelemetry.Api/Trace/TracerProvider.cs +++ b/src/OpenTelemetry.Api/Trace/TracerProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -125,4 +112,4 @@ public TracerKey(string? name, string? version) this.Version = version; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs b/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs index 1b1058ef81f..4112a8b94a3 100644 --- a/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -58,4 +45,4 @@ public abstract TracerProviderBuilder AddInstrumentation( /// Operation name of the objects to capture. /// Returns for chaining. public abstract TracerProviderBuilder AddLegacySource(string operationName); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs index 235142e2ee7..be96039b728 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Resources; @@ -143,4 +130,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs index 8969f915e71..cea3c34d735 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter; @@ -42,4 +29,4 @@ protected void WriteLine(string message) System.Diagnostics.Trace.WriteLine(message); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs index 0dc1a54dc2b..3ef3dc03cb1 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -68,4 +55,4 @@ public static TracerProviderBuilder AddConsoleExporter( return new SimpleActivityExportProcessor(new ConsoleActivityExporter(options)); }); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs index c041b43b3b6..c4899725897 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -132,4 +119,4 @@ static LoggerProviderBuilder AddConsoleExporter( return new SimpleLogRecordExportProcessor(new ConsoleLogRecordExporter(options)); }); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs index 23d067cc449..2af666297a3 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -129,4 +116,4 @@ private static MetricReader BuildConsoleExporterMetricReader( DefaultExportIntervalMilliseconds, DefaultExportTimeoutMilliseconds); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs index 51dcc06ac7a..75b5192286c 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter; @@ -22,4 +9,4 @@ public class ConsoleExporterOptions /// Gets or sets the output targets for the console exporter. /// public ConsoleExporterOutputTargets Targets { get; set; } = ConsoleExporterOutputTargets.Console; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs index a45ae691421..b1e8fa56000 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter; @@ -28,4 +15,4 @@ public enum ConsoleExporterOutputTargets /// Output to the Debug trace. /// Debug = 0b10, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs index 691dca63ffb..b751c2361bb 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OpenTelemetry.Logs; @@ -176,4 +163,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs index f1fda322789..9fadd3075b2 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Globalization; using System.Text; @@ -261,4 +248,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs b/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs index ceb3c31af00..93c779b5d4a 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -36,4 +23,4 @@ private ConsoleTagTransformer() protected override string TransformArrayTag(string key, Array array) => this.TransformStringTag(key, TagTransformerJsonHelper.JsonSerializeArrayTag(array)); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs index 6708edb8ae4..49a17097cb8 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter; @@ -76,4 +63,4 @@ private ExportResult DefaultExport(in Batch batch) return ExportResult.Success; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs index d230ff668b1..58e781ffc23 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Exporter; @@ -35,4 +22,4 @@ public static TracerProviderBuilder AddInMemoryExporter(this TracerProviderBuild return builder.AddProcessor(new SimpleActivityExportProcessor(new InMemoryExporter(exportedItems))); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs index 136ded44d1c..a1869f9d649 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter; using OpenTelemetry.Internal; @@ -87,4 +74,4 @@ private static ExportResult ExportLogRecord(in Batch batch, ICollecti return ExportResult.Success; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs index dcdfba37ffd..3f7a0b2b44a 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -201,4 +188,4 @@ private static ExportResult ExportMetricSnapshot(in Batch batch, ICollec return ExportResult.Success; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs b/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs index 04d22354084..f5cabda636d 100644 --- a/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs +++ b/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -52,4 +39,4 @@ public MetricSnapshot(Metric metric) public string MeterVersion => this.instrumentIdentity.MeterVersion; public IReadOnlyList MetricPoints { get; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs index b57075574b1..88c4d3bd53e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -24,4 +11,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests")] [assembly: InternalsVisibleTo("Benchmarks")] [assembly: InternalsVisibleTo("MockOpenTelemetryCollector")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs index e967cef97e6..4dc352c02d4 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics; @@ -403,4 +390,4 @@ public void EnumerateLinks(Activity activity, int maxLinks) } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs index 2c27b3f9990..813ff1766ab 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -58,4 +45,4 @@ public ExperimentalOptions(IConfiguration configuration) /// Gets or sets a value indicating whether log event attributes should be exported. /// public bool EmitLogEventAttributes { get; set; } = false; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs index e0a4d7b75b1..064389ae5ab 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Grpc.Core; using OpenTelemetry.Internal; @@ -71,4 +58,4 @@ public virtual bool Shutdown(int timeoutMilliseconds) return Task.WaitAny(new Task[] { this.Channel.ShutdownAsync(), Task.Delay(timeoutMilliseconds) }) == 0; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs index 2a3812ad1ca..a41d398f332 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -97,4 +84,4 @@ protected HttpResponseMessage SendHttpRequest(HttpRequestMessage request, Cancel return this.HttpClient.SendAsync(request, cancellationToken).GetAwaiter().GetResult(); #endif } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs index f584644ae34..40a42db8bda 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient; @@ -39,4 +26,4 @@ internal static void EnsureUnencryptedSupportIsEnabled(OtlpExporterOptions optio } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs index be65730e79d..37ba2d05991 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient; @@ -39,4 +26,4 @@ internal interface IExportClient /// Returns true if shutdown succeeded; otherwise, false. /// bool Shutdown(int timeoutMilliseconds); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs index 4ce16d47d4c..aa468d7f459 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Grpc.Core; using OtlpCollector = OpenTelemetry.Proto.Collector.Logs.V1; @@ -56,4 +43,4 @@ public override bool SendExportRequest(OtlpCollector.ExportLogsServiceRequest re return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs index 166efe55b91..1308e7db062 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Grpc.Core; using OtlpCollector = OpenTelemetry.Proto.Collector.Metrics.V1; @@ -56,4 +43,4 @@ public override bool SendExportRequest(OtlpCollector.ExportMetricsServiceRequest return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs index 2825c1d611e..6adc8a23e2e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Grpc.Core; using OtlpCollector = OpenTelemetry.Proto.Collector.Trace.V1; @@ -56,4 +43,4 @@ public override bool SendExportRequest(OtlpCollector.ExportTraceServiceRequest r return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs index 769f3292c2f..0e1f2287fc8 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; #if NETFRAMEWORK @@ -79,4 +66,4 @@ private void SerializeToStreamInternal(Stream stream) this.exportRequest.WriteTo(stream); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs index 976419e3471..441746e2590 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; #if NETFRAMEWORK @@ -79,4 +66,4 @@ private void SerializeToStreamInternal(Stream stream) this.exportRequest.WriteTo(stream); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs index 88ae65d9408..edac087e6f8 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; #if NETFRAMEWORK @@ -79,4 +66,4 @@ private void SerializeToStreamInternal(Stream stream) this.exportRequest.WriteTo(stream); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs index b4d1f7232fb..bcaad6e5bb6 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Net; @@ -248,4 +235,4 @@ public RetryResult(bool throttled, TimeSpan retryDelay, int nextRetryDelayMillis this.NextRetryDelayMilliseconds = nextRetryDelayMilliseconds; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs index 1e38181b000..fa4525eaadb 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Runtime.CompilerServices; @@ -439,4 +426,4 @@ private static OtlpMetrics.Exemplar ToOtlpExemplar(this IExemplar exemplar) return otlpExemplar; } */ -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs index e7f09b3ca9b..a64d512ab9a 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -90,4 +77,4 @@ public void InvalidEnvironmentVariable(string key, string value) { this.WriteEvent(11, key, value); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs index 038d76cf92b..6e3628d01f6 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OtlpCommon = OpenTelemetry.Proto.Common.V1; @@ -91,4 +78,4 @@ protected override OtlpCommon.AnyValue TransformArrayValue(Array array) return new OtlpCommon.AnyValue { ArrayValue = arrayValue }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs index c185c24c251..b75ae538688 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Runtime.CompilerServices; @@ -287,4 +274,4 @@ private static OtlpLogs.SeverityNumber GetSeverityNumber(LogRecordSeverity? seve return (OtlpLogs.SeverityNumber)(int)severity.Value; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs index a5e14a83376..d72ea7cdbf9 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Resources; using OtlpCommon = OpenTelemetry.Proto.Common.V1; @@ -47,4 +34,4 @@ public static OtlpResource.Resource ToOtlpResource(this Resource resource) return processResource; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs index 1b497c7f054..6a3214c6152 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; @@ -186,4 +173,4 @@ private static void SetIntConfigValue(IConfiguration configuration, string key, setter(defaultValue); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs index 5d35a8e746b..a4db4cdcd72 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; @@ -38,4 +25,4 @@ internal static long ToNanoseconds(this TimeSpan duration) { return duration.Ticks * NanosecondsPerTicks; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs index f6a018fc6c4..2afe6b0227c 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter; @@ -30,4 +17,4 @@ public enum OtlpExportProtocol : byte /// OTLP over HTTP with protobuf payloads (corresponds to 'http/protobuf' Protocol configuration option). /// HttpProtobuf = 1, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs index 77c7b487838..c265daf120c 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter; @@ -33,4 +20,4 @@ public static bool TryParse(string value, out OtlpExportProtocol result) return false; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs index d08fc4037de..c7090e69ee6 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Reflection; @@ -223,4 +210,4 @@ private static string GetUserAgentString() return UserAgentProduct; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs index 5f8758408a9..933c6adb378 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -189,4 +176,4 @@ internal static Uri AppendPathIfNotPresent(this Uri uri, string path) return new Uri(string.Concat(uri.AbsoluteUri, separator, path)); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs index af8f4274eba..d496a828f33 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -128,4 +115,4 @@ protected override bool OnShutdown(int timeoutMilliseconds) { return this.exportClient?.Shutdown(timeoutMilliseconds) ?? true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs index 49431a3b1a4..11987bfd703 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -199,4 +186,4 @@ private static OtlpExporterOptions GetOtlpExporterOptions(IServiceProvider sp, s // safely use the Options API fully. return sp.GetRequiredService>().Get(finalName); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs index a9bd3f69fb9..cbbf102847f 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient; @@ -108,4 +95,4 @@ protected override bool OnShutdown(int timeoutMilliseconds) { return this.exportClient?.Shutdown(timeoutMilliseconds) ?? true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs index 7c7b08260bf..43e5ee77d00 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -207,4 +194,4 @@ internal static MetricReader BuildOtlpExporterMetricReader( metricExporter, metricReaderOptions); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs index 2c9bcb95bba..5cf70b5920e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; @@ -116,4 +103,4 @@ protected override bool OnShutdown(int timeoutMilliseconds) { return this.exportClient?.Shutdown(timeoutMilliseconds) ?? true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs index bb7c25ce573..fa2f6e5117d 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -140,4 +127,4 @@ internal static BaseProcessor BuildOtlpExporterProcessor( batchOptions.MaxExportBatchSize); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs index e3e83045293..3c7724c8150 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -92,4 +79,4 @@ internal static long CalculateFolderSize(string path) return directorySize; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs index 8f4b3ea4a42..ec9eec90af3 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -138,4 +125,4 @@ protected override bool OnTryDelete() return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs index 8947f6319af..1d6e249fe4e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -228,4 +215,4 @@ private bool CheckStorageSize() return null; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs index d2dd4300802..ee3f108a144 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -125,4 +112,4 @@ public bool TryDelete() protected abstract bool OnTryLease(int leasePeriodMilliseconds); protected abstract bool OnTryDelete(); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs index 8a6d5d5bd55..238c9dbe18a 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -133,4 +120,4 @@ public IEnumerable GetBlobs() protected abstract bool OnTryCreateBlob(byte[] buffer, [NotNullWhen(true)] out PersistentBlob? blob); protected abstract bool OnTryGetBlob([NotNullWhen(true)] out PersistentBlob? blob); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs index f5b5bfccc79..aa72c403dc5 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -43,4 +30,4 @@ public void PersistentStorageAbstractionsException(string className, string mess { this.WriteEvent(1, className, message, ex); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs index b3d92c7156f..02c9f47a895 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -175,4 +162,4 @@ public void PersistentStorageInformation(string className, string message) { this.WriteEvent(11, className, message); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs index 971675cb571..0aa7218443e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -163,4 +150,4 @@ internal static DateTime GetDateTimeFromLeaseName(string filePath) DateTime.TryParseExact(time, "yyyy-MM-ddTHHmmss.fffffffZ", CultureInfo.InvariantCulture, DateTimeStyles.None, out var dateTime); return dateTime.ToUniversalTime(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs index 4b71c3dd52d..b4ff66c14a5 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -22,4 +9,4 @@ #else [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests")] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs index aead3765afc..24c07f91328 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.Prometheus; @@ -43,4 +30,4 @@ public int ScrapeResponseCacheDurationMilliseconds } internal PrometheusExporterOptions ExporterOptions { get; } = new(); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs index 07757999fec..f7836a89dce 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; @@ -149,4 +136,4 @@ public static IApplicationBuilder UseOpenTelemetryPrometheusScrapingEndpoint( builder.UseMiddleware(meterProvider); }); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs index 2235934c042..b66e1889ef3 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; @@ -108,4 +95,4 @@ public static IEndpointConventionBuilder MapPrometheusScrapingEndpoint( return endpoints.Map(new PathString(path), builder.Build()); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs index 222d677cb9f..1703490e4c3 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -84,4 +71,4 @@ private static MetricReader BuildPrometheusExporterMetricReader(PrometheusAspNet TemporalityPreference = MetricReaderTemporalityPreference.Cumulative, }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs index 72145bdaed2..3ca37368a87 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.AspNetCore.Http; @@ -127,4 +114,4 @@ private static bool AcceptsOpenMetrics(HttpRequest request) return false; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs index b5aa26ab08f..29c8a38d3b8 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -24,4 +11,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.HttpListener.Tests")] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.Tests")] [assembly: InternalsVisibleTo("Benchmarks")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs index c0356597b64..8d68ad30aba 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; using OpenTelemetry.Metrics; @@ -294,4 +281,4 @@ public CollectionResponse(ArraySegment view, DateTime generatedAtUtc, bool public bool FromCache { get; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs index b02a3a64b67..1016f464a08 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OpenTelemetry.Metrics; @@ -86,4 +73,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs index ceb82a5de38..b377675fb18 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -77,4 +64,4 @@ public void NoMetrics() { this.WriteEvent(4); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs index 2d9a679124f..6fe64287f9e 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -41,4 +28,4 @@ public int ScrapeResponseCacheDurationMilliseconds this.scrapeResponseCacheDurationMilliseconds = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs index 8548f6d16ec..f1546dcb764 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter.Prometheus; @@ -57,4 +44,4 @@ private static ReadOnlySpan SplitNext(ref ReadOnlySpan span, char ch return part; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs index b9b2f848062..4f467b7afe4 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Text; using OpenTelemetry.Metrics; @@ -290,4 +277,4 @@ private static string MapPerUnit(ReadOnlySpan perUnit) _ => perUnit.ToString(), }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs index 631de4eab3d..6d50c820b0d 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Globalization; @@ -363,4 +350,4 @@ private static string MapPrometheusType(PrometheusType type) _ => "untyped", }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs index d606a5ced5b..38ec69e99c1 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Metrics; @@ -197,4 +184,4 @@ public static int WriteMetric(byte[] buffer, int cursor, Metric metric, Promethe return cursor; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs index 0b5acfa8724..2193b56331a 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter.Prometheus; @@ -42,4 +29,4 @@ internal enum PrometheusType /// Mapped from Histogram. /// Histogram, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs index 914f448df94..4dbc1e3febd 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; using OpenTelemetry.Exporter.Prometheus; @@ -203,4 +190,4 @@ private async Task ProcessRequestAsync(HttpListenerContext context) { } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs index 62c5f386b06..be2dda196ad 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -106,4 +93,4 @@ private static MetricReader BuildPrometheusHttpListenerMetricReader( return reader; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs index 51954fe15df..8582706c9bb 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -49,4 +36,4 @@ public IReadOnlyCollection UriPrefixes this.uriPrefixes = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs index 6b8a569923c..b6f40168107 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Runtime.CompilerServices; #if SIGNED @@ -21,4 +9,4 @@ #else [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Zipkin.Tests")] [assembly: InternalsVisibleTo("Benchmarks")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs index a0edd0ed1f5..5db11859cc8 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics; @@ -276,4 +263,4 @@ public void EnumerateEvents(Activity activity) } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs index c0201a2730a..07a55033d5e 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + namespace OpenTelemetry.Exporter.Zipkin.Implementation; internal readonly struct ZipkinAnnotation @@ -28,4 +16,4 @@ public ZipkinAnnotation( public long Timestamp { get; } public string Value { get; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs index 68fee7511a6..904f743a7e8 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Text.Json; @@ -99,4 +86,4 @@ public void Write(Utf8JsonWriter writer) writer.WriteEndObject(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs index 00867ff7374..c995dcf7687 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -53,4 +40,4 @@ public void InvalidEnvironmentVariable(string key, string value) { this.WriteEvent(3, key, value); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs index 5ec3545debd..ddb8429ec42 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Globalization; using System.Text.Json; @@ -198,4 +185,4 @@ public void Write(Utf8JsonWriter writer) writer.WriteEndObject(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs index 28131be35ac..a9c386e4295 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Text.Json; @@ -55,4 +42,4 @@ internal static class ZipkinSpanJsonHelper public static readonly JsonEncodedText Ipv6PropertyName = JsonEncodedText.Encode("ipv6"); public static readonly JsonEncodedText PortPropertyName = JsonEncodedText.Encode("port"); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs index 98f714baeb0..be33419e6c4 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -36,4 +23,4 @@ private ZipkinTagTransformer() protected override string TransformArrayTag(string key, Array array) => this.TransformStringTag(key, TagTransformerJsonHelper.JsonSerializeArrayTag(array)); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs index 70069f7a4b0..601c7e2b92c 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Net; @@ -265,4 +252,4 @@ private void SerializeToStreamInternal(Stream stream) this.writer.Flush(); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs index 07ce2f77f00..1c275d5ae43 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -133,4 +120,4 @@ private static BaseProcessor BuildZipkinExporterProcessor( options.BatchExportProcessorOptions.MaxExportBatchSize); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs index 143b63f57c7..0552d802f39 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NETFRAMEWORK @@ -104,4 +91,4 @@ internal ZipkinExporterOptions( /// an will be instantiated directly. /// public Func HttpClientFactory { get; set; } = DefaultHttpClientFactory; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs index 22263c1bb29..8a5910b2320 100644 --- a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -28,4 +15,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs b/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs index e76603cf731..b8ab94db6f5 100644 --- a/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs +++ b/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; @@ -43,4 +30,4 @@ public void LoggerProviderNotRegistered() { this.WriteEvent(3); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs b/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs index 51c8c0d1826..2cb766d8e32 100644 --- a/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs +++ b/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -117,4 +104,4 @@ private void MeasurementRecordedLong(Instrument instrument, long value, ReadOnly meterProvider.MeasurementRecordedLongSingleStream(instrument, value, tagsRos, userState); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs b/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs index 60023e38b7b..32e1006c09c 100644 --- a/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs +++ b/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; @@ -72,4 +59,4 @@ internal static void Initialize(IServiceProvider serviceProvider) HostingExtensionsEventSource.Log.LoggerProviderNotRegistered(); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs index ee120839dc8..231d77ba91f 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.Metrics; @@ -246,4 +233,4 @@ OpenTelemetryBuilder WithLogging( return this; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs index a34cea3ea3e..4b9d1832b1b 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; @@ -78,4 +65,4 @@ internal static void RegisterMetricsListener( configure(builder); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs index e226dfba69a..eae00826bd2 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Hosting; using OpenTelemetry; @@ -60,4 +47,4 @@ public static OpenTelemetryBuilder AddOpenTelemetry(this IServiceCollection serv return new(services); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs index 728ed87e54a..3bc228d67ed 100644 --- a/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs @@ -1,22 +1,10 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Runtime.CompilerServices; #if SIGNED [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Propagators.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Propagators.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs b/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs index f0fbbbd1c82..232b29da798 100644 --- a/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs +++ b/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -260,4 +247,4 @@ private static PropagationContext ExtractFromSingleHeader(PropagationContext return context; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs b/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs index c51bc62d2e4..e08e35fd076 100644 --- a/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs +++ b/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Context.Propagation; @@ -174,4 +161,4 @@ internal static bool TryExtractTraceContext(string jaegerHeader, out ActivityTra return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs b/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs index d0d5152f639..ce62f870466 100644 --- a/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs +++ b/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; @@ -47,4 +34,4 @@ public void FailedToInjectActivityContext(string format, string error) { this.WriteEvent(2, format, error); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs index d8254871576..1f014d5f836 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using OpenTelemetry.Instrumentation.AspNetCore.Implementation; namespace OpenTelemetry.Instrumentation.AspNetCore; @@ -47,4 +35,4 @@ public void Dispose() { this.diagnosticSourceSubscriber?.Dispose(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs index 7d8dce970a2..f2a3c1be454 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NET8_0_OR_GREATER using OpenTelemetry.Instrumentation.AspNetCore.Implementation; @@ -51,4 +38,4 @@ public void Dispose() this.diagnosticSourceSubscriber?.Dispose(); } } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs index 69fe58f0424..4db053f48a6 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.AspNetCore.Http; @@ -90,4 +77,4 @@ public class AspNetCoreTraceInstrumentationOptions public bool EnableGrpcAspNetCoreSupport { get; set; } = true; #endif */ -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs index 2b1cca81128..1f05e6a6e37 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs @@ -1,22 +1,10 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Runtime.CompilerServices; #if SIGNED [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.AspNetCore.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.AspNetCore.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs index 3f67896c167..433111096a9 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -92,4 +79,4 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, st { this.WriteEvent(5, handlerName, eventName, ex); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs index b10c8a6c4ca..e66aaa6a9f0 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -403,4 +390,4 @@ private void AddGrpcAttributes(Activity activity, string grpcMethod, HttpContext } } #endif -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs index b3631d0ef21..ec4052cdb79 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -137,4 +124,4 @@ public void OnStopEventWritten(string name, object payload) // TODO: Follow up with .NET team if we can continue to rely on this behavior. HttpServerRequestDuration.Record(Activity.Current.Duration.TotalSeconds, tags); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs index b2878542dd8..53b2758119a 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Instrumentation.AspNetCore.Implementation; @@ -43,4 +30,4 @@ public static string GetFlavorTagValueFromProtocol(string protocol) return protocol; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs index 73d84269e82..55a89fcacaf 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Instrumentation.AspNetCore.Implementation; @@ -38,4 +25,4 @@ public static object GetBoxedStatusCode(int statusCode) return statusCode; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs index 06e41eedc15..a2ec4c1beea 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NET8_0_OR_GREATER using OpenTelemetry.Instrumentation.AspNetCore; @@ -62,4 +49,4 @@ internal static MeterProviderBuilder ConfigureMeters(this MeterProviderBuilder b .AddMeter("Microsoft.AspNetCore.Diagnostics") .AddMeter("Microsoft.AspNetCore.RateLimiting"); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs index 357cbad6f05..3dcd3604e6b 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET7_0_OR_GREATER using System.Diagnostics; @@ -130,4 +117,4 @@ private static void AddAspNetCoreInstrumentationSources( builder.AddLegacySource(HttpInListener.ActivityOperationName); // for the activities created by AspNetCore #endif } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs index 478e6315c82..28e1fe74916 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -20,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Grpc.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Grpc.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs index d5cb4f704f6..96e039803f8 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using OpenTelemetry.Instrumentation.GrpcNetClient.Implementation; namespace OpenTelemetry.Instrumentation.GrpcNetClient; @@ -39,4 +27,4 @@ public void Dispose() { this.diagnosticSourceSubscriber.Dispose(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs index 5fa720d89b8..19154fe639f 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Configuration; @@ -64,4 +51,4 @@ internal GrpcClientInstrumentationOptions(IConfiguration configuration) /// object from which additional information can be extracted to enrich the activity. /// public Action EnrichWithHttpResponseMessage { get; set; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs index 6707c9a705d..ab6db91a42b 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text.RegularExpressions; @@ -86,4 +73,4 @@ public static ActivityStatusCode ResolveSpanStatusForGrpcStatusCode(int statusCo return status; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs index 9dd29e86fd5..db9fa63ca10 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -234,4 +221,4 @@ public void OnStopActivity(Activity activity, object payload) static bool TryFetchResponse(object payload, out HttpResponseMessage response) => StopResponseFetcher.TryFetch(payload, out response) && response != null; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs index e520e992850..49fe78c99d6 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -62,4 +49,4 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, st { this.WriteEvent(3, handlerName, eventName, ex); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs index bd8be72a74a..3ea40066a10 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Instrumentation.GrpcNetClient; @@ -145,4 +132,4 @@ internal enum StatusCanonicalCode /// The request does not have valid authentication credentials for the operation. /// Unauthenticated = 16, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs index 69f241afca5..634eeb36717 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -83,4 +70,4 @@ public static TracerProviderBuilder AddGrpcClientInstrumentation( return new GrpcClientInstrumentation(options); }); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs index 0ea3b92570f..95f94ceba52 100644 --- a/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -20,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Http.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Http.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs index da8d7440843..c6671f1f03f 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using OpenTelemetry.Instrumentation.Http.Implementation; namespace OpenTelemetry.Instrumentation.Http; @@ -72,4 +60,4 @@ public void Dispose() { this.diagnosticSourceSubscriber?.Dispose(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs b/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs index 6472ab91cff..0236322be4f 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Instrumentation.Http.Implementation; @@ -51,4 +38,4 @@ public void Dispose() { this.diagnosticSourceSubscriber?.Dispose(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs index cbaa9422ae3..6fae4ce9f9f 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Net; @@ -173,4 +160,4 @@ private static bool TryParseHttpRequestMessage(string activityName, object arg1, { return (requestMessage = arg1 as HttpRequestMessage) != null && activityName == "System.Net.Http.HttpRequestOut"; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs b/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs index 5d33ad70f6a..8e81dc78fa8 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -37,4 +24,4 @@ internal static class HttpRequestMessageContextPropagation request.Headers.Remove(name); request.Headers.Add(name, value); }; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs index ff3fa2022e3..afd8c8cfc53 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -350,4 +337,4 @@ private static string GetErrorType(Exception exc) #endif return exc.GetType().FullName; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs index 15f6b6c1023..4fcf8ddbdd7 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -186,4 +173,4 @@ static bool TryFetchRequest(object payload, out HttpRequestMessage request) return true; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs index 05b2b312310..46a9f58bed3 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -113,4 +100,4 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, st { this.WriteEvent(7, handlerName, eventName, ex); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs index 08c50229db8..a5a2a894b23 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Collections.Concurrent; #if NETFRAMEWORK using System.Net.Http; @@ -83,4 +71,4 @@ public static string GetUriTagValueFromRequestUri(Uri uri) private static string ConvertHttpMethodToOperationName(HttpMethod method) => $"HTTP {method}"; private static string ConvertHttpMethodToName(HttpMethod method) => method.ToString(); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs index 1223711476e..c9c366b8afa 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Collections; @@ -1217,4 +1204,4 @@ public void AsyncCallback(IAsyncResult asyncResult) } } } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs index a17f3f3a70b..682800c0f97 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; @@ -52,4 +39,4 @@ public static string GetStatusCodeString(HttpStatusCode statusCode) return statusCode.ToString(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs index 3d6acde2c24..342e367e627 100644 --- a/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NET8_0_OR_GREATER #if !NETFRAMEWORK @@ -59,4 +46,4 @@ public static MeterProviderBuilder AddHttpClientInstrumentation( return builder; #endif } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs index f19ea5ce54f..0e897030e94 100644 --- a/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -114,4 +101,4 @@ internal static void AddHttpClientInstrumentationSource( } } #endif -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs index 18cd3732cf1..e9cf16595e9 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -20,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.SqlClient.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.SqlClient.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs index f2b601dbca7..62bf8ab7c6f 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using System.Reflection; using OpenTelemetry.Trace; @@ -37,4 +25,4 @@ internal sealed class SqlActivitySourceHelper { new KeyValuePair(SemanticConventions.AttributeDbSystem, MicrosoftSqlServerDatabaseSystemName), }; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs index 9221394b038..88b0c542c24 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + #if !NETFRAMEWORK using System.Data; using System.Diagnostics; @@ -216,4 +204,4 @@ public override void OnEventWritten(string name, object payload) } } } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs index 3b3911db326..32dd2ce2b16 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using OpenTelemetry.Internal; @@ -95,4 +82,4 @@ public void CommandFilterException(string exception) { this.WriteEvent(7, exception); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs index 6a82e193c1c..f294415eb8b 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Diagnostics; @@ -201,4 +188,4 @@ private void OnEndExecute(EventWrittenEventArgs eventData) } } } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs index ba89db24fa2..3205fe157f5 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -80,4 +67,4 @@ public void Dispose() this.diagnosticSourceSubscriber?.Dispose(); #endif } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs index c8b4a15e0f6..94f4ccb5c40 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Data; @@ -362,4 +349,4 @@ internal sealed class SqlConnectionDetails public string Port { get; set; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs index de5a6d832ae..70620c2c78e 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -96,4 +83,4 @@ public static TracerProviderBuilder AddSqlClientInstrumentation( return builder; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs b/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs index 65b48faca13..42f49447a87 100644 --- a/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs +++ b/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 // This file has been auto generated from buildscripts/semantic-conventions/templates/SemanticConventions.cs.j2 @@ -1025,4 +1012,4 @@ public static class TelemetrySdkLanguageValues public const string Swift = "swift"; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs b/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs index 5899605f6f6..49b9294a532 100644 --- a/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs +++ b/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 // This file has been auto generated from buildscripts/semantic-conventions/templates/SemanticConventions.cs.j2 @@ -1875,4 +1862,4 @@ public static class MessageTypeValues public const string Received = "RECEIVED"; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs b/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs index 8c8fdc47b3e..d3c7cc6f669 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -20,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Shims.OpenTracing.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Shims.OpenTracing.Tests")] -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs b/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs index b2210b4ec08..7cd7f049782 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; using OpenTelemetry.Internal; @@ -99,4 +86,4 @@ public void Dispose() this.disposeAction?.Invoke(); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs index 001707efc0f..fc0f4021a10 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OpenTelemetry.Trace; @@ -319,4 +306,4 @@ private static SpanContext GetOpenTelemetrySpanContext(ISpanContext spanContext) return shim.SpanContext; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs index 5d65c44455d..897d6188fc3 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTracing; @@ -35,4 +22,4 @@ public SpanContextShim(in Trace.SpanContext spanContext) public IEnumerable> GetBaggageItems() => Baggage.GetBaggage(); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs index 22787a62bfc..5b56abfdb9e 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OpenTelemetry.Trace; @@ -287,4 +274,4 @@ private static Tuple> ConvertToEventPayload( return new Tuple>(eventName ?? DefaultEventName, attributes); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs b/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs index 280cac2afa9..c997e004745 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Context.Propagation; using OpenTelemetry.Internal; @@ -119,4 +106,4 @@ public void Inject( (instrumentation, key, value) => instrumentation.Set(key, value)); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/AssemblyInfo.cs b/src/OpenTelemetry/AssemblyInfo.cs index 633ef4f832c..f707aa2e3e8 100644 --- a/src/OpenTelemetry/AssemblyInfo.cs +++ b/src/OpenTelemetry/AssemblyInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -41,4 +28,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif +#endif \ No newline at end of file diff --git a/src/OpenTelemetry/BaseExportProcessor.cs b/src/OpenTelemetry/BaseExportProcessor.cs index 0604d033673..01436988ef2 100644 --- a/src/OpenTelemetry/BaseExportProcessor.cs +++ b/src/OpenTelemetry/BaseExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -136,4 +123,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/BaseExporter.cs b/src/OpenTelemetry/BaseExporter.cs index 6ac80cb568a..17f5f66c35c 100644 --- a/src/OpenTelemetry/BaseExporter.cs +++ b/src/OpenTelemetry/BaseExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -185,4 +172,4 @@ protected virtual bool OnShutdown(int timeoutMilliseconds) protected virtual void Dispose(bool disposing) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/BaseProcessor.cs b/src/OpenTelemetry/BaseProcessor.cs index 2ede098b3e7..7ccb14886f8 100644 --- a/src/OpenTelemetry/BaseProcessor.cs +++ b/src/OpenTelemetry/BaseProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -213,4 +200,4 @@ protected virtual bool OnShutdown(int timeoutMilliseconds) protected virtual void Dispose(bool disposing) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Batch.cs b/src/OpenTelemetry/Batch.cs index 7dc6ce4bfe1..9f7d7029a8c 100644 --- a/src/OpenTelemetry/Batch.cs +++ b/src/OpenTelemetry/Batch.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using System.Diagnostics; @@ -244,4 +231,4 @@ public bool MoveNext() public readonly void Reset() => throw new NotSupportedException(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/BatchExportProcessor.cs b/src/OpenTelemetry/BatchExportProcessor.cs index 5bffa6345c4..4ee36da70bc 100644 --- a/src/OpenTelemetry/BatchExportProcessor.cs +++ b/src/OpenTelemetry/BatchExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -299,4 +286,4 @@ private void ExporterProc() } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/BatchExportProcessorOptions.cs b/src/OpenTelemetry/BatchExportProcessorOptions.cs index d92acfcf851..c283541125f 100644 --- a/src/OpenTelemetry/BatchExportProcessorOptions.cs +++ b/src/OpenTelemetry/BatchExportProcessorOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry; @@ -42,4 +29,4 @@ public class BatchExportProcessorOptions /// Gets or sets the maximum batch size of every export. It must be smaller or equal to MaxQueueLength. The default value is 512. /// public int MaxExportBatchSize { get; set; } = BatchExportProcessor.DefaultMaxExportBatchSize; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/CompositeProcessor.cs b/src/OpenTelemetry/CompositeProcessor.cs index 96235daf43a..c5338326da8 100644 --- a/src/OpenTelemetry/CompositeProcessor.cs +++ b/src/OpenTelemetry/CompositeProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -190,4 +177,4 @@ public DoublyLinkedListNode(BaseProcessor value) public DoublyLinkedListNode? Next { get; set; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs b/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs index d6d7274c267..5ae0f36f784 100644 --- a/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs +++ b/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Configuration; @@ -88,4 +75,4 @@ public static IServiceCollection AddOpenTelemetrySharedProviderBuilderServices(t return services!; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/CircularBuffer.cs b/src/OpenTelemetry/Internal/CircularBuffer.cs index 904c84accb9..b0521ee722d 100644 --- a/src/OpenTelemetry/Internal/CircularBuffer.cs +++ b/src/OpenTelemetry/Internal/CircularBuffer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -173,4 +160,4 @@ public T Read() return previous; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs b/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs index 67a668cf3d5..1375597147a 100644 --- a/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs +++ b/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -407,4 +394,4 @@ protected override void OnEventWritten(EventWrittenEventArgs e) } } #endif -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/SelfDiagnostics.cs b/src/OpenTelemetry/Internal/SelfDiagnostics.cs index f61e76acc44..b1fffc892d8 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnostics.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnostics.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Internal; @@ -65,4 +52,4 @@ private void Dispose(bool disposing) this.configRefresher.Dispose(); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs index ecae2859d87..00e1265ce8c 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Tracing; @@ -142,4 +129,4 @@ internal static bool TryParseLogLevel( logLevel = logLevelResult.Groups["LogLevel"].Value; return logLevelResult.Success && !string.IsNullOrWhiteSpace(logLevel); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs index 7ff7a50658c..5713d3f2fb7 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -287,4 +274,4 @@ private void Dispose(bool disposing) this.disposedValue = true; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs index ea7d8dc91c8..4896a16e037 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.ObjectModel; using System.Diagnostics.Tracing; @@ -340,4 +327,4 @@ private void Dispose(bool disposing) this.disposedValue = true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Internal/WildcardHelper.cs b/src/OpenTelemetry/Internal/WildcardHelper.cs index 2aee7dfba5a..6675ac3b01e 100644 --- a/src/OpenTelemetry/Internal/WildcardHelper.cs +++ b/src/OpenTelemetry/Internal/WildcardHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -44,4 +31,4 @@ public static Regex GetWildcardRegex(IEnumerable patterns) return new Regex("^(?:" + convertedPattern + ")$", RegexOptions.Compiled | RegexOptions.IgnoreCase); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs b/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs index d05736b4f80..9822e6df6f6 100644 --- a/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs +++ b/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; @@ -65,4 +52,4 @@ internal BatchExportLogRecordProcessorOptions(IConfiguration configuration) this.ScheduledDelayMilliseconds = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs b/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs index 85e285a3626..f02ebfd80f7 100644 --- a/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs +++ b/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Logs; @@ -64,4 +51,4 @@ public override void OnEnd(LogRecord data) LogRecordSharedPool.Current.Return(data); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs index 5b6c65beab0..810c2f5afe2 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -107,4 +94,4 @@ internal LoggerProvider Build() return new LoggerProviderSdk(serviceProvider, ownsServiceProvider: true); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs index ea28f79a6fb..962f407c9c9 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -239,4 +226,4 @@ public static LoggerProvider Build(this LoggerProviderBuilder loggerProviderBuil throw new NotSupportedException($"Build is not supported on '{loggerProviderBuilder?.GetType().FullName ?? "null"}' instances."); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs index 626a744fea3..20d4aed51c9 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; @@ -127,4 +114,4 @@ internal InstrumentationRegistration(string name, string version, object? instan this.Instance = instance; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs index 38c189b7a87..3681b4b9c96 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -267,4 +254,4 @@ private LoggerInstrumentationScope(string name, string version) public override void EmitLog(in LogRecordData data, in LogRecordAttributeList attributes) => throw new NotSupportedException(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs index a046295827d..063109c3881 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -144,4 +131,4 @@ internal OpenTelemetryLoggerOptions Copy() IncludeTraceState = this.IncludeTraceState, }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs index ec7369766ca..a85ca5c0d5e 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using System.Diagnostics; @@ -156,4 +143,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs index 6a262a7b3b0..7a3183490cb 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -237,4 +224,4 @@ static void RegisterLoggerProviderOptions(IServiceCollection services) LoggerProviderOptions.RegisterProviderOptions(services); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/LogRecord.cs b/src/OpenTelemetry/Logs/LogRecord.cs index 1fa220e3fc6..15bb26669f1 100644 --- a/src/OpenTelemetry/Logs/LogRecord.cs +++ b/src/OpenTelemetry/Logs/LogRecord.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -514,4 +501,4 @@ public ScopeForEachState(Action callback, TState state) this.UserState = state; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs b/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs index 8b2fe3edcfc..88e1eb7ab87 100644 --- a/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs +++ b/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -59,4 +46,4 @@ public BatchExportLogRecordProcessorOptions BatchExportProcessorOptions this.batchExportProcessorOptions = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/LogRecordScope.cs b/src/OpenTelemetry/Logs/LogRecordScope.cs index 61e743640e2..638492e2b23 100644 --- a/src/OpenTelemetry/Logs/LogRecordScope.cs +++ b/src/OpenTelemetry/Logs/LogRecordScope.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; @@ -100,4 +87,4 @@ public void Dispose() public void Reset() => throw new NotSupportedException(); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs b/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs index a46b47dc1b1..8c6f1477977 100644 --- a/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs +++ b/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -174,4 +161,4 @@ public static bool Shutdown(this LoggerProvider provider, int timeoutMillisecond return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/LoggerProviderSdk.cs b/src/OpenTelemetry/Logs/LoggerProviderSdk.cs index 6d4ae3ce946..d5edf4221ed 100644 --- a/src/OpenTelemetry/Logs/LoggerProviderSdk.cs +++ b/src/OpenTelemetry/Logs/LoggerProviderSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER @@ -247,4 +234,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/LoggerSdk.cs b/src/OpenTelemetry/Logs/LoggerSdk.cs index afd1a825da5..af895277f24 100644 --- a/src/OpenTelemetry/Logs/LoggerSdk.cs +++ b/src/OpenTelemetry/Logs/LoggerSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -60,4 +47,4 @@ public override void EmitLog(in LogRecordData data, in LogRecordAttributeList at pool.Return(logRecord); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs b/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs index f2d0b1268c6..781a8b8da06 100644 --- a/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs +++ b/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Logs; @@ -21,4 +8,4 @@ internal interface ILogRecordPool LogRecord Rent(); void Return(LogRecord logRecord); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs b/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs index 4a65313ec9b..a71ad3cc98a 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Logs; @@ -55,4 +42,4 @@ underlying array (capacity). */ } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs b/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs index 1c5e059b520..9255a120f92 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Internal; @@ -143,4 +130,4 @@ private bool TryRentCoreRare(long rentSnapshot, [NotNullWhen(true)] out LogRecor } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs b/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs index 2e484030d44..3b39e9961d0 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Logs; @@ -47,4 +34,4 @@ public void Return(LogRecord logRecord) Storage = logRecord; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs b/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs index c940fa94e62..2509fd59392 100644 --- a/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs +++ b/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Logs; @@ -31,4 +18,4 @@ public SimpleLogRecordExportProcessor(BaseExporter exporter) : base(exporter) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/AggregationTemporality.cs b/src/OpenTelemetry/Metrics/AggregationTemporality.cs index f1df071a58c..0ecb74f863d 100644 --- a/src/OpenTelemetry/Metrics/AggregationTemporality.cs +++ b/src/OpenTelemetry/Metrics/AggregationTemporality.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -31,4 +18,4 @@ public enum AggregationTemporality : byte /// Delta. /// Delta = 0b10, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/AggregationType.cs b/src/OpenTelemetry/Metrics/AggregationType.cs index ba8e1818798..06637eab25f 100644 --- a/src/OpenTelemetry/Metrics/AggregationType.cs +++ b/src/OpenTelemetry/Metrics/AggregationType.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -82,4 +69,4 @@ internal enum AggregationType /// Exponential Histogram with sum, count, min, max. /// Base2ExponentialHistogramWithMinMax = 11, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/AggregatorStore.cs b/src/OpenTelemetry/Metrics/AggregatorStore.cs index 172b6f3b740..e8e071e8a87 100644 --- a/src/OpenTelemetry/Metrics/AggregatorStore.cs +++ b/src/OpenTelemetry/Metrics/AggregatorStore.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics; @@ -1158,4 +1145,4 @@ private int FindMetricAggregatorsCustomTag(ReadOnlySpan // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -246,4 +233,4 @@ internal Base2ExponentialBucketHistogram Copy() SnapshotExponentialHistogramData = this.SnapshotExponentialHistogramData.Copy(), }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Base2ExponentialBucketHistogramConfiguration.cs b/src/OpenTelemetry/Metrics/Base2ExponentialBucketHistogramConfiguration.cs index 1394d3a8715..a3fbd26723e 100644 --- a/src/OpenTelemetry/Metrics/Base2ExponentialBucketHistogramConfiguration.cs +++ b/src/OpenTelemetry/Metrics/Base2ExponentialBucketHistogramConfiguration.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -72,4 +59,4 @@ public int MaxScale this.maxScale = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs b/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs index bffdd3c9d3e..eb50d69fde0 100644 --- a/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs +++ b/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -181,4 +168,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs index bc5b3f9ece9..234b9d8a4ed 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -122,4 +109,4 @@ protected MeterProvider Build() return new MeterProviderSdk(serviceProvider, ownsServiceProvider: true); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs index 767cf30714b..ba93a214a6f 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; @@ -361,4 +348,4 @@ static MeterProviderBuilder SetExemplarFilter(this MeterProviderBuilder meterPro return meterProviderBuilder; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs index baaa3521551..df4d8799e54 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -243,4 +230,4 @@ internal InstrumentationRegistration(string name, string version, object? instan this.Instance = instance; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/CircularBufferBuckets.cs b/src/OpenTelemetry/Metrics/CircularBufferBuckets.cs index 4953912feb9..e3fc8394aca 100644 --- a/src/OpenTelemetry/Metrics/CircularBufferBuckets.cs +++ b/src/OpenTelemetry/Metrics/CircularBufferBuckets.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -301,4 +288,4 @@ private int ModuloIndex(int value) { return MathHelper.PositiveModulo32(value, this.Capacity); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/CompositeMetricReader.cs b/src/OpenTelemetry/Metrics/CompositeMetricReader.cs index 7d2ed2f5fb4..e9d64d93db9 100644 --- a/src/OpenTelemetry/Metrics/CompositeMetricReader.cs +++ b/src/OpenTelemetry/Metrics/CompositeMetricReader.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -191,4 +178,4 @@ public DoublyLinkedListNode(MetricReader value) public DoublyLinkedListNode? Next { get; set; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs b/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs index b8f5f84c55c..197fd98a52f 100644 --- a/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs +++ b/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -146,4 +133,4 @@ internal void CompleteMeasurements(List> metricsSuperList) index++; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs b/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs index 2521c18f629..6bbcf0233c1 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -109,4 +96,4 @@ private void OfferAtBoundary(double value, ReadOnlySpan // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -43,4 +30,4 @@ public override bool ShouldSample(double value, ReadOnlySpan // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -41,4 +28,4 @@ public override bool ShouldSample(double value, ReadOnlySpan // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -61,4 +48,3 @@ struct Exemplar /// public List>? FilteredTags { get; internal set; } } - diff --git a/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs b/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs index 9948902d429..8edf04bd45e 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -65,4 +52,4 @@ abstract class ExemplarFilter /// and will not be given to the ExemplarReservoir. /// public abstract bool ShouldSample(double value, ReadOnlySpan> tags); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs b/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs index 3bcbfa6bd8a..8c8353f68b2 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -50,4 +37,4 @@ internal abstract class ExemplarReservoir /// Flag to indicate if the reservoir should be reset after this call. /// Array of Exemplars. public abstract Exemplar[] Collect(ReadOnlyTagCollection actualTags, bool reset); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs b/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs index c315fedc3de..c02e9cdf477 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -146,4 +133,4 @@ private void StoreTags(ref Exemplar exemplar, ReadOnlySpan // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -45,4 +32,4 @@ public override bool ShouldSample(double value, ReadOnlySpan // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -84,4 +71,4 @@ private static bool IsSortedAndDistinct(double[] values) return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/ExponentialHistogramBuckets.cs b/src/OpenTelemetry/Metrics/ExponentialHistogramBuckets.cs index f99977295f2..8c75a66b85d 100644 --- a/src/OpenTelemetry/Metrics/ExponentialHistogramBuckets.cs +++ b/src/OpenTelemetry/Metrics/ExponentialHistogramBuckets.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -106,4 +93,4 @@ public bool MoveNext() return false; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/ExponentialHistogramData.cs b/src/OpenTelemetry/Metrics/ExponentialHistogramData.cs index 16864e4cab4..ee9eb5277a3 100644 --- a/src/OpenTelemetry/Metrics/ExponentialHistogramData.cs +++ b/src/OpenTelemetry/Metrics/ExponentialHistogramData.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -58,4 +45,4 @@ internal ExponentialHistogramData Copy() }; return copy; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/ExportModes.cs b/src/OpenTelemetry/Metrics/ExportModes.cs index 0e77509fe2f..8add3fb4da1 100644 --- a/src/OpenTelemetry/Metrics/ExportModes.cs +++ b/src/OpenTelemetry/Metrics/ExportModes.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -44,4 +31,4 @@ 0 0 0 0 0 0 0 0 /// Pull. /// Pull = 0b10, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/ExportModesAttribute.cs b/src/OpenTelemetry/Metrics/ExportModesAttribute.cs index 186434caa5e..def778beadb 100644 --- a/src/OpenTelemetry/Metrics/ExportModesAttribute.cs +++ b/src/OpenTelemetry/Metrics/ExportModesAttribute.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -37,4 +24,4 @@ public ExportModesAttribute(ExportModes supported) /// Gets the supported . /// public ExportModes Supported => this.supportedExportModes; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/HistogramBucket.cs b/src/OpenTelemetry/Metrics/HistogramBucket.cs index 23f03ec452e..190509fad24 100644 --- a/src/OpenTelemetry/Metrics/HistogramBucket.cs +++ b/src/OpenTelemetry/Metrics/HistogramBucket.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -37,4 +24,4 @@ internal HistogramBucket(double explicitBound, long bucketCount) /// Gets the count of items in the bucket. /// public long BucketCount { get; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/HistogramBuckets.cs b/src/OpenTelemetry/Metrics/HistogramBuckets.cs index 128c40533f0..aa83ffe370c 100644 --- a/src/OpenTelemetry/Metrics/HistogramBuckets.cs +++ b/src/OpenTelemetry/Metrics/HistogramBuckets.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -210,4 +197,4 @@ private sealed class BucketLookupNode public BucketLookupNode? Right { get; set; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/HistogramConfiguration.cs b/src/OpenTelemetry/Metrics/HistogramConfiguration.cs index f3a2eead784..522ab31ab71 100644 --- a/src/OpenTelemetry/Metrics/HistogramConfiguration.cs +++ b/src/OpenTelemetry/Metrics/HistogramConfiguration.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -26,4 +13,4 @@ public class HistogramConfiguration : MetricStreamConfiguration /// should be collected. /// public bool RecordMinMax { get; set; } = true; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/IPullMetricExporter.cs b/src/OpenTelemetry/Metrics/IPullMetricExporter.cs index 58ae588d45f..8843158bebb 100644 --- a/src/OpenTelemetry/Metrics/IPullMetricExporter.cs +++ b/src/OpenTelemetry/Metrics/IPullMetricExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -25,4 +12,4 @@ public interface IPullMetricExporter /// Gets or sets the Collect delegate. /// Func? Collect { get; set; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/LookupData.cs b/src/OpenTelemetry/Metrics/LookupData.cs index 57445f1a115..b2dbdd2bb8d 100644 --- a/src/OpenTelemetry/Metrics/LookupData.cs +++ b/src/OpenTelemetry/Metrics/LookupData.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -28,4 +15,4 @@ public LookupData(int index, in Tags sortedTags, in Tags givenTags) this.SortedTags = sortedTags; this.GivenTags = givenTags; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs b/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs index 23ab998c6f2..1f3e5b307a5 100644 --- a/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs +++ b/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Internal; @@ -152,4 +139,4 @@ static bool TryFindExporter(MetricReader? reader, out T? exporter) return false; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MeterProviderSdk.cs b/src/OpenTelemetry/Metrics/MeterProviderSdk.cs index 74405b02be2..7c14fd37513 100644 --- a/src/OpenTelemetry/Metrics/MeterProviderSdk.cs +++ b/src/OpenTelemetry/Metrics/MeterProviderSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -630,4 +617,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Metric.cs b/src/OpenTelemetry/Metrics/Metric.cs index 7deba4b36e9..f3f40970a14 100644 --- a/src/OpenTelemetry/Metrics/Metric.cs +++ b/src/OpenTelemetry/Metrics/Metric.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; @@ -234,4 +221,4 @@ internal void UpdateDouble(double value, ReadOnlySpan this.aggStore.Snapshot(); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricPoint.cs b/src/OpenTelemetry/Metrics/MetricPoint.cs index 577f5afec63..3c783d027e8 100644 --- a/src/OpenTelemetry/Metrics/MetricPoint.cs +++ b/src/OpenTelemetry/Metrics/MetricPoint.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -1561,4 +1548,4 @@ private readonly void ThrowNotSupportedMetricTypeException(string methodName) { throw new NotSupportedException($"{methodName} is not supported for this metric type."); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs b/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs index 9dc158a706a..fafd5523a25 100644 --- a/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs +++ b/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -51,4 +38,4 @@ internal MetricPointOptionalComponents Copy() return copy; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricPointStatus.cs b/src/OpenTelemetry/Metrics/MetricPointStatus.cs index cfc2d1b0a00..8986b711e4c 100644 --- a/src/OpenTelemetry/Metrics/MetricPointStatus.cs +++ b/src/OpenTelemetry/Metrics/MetricPointStatus.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -29,4 +16,4 @@ internal enum MetricPointStatus /// Collect will move it to . /// CollectPending, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs b/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs index 93dd2ca9308..4ad9083b61b 100644 --- a/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs +++ b/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.InteropServices; @@ -26,4 +13,4 @@ internal struct MetricPointValueStorage [FieldOffset(0)] public double AsDouble; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs b/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs index 79035eef78b..24d47601014 100644 --- a/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs +++ b/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -80,4 +67,4 @@ public readonly ref readonly MetricPoint Current public bool MoveNext() => ++this.index < this.targetCount; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricReader.cs b/src/OpenTelemetry/Metrics/MetricReader.cs index 4623ac06048..0ed4f30d2fe 100644 --- a/src/OpenTelemetry/Metrics/MetricReader.cs +++ b/src/OpenTelemetry/Metrics/MetricReader.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -355,4 +342,4 @@ protected virtual bool OnShutdown(int timeoutMilliseconds) protected virtual void Dispose(bool disposing) { } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricReaderExt.cs b/src/OpenTelemetry/Metrics/MetricReaderExt.cs index 0fede2ab672..94015cff129 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderExt.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderExt.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics; @@ -331,4 +318,4 @@ private void RemoveMetric(ref Metric? metric) // this clears the metric out of the array. metric = null; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricReaderOptions.cs b/src/OpenTelemetry/Metrics/MetricReaderOptions.cs index 23291ecb8ca..58c31baa58e 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderOptions.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; @@ -56,4 +43,4 @@ public PeriodicExportingMetricReaderOptions PeriodicExportingMetricReaderOptions this.periodicExportingMetricReaderOptions = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs b/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs index 4443c4bb4a1..04120341ff1 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -32,4 +19,4 @@ public enum MetricReaderTemporalityPreference /// Aggregations of non-monotonic measurements use cumulative temporality. /// Delta = 2, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs b/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs index 0557ed123a4..d83dc91958c 100644 --- a/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs +++ b/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -111,4 +98,4 @@ public string[]? TagKeys // TODO: MetricPoints caps can be configured here on // a per stream basis, when we add such a capability // in the future. -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs b/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs index cdaca57db09..d3b4a8fc016 100644 --- a/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs +++ b/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; @@ -184,4 +171,4 @@ private static bool HistogramBoundsEqual(double[]? bounds1, double[]? bounds2) return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricType.cs b/src/OpenTelemetry/Metrics/MetricType.cs index 90bb09ebe9e..c74316b5f5d 100644 --- a/src/OpenTelemetry/Metrics/MetricType.cs +++ b/src/OpenTelemetry/Metrics/MetricType.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -85,4 +72,4 @@ public enum MetricType : byte /// Non-monotonic Sum of Double type. /// DoubleSumNonMonotonic = 0x8d, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs b/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs index d09e41d6e8b..de1b896bd6b 100644 --- a/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs +++ b/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -108,4 +95,4 @@ public static bool IsLong(this MetricType self) { return (self & POINT_KIND_MASK) == POINT_KIND_I8; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs index 89a36372023..465c02f2fc4 100644 --- a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs +++ b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -152,4 +139,4 @@ private void ExporterProc() } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs index 5db41bf992e..2db341905d3 100644 --- a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs +++ b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; @@ -65,4 +52,4 @@ internal PeriodicExportingMetricReaderOptions(IConfiguration configuration) /// associated with the metric reader. /// public int? ExportTimeoutMilliseconds { get; set; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/PullMetricScope.cs b/src/OpenTelemetry/Metrics/PullMetricScope.cs index f70bd53d087..b68e32adf41 100644 --- a/src/OpenTelemetry/Metrics/PullMetricScope.cs +++ b/src/OpenTelemetry/Metrics/PullMetricScope.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Context; @@ -47,4 +34,4 @@ public void Dispose() this.disposed = true; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs b/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs index 191b0cadbf6..9468ba302e9 100644 --- a/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs +++ b/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -77,4 +64,4 @@ public int GetHashCode(string[] strings) return hash; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/Tags.cs b/src/OpenTelemetry/Metrics/Tags.cs index 6addfe63e69..cc0f4e5adbb 100644 --- a/src/OpenTelemetry/Metrics/Tags.cs +++ b/src/OpenTelemetry/Metrics/Tags.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics; @@ -94,4 +81,4 @@ public readonly bool Equals(Tags other) } public override readonly int GetHashCode() => this.hashCode; -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs index ec5ba2e01c5..19e6b5e396e 100644 --- a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs +++ b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -166,4 +153,4 @@ internal TagStorage(int n) this.TagKeysAndValues = new KeyValuePair[n]; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/ProviderExtensions.cs b/src/OpenTelemetry/ProviderExtensions.cs index 1bd963a6ed5..a4a78a7086d 100644 --- a/src/OpenTelemetry/ProviderExtensions.cs +++ b/src/OpenTelemetry/ProviderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Logs; @@ -87,4 +74,4 @@ public static Resource GetDefaultResource([AllowNull] this BaseProvider baseProv return null; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/ReadOnlyTagCollection.cs b/src/OpenTelemetry/ReadOnlyTagCollection.cs index 8e25fa9e306..23edd7bc1d9 100644 --- a/src/OpenTelemetry/ReadOnlyTagCollection.cs +++ b/src/OpenTelemetry/ReadOnlyTagCollection.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry; @@ -85,4 +72,4 @@ public bool MoveNext() return false; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Resources/IResourceDetector.cs b/src/OpenTelemetry/Resources/IResourceDetector.cs index da16a81b037..02f0f1121e4 100644 --- a/src/OpenTelemetry/Resources/IResourceDetector.cs +++ b/src/OpenTelemetry/Resources/IResourceDetector.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Resources; @@ -26,4 +13,4 @@ public interface IResourceDetector /// /// An instance of . Resource Detect(); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs b/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs index d8cdec83443..8e597b33416 100644 --- a/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs +++ b/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; @@ -63,4 +50,4 @@ private static IEnumerable> ParseResourceAttributes return attributes; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs b/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs index fdbce24eb99..93175884750 100644 --- a/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs +++ b/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; @@ -44,4 +31,4 @@ public Resource Detect() return resource; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Resources/Resource.cs b/src/OpenTelemetry/Resources/Resource.cs index 0f844b5a13a..3d4a39eb9a4 100644 --- a/src/OpenTelemetry/Resources/Resource.cs +++ b/src/OpenTelemetry/Resources/Resource.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Globalization; using OpenTelemetry.Internal; @@ -127,4 +114,4 @@ private static object SanitizeValue(object value, string keyName) _ => throw new ArgumentException("Attribute value type is not an accepted primitive", keyName), }; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Resources/ResourceBuilder.cs b/src/OpenTelemetry/Resources/ResourceBuilder.cs index 59a0e457559..1e75af9002b 100644 --- a/src/OpenTelemetry/Resources/ResourceBuilder.cs +++ b/src/OpenTelemetry/Resources/ResourceBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -205,4 +192,4 @@ public Resource Detect() return detector?.Detect() ?? Resource.Empty; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs b/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs index dc60e65a5ad..03193155d17 100644 --- a/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs +++ b/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -124,4 +111,4 @@ public static ResourceBuilder AddEnvironmentVariableDetector(this ResourceBuilde .AddDetectorInternal(sp => new OtelEnvResourceDetector(sp?.GetService() ?? configuration.Value)) .AddDetectorInternal(sp => new OtelServiceNameEnvVarDetector(sp?.GetService() ?? configuration.Value)); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Sdk.cs b/src/OpenTelemetry/Sdk.cs index be6194249ec..b1a8df3bec2 100644 --- a/src/OpenTelemetry/Sdk.cs +++ b/src/OpenTelemetry/Sdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Reflection; @@ -142,4 +129,4 @@ internal static string ParseAssemblyInformationalVersion(string? informationalVe ? informationalVersion.Substring(0, indexOfPlusSign) : informationalVersion; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/SimpleExportProcessor.cs b/src/OpenTelemetry/SimpleExportProcessor.cs index 6111f7bf1b2..7c01a41ed2c 100644 --- a/src/OpenTelemetry/SimpleExportProcessor.cs +++ b/src/OpenTelemetry/SimpleExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; @@ -51,4 +38,4 @@ protected override void OnExport(T data) } } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/SuppressInstrumentationScope.cs b/src/OpenTelemetry/SuppressInstrumentationScope.cs index 440eabb4cf5..ea7143c21ad 100644 --- a/src/OpenTelemetry/SuppressInstrumentationScope.cs +++ b/src/OpenTelemetry/SuppressInstrumentationScope.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; using OpenTelemetry.Context; @@ -160,4 +147,4 @@ internal static int DecrementIfTriggered() return currentDepth; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/AlwaysOffSampler.cs b/src/OpenTelemetry/Trace/AlwaysOffSampler.cs index 6874f2102de..8b71fa40f2a 100644 --- a/src/OpenTelemetry/Trace/AlwaysOffSampler.cs +++ b/src/OpenTelemetry/Trace/AlwaysOffSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Trace; @@ -26,4 +13,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame { return new SamplingResult(SamplingDecision.Drop); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/AlwaysOnSampler.cs b/src/OpenTelemetry/Trace/AlwaysOnSampler.cs index d792e64cf23..888f6b14a9b 100644 --- a/src/OpenTelemetry/Trace/AlwaysOnSampler.cs +++ b/src/OpenTelemetry/Trace/AlwaysOnSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Trace; @@ -26,4 +13,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame { return new SamplingResult(SamplingDecision.RecordAndSample); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs b/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs index 9e69e6abbf3..5ee271d32d9 100644 --- a/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs +++ b/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -56,4 +43,4 @@ public override void OnEnd(Activity data) this.OnExport(data); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs b/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs index 78ba179ac9f..affa45e87c6 100644 --- a/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs +++ b/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Configuration; @@ -65,4 +52,4 @@ internal BatchExportActivityProcessorOptions(IConfiguration configuration) this.ScheduledDelayMilliseconds = value; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs index a2dc221e644..4631d5f4846 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -160,4 +147,4 @@ protected TracerProvider Build() return new TracerProviderSdk(serviceProvider, ownsServiceProvider: true); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs index c071d9552cc..0078a87b344 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -258,4 +245,4 @@ public static TracerProvider Build(this TracerProviderBuilder tracerProviderBuil throw new NotSupportedException($"Build is not supported on '{tracerProviderBuilder?.GetType().FullName ?? "null"}' instances."); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs index 384b8ae989d..80b2a6f487b 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; @@ -206,4 +193,4 @@ internal InstrumentationRegistration(string name, string version, object? instan this.Instance = instance; } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/ExceptionProcessor.cs b/src/OpenTelemetry/Trace/ExceptionProcessor.cs index a9646f2341f..436fc7c610c 100644 --- a/src/OpenTelemetry/Trace/ExceptionProcessor.cs +++ b/src/OpenTelemetry/Trace/ExceptionProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.InteropServices; @@ -88,4 +75,4 @@ public override void OnEnd(Activity activity) activity.SetStatus(ActivityStatusCode.Error); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/ParentBasedSampler.cs b/src/OpenTelemetry/Trace/ParentBasedSampler.cs index 4ebe09c2185..2606f532c3b 100644 --- a/src/OpenTelemetry/Trace/ParentBasedSampler.cs +++ b/src/OpenTelemetry/Trace/ParentBasedSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -126,4 +113,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return this.localParentNotSampled.ShouldSample(samplingParameters); } } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/Sampler.cs b/src/OpenTelemetry/Trace/Sampler.cs index e5ed1c38db9..0af29ad76ab 100644 --- a/src/OpenTelemetry/Trace/Sampler.cs +++ b/src/OpenTelemetry/Trace/Sampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -45,4 +32,4 @@ protected Sampler() /// /// Sampling decision on whether activity needs to be sampled or not. public abstract SamplingResult ShouldSample(in SamplingParameters samplingParameters); -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/SamplingDecision.cs b/src/OpenTelemetry/Trace/SamplingDecision.cs index ceab7270c2b..c09b935bd7f 100644 --- a/src/OpenTelemetry/Trace/SamplingDecision.cs +++ b/src/OpenTelemetry/Trace/SamplingDecision.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Trace; @@ -40,4 +27,4 @@ public enum SamplingDecision /// Activity.Recorded will return true. /// RecordAndSample, -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/SamplingParameters.cs b/src/OpenTelemetry/Trace/SamplingParameters.cs index 15d78082595..2beee2faa20 100644 --- a/src/OpenTelemetry/Trace/SamplingParameters.cs +++ b/src/OpenTelemetry/Trace/SamplingParameters.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -90,4 +77,4 @@ public SamplingParameters( /// Gets the links to be added to the activity to be created. /// public IEnumerable? Links { get; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/SamplingResult.cs b/src/OpenTelemetry/Trace/SamplingResult.cs index 2827161e705..770d6b514d7 100644 --- a/src/OpenTelemetry/Trace/SamplingResult.cs +++ b/src/OpenTelemetry/Trace/SamplingResult.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Trace; @@ -141,4 +128,4 @@ public bool Equals(SamplingResult other) && this.Attributes.SequenceEqual(other.Attributes) && this.TraceStateString == other.TraceStateString; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs b/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs index 48175c7f87c..f5c1cdd0970 100644 --- a/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs +++ b/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -42,4 +29,4 @@ public override void OnEnd(Activity data) this.OnExport(data); } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs b/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs index 9e5ebb24194..a574f14f064 100644 --- a/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs +++ b/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Globalization; using OpenTelemetry.Internal; @@ -89,4 +76,4 @@ private static long GetLowerLong(ReadOnlySpan bytes) return result; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/TracerProviderExtensions.cs b/src/OpenTelemetry/Trace/TracerProviderExtensions.cs index 5eeb27edec5..dbfd144c4b4 100644 --- a/src/OpenTelemetry/Trace/TracerProviderExtensions.cs +++ b/src/OpenTelemetry/Trace/TracerProviderExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -126,4 +113,4 @@ public static bool Shutdown(this TracerProvider provider, int timeoutMillisecond return true; } -} +} \ No newline at end of file diff --git a/src/OpenTelemetry/Trace/TracerProviderSdk.cs b/src/OpenTelemetry/Trace/TracerProviderSdk.cs index fd5a8b37427..88fba5d3d74 100644 --- a/src/OpenTelemetry/Trace/TracerProviderSdk.cs +++ b/src/OpenTelemetry/Trace/TracerProviderSdk.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -549,4 +536,4 @@ private void RunGetRequestedDataOtherSampler(Activity activity) } } } -} +} \ No newline at end of file diff --git a/src/Shared/ActivityHelperExtensions.cs b/src/Shared/ActivityHelperExtensions.cs index 935df229194..c05ab499316 100644 --- a/src/Shared/ActivityHelperExtensions.cs +++ b/src/Shared/ActivityHelperExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -125,4 +112,4 @@ public static bool TryCheckFirstTag(this Activity activity, string tagName, out tagValue = null; return false; } -} +} \ No newline at end of file diff --git a/src/Shared/ActivityInstrumentationHelper.cs b/src/Shared/ActivityInstrumentationHelper.cs index 0e841fe19d9..5255f8720ea 100644 --- a/src/Shared/ActivityInstrumentationHelper.cs +++ b/src/Shared/ActivityInstrumentationHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #pragma warning restore IDE0005 @@ -35,4 +22,4 @@ private static Action CreateActivityKindSetter() return (Action)typeof(Activity).GetProperty("Kind") .SetMethod.CreateDelegate(typeof(Action)); } -} +} \ No newline at end of file diff --git a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs index 8de84005a30..ac6853a7e49 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -57,4 +44,4 @@ public void OnNext(KeyValuePair value) this.logUnknownException?.Invoke(this.handler?.SourceName, value.Key, ex); } } -} +} \ No newline at end of file diff --git a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs index 5f659d0bc8f..030a72f6c50 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -113,4 +100,4 @@ private void Dispose(bool disposing) this.allSourcesSubscription?.Dispose(); this.allSourcesSubscription = null; } -} +} \ No newline at end of file diff --git a/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs b/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs index c41fb22015b..53e35da636a 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; namespace OpenTelemetry.Instrumentation; @@ -49,4 +37,4 @@ public ListenerHandler(string sourceName) public virtual void OnEventWritten(string name, object payload) { } -} +} \ No newline at end of file diff --git a/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs b/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs index dce2c451e2f..98a022c4d95 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -228,4 +215,4 @@ public override bool TryFetch( } } } -} +} \ No newline at end of file diff --git a/src/Shared/ExceptionExtensions.cs b/src/Shared/ExceptionExtensions.cs index b5da9f93b24..c99060a810d 100644 --- a/src/Shared/ExceptionExtensions.cs +++ b/src/Shared/ExceptionExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -42,4 +29,4 @@ public static string ToInvariantString(this Exception exception) Thread.CurrentThread.CurrentUICulture = originalUICulture; } } -} +} \ No newline at end of file diff --git a/src/Shared/Guard.cs b/src/Shared/Guard.cs index 3fe97201052..7aca5572778 100644 --- a/src/Shared/Guard.cs +++ b/src/Shared/Guard.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -213,4 +200,4 @@ private static void Range(T value, string? paramName, T min, T max, string? m } } } -} +} \ No newline at end of file diff --git a/src/Shared/HttpSemanticConventionHelper.cs b/src/Shared/HttpSemanticConventionHelper.cs index 5a1c3051b77..c20ba34fd10 100644 --- a/src/Shared/HttpSemanticConventionHelper.cs +++ b/src/Shared/HttpSemanticConventionHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -95,4 +82,4 @@ private static bool TryGetConfiguredValues(IConfiguration configuration, [NotNul return false; } } -} +} \ No newline at end of file diff --git a/src/Shared/MathHelper.cs b/src/Shared/MathHelper.cs index 91670f60daa..db22508d1a6 100644 --- a/src/Shared/MathHelper.cs +++ b/src/Shared/MathHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NET6_0_OR_GREATER @@ -142,4 +129,4 @@ public static bool IsFinite(double value) return !double.IsInfinity(value) && !double.IsNaN(value); #endif } -} +} \ No newline at end of file diff --git a/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs b/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs index 58f08673704..df4f61e99c7 100644 --- a/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs +++ b/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -128,4 +115,4 @@ private static double ScaleB(double x, int n) #pragma warning restore SA1203 // Constants should appear before fields #pragma warning restore SA1201 // Elements should appear in the correct order #endif -} +} \ No newline at end of file diff --git a/src/Shared/Options/ConfigurationExtensions.cs b/src/Shared/Options/ConfigurationExtensions.cs index 0dd6cc7bff0..0c1b7daba72 100644 --- a/src/Shared/Options/ConfigurationExtensions.cs +++ b/src/Shared/Options/ConfigurationExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -180,4 +167,4 @@ public static IServiceCollection RegisterOptionsFactory( return services!; } -} +} \ No newline at end of file diff --git a/src/Shared/PeerServiceResolver.cs b/src/Shared/PeerServiceResolver.cs index 869554bb81e..8b4f7429311 100644 --- a/src/Shared/PeerServiceResolver.cs +++ b/src/Shared/PeerServiceResolver.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -105,4 +92,4 @@ public static void Resolve(ref T state, out string? peerServiceName, out bool } } } -} +} \ No newline at end of file diff --git a/src/Shared/PeriodicExportingMetricReaderHelper.cs b/src/Shared/PeriodicExportingMetricReaderHelper.cs index 6fcc823c748..3f3fc48369f 100644 --- a/src/Shared/PeriodicExportingMetricReaderHelper.cs +++ b/src/Shared/PeriodicExportingMetricReaderHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -42,4 +29,4 @@ internal static PeriodicExportingMetricReader CreatePeriodicExportingMetricReade return metricReader; } -} +} \ No newline at end of file diff --git a/src/Shared/PooledList.cs b/src/Shared/PooledList.cs index b086bdda8af..76a8d701a32 100644 --- a/src/Shared/PooledList.cs +++ b/src/Shared/PooledList.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Buffers; using System.Collections; @@ -147,4 +134,4 @@ void IEnumerator.Reset() this.current = default; } } -} +} \ No newline at end of file diff --git a/src/Shared/RequestMethodHelper.cs b/src/Shared/RequestMethodHelper.cs index 018277f38df..521bf69fcf7 100644 --- a/src/Shared/RequestMethodHelper.cs +++ b/src/Shared/RequestMethodHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET8_0_OR_GREATER using System.Collections.Frozen; @@ -82,4 +69,4 @@ public static void SetHttpClientActivityDisplayName(Activity activity, string me // https://github.com/open-telemetry/semantic-conventions/blob/v1.23.0/docs/http/http-spans.md#name activity.DisplayName = KnownMethods.TryGetValue(method, out var httpMethod) ? httpMethod : "HTTP"; } -} +} \ No newline at end of file diff --git a/src/Shared/ResourceSemanticConventions.cs b/src/Shared/ResourceSemanticConventions.cs index ca70e67aaf6..140222b889e 100644 --- a/src/Shared/ResourceSemanticConventions.cs +++ b/src/Shared/ResourceSemanticConventions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -63,4 +50,4 @@ internal static class ResourceSemanticConventions public const string AttributeCloudRegion = "cloud.region"; public const string AttributeCloudZone = "cloud.zone"; public const string AttributeComponent = "component"; -} +} \ No newline at end of file diff --git a/src/Shared/SemanticConventions.cs b/src/Shared/SemanticConventions.cs index f505e840337..8f208b718fa 100644 --- a/src/Shared/SemanticConventions.cs +++ b/src/Shared/SemanticConventions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -131,4 +118,4 @@ internal static class SemanticConventions public const string AttributeUrlQuery = "url.query"; public const string AttributeUserAgentOriginal = "user_agent.original"; // replaces: "http.user_agent" (AttributeHttpUserAgent) public const string AttributeHttpRequestMethodOriginal = "http.request.method_original"; -} +} \ No newline at end of file diff --git a/src/Shared/Shims/IsExternalInit.cs b/src/Shared/Shims/IsExternalInit.cs index 85984f44e07..8f768f5c891 100644 --- a/src/Shared/Shims/IsExternalInit.cs +++ b/src/Shared/Shims/IsExternalInit.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK || NETSTANDARD2_0_OR_GREATER namespace System.Runtime.CompilerServices; @@ -21,4 +8,4 @@ namespace System.Runtime.CompilerServices; internal sealed class IsExternalInit { } -#endif +#endif \ No newline at end of file diff --git a/src/Shared/Shims/NullableAttributes.cs b/src/Shared/Shims/NullableAttributes.cs index 78bcfeab9ae..4964dd19333 100644 --- a/src/Shared/Shims/NullableAttributes.cs +++ b/src/Shared/Shims/NullableAttributes.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 // Source: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/NullableAttributes.cs @@ -48,4 +35,4 @@ internal sealed class NotNullWhenAttribute : Attribute public bool ReturnValue { get; } } } -#endif +#endif \ No newline at end of file diff --git a/src/Shared/SpanAttributeConstants.cs b/src/Shared/SpanAttributeConstants.cs index 735a8ea011d..86122f3f5e8 100644 --- a/src/Shared/SpanAttributeConstants.cs +++ b/src/Shared/SpanAttributeConstants.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -26,4 +13,4 @@ internal static class SpanAttributeConstants public const string StatusCodeKey = "otel.status_code"; public const string StatusDescriptionKey = "otel.status_description"; public const string DatabaseStatementTypeKey = "db.statement_type"; -} +} \ No newline at end of file diff --git a/src/Shared/SpanHelper.cs b/src/Shared/SpanHelper.cs index 393a0f2cbf4..5e158387785 100644 --- a/src/Shared/SpanHelper.cs +++ b/src/Shared/SpanHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -41,4 +28,4 @@ public static ActivityStatusCode ResolveSpanStatusForHttpStatusCode(ActivityKind return ActivityStatusCode.Unset; } -} +} \ No newline at end of file diff --git a/src/Shared/StatusHelper.cs b/src/Shared/StatusHelper.cs index c0140be0e82..c38f56dc464 100644 --- a/src/Shared/StatusHelper.cs +++ b/src/Shared/StatusHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -70,4 +57,4 @@ public static bool TryGetStatusCodeForTagValue(string? statusCodeTagValue, out S return tempStatusCode.HasValue; } -} +} \ No newline at end of file diff --git a/src/Shared/TagAndValueTransformer.cs b/src/Shared/TagAndValueTransformer.cs index fe1d1181215..46de328f73c 100644 --- a/src/Shared/TagAndValueTransformer.cs +++ b/src/Shared/TagAndValueTransformer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -57,4 +44,4 @@ protected TValue TransformValue(object value) protected abstract TValue TransformStringValue(string value); protected abstract TValue TransformArrayValue(Array value); -} +} \ No newline at end of file diff --git a/src/Shared/TagTransformer.cs b/src/Shared/TagTransformer.cs index fdf7acb88df..5b3fd3b7c52 100644 --- a/src/Shared/TagTransformer.cs +++ b/src/Shared/TagTransformer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Internal; @@ -149,4 +136,4 @@ private T ConvertToStringArrayThenTransformArrayTag(string key, Array array, int return this.TransformArrayTag(key, stringArray); } -} +} \ No newline at end of file diff --git a/src/Shared/TagTransformerJsonHelper.cs b/src/Shared/TagTransformerJsonHelper.cs index 5a353b5146d..d0642cd7fbb 100644 --- a/src/Shared/TagTransformerJsonHelper.cs +++ b/src/Shared/TagTransformerJsonHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -63,4 +50,4 @@ internal static string JsonSerializeArrayTag(Array array) return JsonSerializer.Serialize(array); } #endif -} +} \ No newline at end of file diff --git a/test/Benchmarks/EventSourceBenchmarks.cs b/test/Benchmarks/EventSourceBenchmarks.cs index 9fa37cff604..c980019e07a 100644 --- a/test/Benchmarks/EventSourceBenchmarks.cs +++ b/test/Benchmarks/EventSourceBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using BenchmarkDotNet.Attributes; @@ -43,4 +30,4 @@ public void EventWithCheck() OpenTelemetrySdkEventSource.Log.ActivityStarted(activity); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs index f87b6d17bae..dde7e2d416b 100644 --- a/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 extern alias OpenTelemetryProtocol; @@ -72,4 +59,4 @@ public void OtlpExporter_Batching() this.exporter.Export(new Batch(this.activityBatch, this.NumberOfSpans)); } } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs index 5d7b3b8a085..42632542a35 100644 --- a/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 extern alias OpenTelemetryProtocol; @@ -101,4 +88,4 @@ public void OtlpExporter_Batching() this.exporter.Export(new Batch(this.activityBatch, this.NumberOfSpans)); } } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs index 06d980782c0..1342eea35d4 100644 --- a/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK extern alias OpenTelemetryProtocol; @@ -151,4 +138,4 @@ private sealed class MockLogService : OtlpCollector.LogsService.LogsServiceBase } } } -#endif +#endif \ No newline at end of file diff --git a/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs index a833e7073d4..87b51f3f029 100644 --- a/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK extern alias OpenTelemetryProtocol; @@ -153,4 +140,4 @@ private sealed class MockTraceService : OtlpCollector.TraceService.TraceServiceB } } } -#endif +#endif \ No newline at end of file diff --git a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs index 2776a7c21ed..324ede01644 100644 --- a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs +++ b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; @@ -85,4 +72,4 @@ private PrometheusMetric GetPrometheusMetric(Metric metric) return prometheusMetric; } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs b/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs index 24db77ce3fb..2edf50ed5c0 100644 --- a/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 extern alias Zipkin; @@ -97,4 +84,4 @@ public void ZipkinExporter_Batching() exporter.Shutdown(); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Helper/ActivityCreationScenarios.cs b/test/Benchmarks/Helper/ActivityCreationScenarios.cs index 9de38f56eb0..6a720a60d26 100644 --- a/test/Benchmarks/Helper/ActivityCreationScenarios.cs +++ b/test/Benchmarks/Helper/ActivityCreationScenarios.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -52,4 +39,4 @@ public static void CreateActivityWithAttributes(ActivitySource source) activity?.SetTag("tag3", true); activity?.Stop(); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Helper/ActivityHelper.cs b/test/Benchmarks/Helper/ActivityHelper.cs index c3747555e0c..30c971d7c94 100644 --- a/test/Benchmarks/Helper/ActivityHelper.cs +++ b/test/Benchmarks/Helper/ActivityHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -96,4 +83,4 @@ public static Activity CreateTestActivity() return activity; } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Helper/LogRecordHelper.cs b/test/Benchmarks/Helper/LogRecordHelper.cs index 57d3b1e6f5d..2236f2790df 100644 --- a/test/Benchmarks/Helper/LogRecordHelper.cs +++ b/test/Benchmarks/Helper/LogRecordHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry.Logs; @@ -34,4 +21,4 @@ internal static LogRecord CreateTestLogRecord() logger.LogInformation("Hello from {Food} {Price}.", "artichoke", 3.99); return items[0]; } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Helper/SpanCreationScenarios.cs b/test/Benchmarks/Helper/SpanCreationScenarios.cs index f5b0fd3c66b..41b3f92f063 100644 --- a/test/Benchmarks/Helper/SpanCreationScenarios.cs +++ b/test/Benchmarks/Helper/SpanCreationScenarios.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Trace; @@ -68,4 +55,4 @@ public static void CreateSpan_Active_GetCurrent(Tracer tracer) span = Tracer.CurrentSpan; } } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Helper/TestExporter.cs b/test/Benchmarks/Helper/TestExporter.cs index ad0c196ca00..3fc07ae84c0 100644 --- a/test/Benchmarks/Helper/TestExporter.cs +++ b/test/Benchmarks/Helper/TestExporter.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Tests; @@ -32,4 +19,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs index dd808dadbc6..0b8c61f95f5 100644 --- a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs +++ b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using BenchmarkDotNet.Attributes; @@ -199,4 +186,4 @@ private void StartWebApplication() this.app = app; } } -#endif +#endif \ No newline at end of file diff --git a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs index 13e41f0d2ba..1b4da6254ef 100644 --- a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs +++ b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using BenchmarkDotNet.Attributes; @@ -220,4 +207,4 @@ private void StartWebApplication() this.app = app; } } -#endif +#endif \ No newline at end of file diff --git a/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs b/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs index 530dedfd805..33d08c01ed1 100644 --- a/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs +++ b/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using BenchmarkDotNet.Attributes; @@ -170,4 +157,4 @@ private void StartWebApplication() this.app = app; } } -#endif +#endif \ No newline at end of file diff --git a/test/Benchmarks/Logs/Food.cs b/test/Benchmarks/Logs/Food.cs index c95218a3f76..1e49128f6f3 100644 --- a/test/Benchmarks/Logs/Food.cs +++ b/test/Benchmarks/Logs/Food.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; @@ -26,4 +13,4 @@ public static partial class Food Message = "Hello from {food} {price}.")] public static partial void SayHello( ILogger logger, string food, double price); -} +} \ No newline at end of file diff --git a/test/Benchmarks/Logs/LogBenchmarks.cs b/test/Benchmarks/Logs/LogBenchmarks.cs index 943b89b71f9..50f66ecd005 100644 --- a/test/Benchmarks/Logs/LogBenchmarks.cs +++ b/test/Benchmarks/Logs/LogBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using BenchmarkDotNet.Attributes; using Microsoft.Extensions.Logging; @@ -115,4 +102,4 @@ public void ThreeProcessors() internal class DummyLogProcessor : BaseProcessor { } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Logs/LogScopeBenchmarks.cs b/test/Benchmarks/Logs/LogScopeBenchmarks.cs index fe695abeb49..1123a2d7822 100644 --- a/test/Benchmarks/Logs/LogScopeBenchmarks.cs +++ b/test/Benchmarks/Logs/LogScopeBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.ObjectModel; using BenchmarkDotNet.Attributes; @@ -90,4 +77,4 @@ public void ForEachScope() { this.logRecord.ForEachScope(this.callback, null); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs b/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs index 34a96de4236..563a44eac09 100644 --- a/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs +++ b/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -125,4 +112,4 @@ public void HistogramWith7LabelsHotPath() }; this.histogram.Record(this.random.Next(MaxValue), tags); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs b/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs index b7c0d083552..a597f7684eb 100644 --- a/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs +++ b/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using BenchmarkDotNet.Attributes; using OpenTelemetry.Metrics; @@ -54,4 +41,4 @@ public void MapToIndex() { this.exponentialHistogram.MapToIndex(this.random.Next(MaxValue)); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs b/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs index 75e52380da4..28f6a58052c 100644 --- a/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs +++ b/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; @@ -87,4 +74,4 @@ public void HistogramHotPath() { this.histogram.Record(this.random.Next(MaxValue)); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/ExemplarBenchmarks.cs b/test/Benchmarks/Metrics/ExemplarBenchmarks.cs index 17cebae24cc..49ce78c8417 100644 --- a/test/Benchmarks/Metrics/ExemplarBenchmarks.cs +++ b/test/Benchmarks/Metrics/ExemplarBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -143,4 +130,4 @@ public override bool ShouldSample(double value, ReadOnlySpan 800; } } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/HistogramBenchmarks.cs b/test/Benchmarks/Metrics/HistogramBenchmarks.cs index da925c9eae3..a358457740b 100644 --- a/test/Benchmarks/Metrics/HistogramBenchmarks.cs +++ b/test/Benchmarks/Metrics/HistogramBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -152,4 +139,4 @@ public void HistogramWith7LabelsHotPath() }; this.histogram.Record(this.random.Next(MaxValue), tags); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs b/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs index 22804f4f82f..6d2f4a6f265 100644 --- a/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; @@ -123,4 +110,4 @@ public void Collect() { this.reader.Collect(); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/MetricsBenchmarks.cs b/test/Benchmarks/Metrics/MetricsBenchmarks.cs index 7e2b30eb172..436741f18b3 100644 --- a/test/Benchmarks/Metrics/MetricsBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -149,4 +136,4 @@ public void CounterWith7LabelsHotPath() }; this.counter.Add(100, tags); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs b/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs index 6414ea41803..cea889c7745 100644 --- a/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -163,4 +150,4 @@ public void CounterHotPath() 100, tags); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Program.cs b/test/Benchmarks/Program.cs index 9a809b24791..4f69785fa72 100644 --- a/test/Benchmarks/Program.cs +++ b/test/Benchmarks/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using BenchmarkDotNet.Running; @@ -24,4 +11,4 @@ public static void Main(string[] args) { BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs b/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs index e5a89c8ac48..3aaea17c50d 100644 --- a/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs +++ b/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using BenchmarkDotNet.Attributes; @@ -41,4 +28,4 @@ public void Enter() SuppressInstrumentationScope.DecrementIfTriggered(); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/TestTraceServiceClient.cs b/test/Benchmarks/TestTraceServiceClient.cs index b8cf7f9d912..6c0d00b7edf 100644 --- a/test/Benchmarks/TestTraceServiceClient.cs +++ b/test/Benchmarks/TestTraceServiceClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 extern alias OpenTelemetryProtocol; @@ -27,4 +14,4 @@ public override ExportTraceServiceResponse Export(ExportTraceServiceRequest requ { return new ExportTraceServiceResponse(); } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs b/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs index 6f25c466ac6..ddc80adda76 100644 --- a/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs +++ b/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using BenchmarkDotNet.Attributes; @@ -75,4 +62,4 @@ public void GlobalCleanup() [Benchmark] public void CreateActivity_WithKind_NoopProcessor() => ActivityCreationScenarios.CreateActivityWithKind(this.benchmarkSource); -} +} \ No newline at end of file diff --git a/test/Benchmarks/Trace/SamplerBenchmarks.cs b/test/Benchmarks/Trace/SamplerBenchmarks.cs index 979680fb37f..5895351ea5d 100644 --- a/test/Benchmarks/Trace/SamplerBenchmarks.cs +++ b/test/Benchmarks/Trace/SamplerBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using BenchmarkDotNet.Attributes; @@ -112,4 +99,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return this.SamplingAction?.Invoke(samplingParameters) ?? new SamplingResult(SamplingDecision.RecordAndSample); } } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Trace/SpanCreationBenchmarks.cs b/test/Benchmarks/Trace/SpanCreationBenchmarks.cs index ae0a2e3d9b4..e0f011f7e51 100644 --- a/test/Benchmarks/Trace/SpanCreationBenchmarks.cs +++ b/test/Benchmarks/Trace/SpanCreationBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using BenchmarkDotNet.Attributes; using Benchmarks.Helper; @@ -107,4 +94,4 @@ public void GlobalCleanup() [Benchmark] public void CreateSpan_Propagate_Noop() => SpanCreationScenarios.CreateSpan_Propagate(this.noopTracer); -} +} \ No newline at end of file diff --git a/test/Benchmarks/Trace/TraceBenchmarks.cs b/test/Benchmarks/Trace/TraceBenchmarks.cs index 93024f73153..aec90c87c42 100644 --- a/test/Benchmarks/Trace/TraceBenchmarks.cs +++ b/test/Benchmarks/Trace/TraceBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using BenchmarkDotNet.Attributes; @@ -206,4 +193,4 @@ public void LegacyActivity_WildcardMatchMode() internal class DummyActivityProcessor : BaseProcessor { } -} +} \ No newline at end of file diff --git a/test/Benchmarks/Trace/TraceShimBenchmarks.cs b/test/Benchmarks/Trace/TraceShimBenchmarks.cs index 781b8c99096..1ff86f7ea09 100644 --- a/test/Benchmarks/Trace/TraceShimBenchmarks.cs +++ b/test/Benchmarks/Trace/TraceShimBenchmarks.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using BenchmarkDotNet.Attributes; @@ -98,4 +85,4 @@ public void ThreeProcessors() internal class DummyActivityProcessor : BaseProcessor { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs b/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs index 9f55ced44ca..e3edd714b1a 100644 --- a/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs +++ b/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.AotCompatibility.TestApp; @@ -27,4 +14,4 @@ } Console.WriteLine("Passed."); -return 0; +return 0; \ No newline at end of file diff --git a/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs b/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs index 2d3564f0427..546f2def52d 100644 --- a/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs +++ b/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Instrumentation; @@ -66,4 +53,4 @@ private class PayloadTypeWithDerivedType { public DerivedType Property { get; set; } = new DerivedType(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs index cbe42fba156..f99678b1430 100644 --- a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -143,4 +130,4 @@ public void ConfigureBuilderTest() private sealed class TestInstrumentation { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs index fec4069a968..ee7b6cc6362 100644 --- a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs +++ b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Logs; @@ -122,4 +109,4 @@ LoggerProviderBuilder IDeferredLoggerProviderBuilder.Configure(Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -141,4 +128,4 @@ public void ConfigureBuilderTest() private sealed class TestInstrumentation { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Metrics/TestMeterProviderBuilder.cs b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Metrics/TestMeterProviderBuilder.cs index d6f4249f238..9d6edd0a190 100644 --- a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Metrics/TestMeterProviderBuilder.cs +++ b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Metrics/TestMeterProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Metrics; @@ -141,4 +128,4 @@ MeterProviderBuilder IDeferredMeterProviderBuilder.Configure(Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Logs; @@ -128,4 +115,4 @@ public void ConfigureOpenTelemetryLoggerProvider(int numberOfCalls) Assert.Equal(numberOfCalls * 2, registrations.Count()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Trace/TestTracerProviderBuilder.cs b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Trace/TestTracerProviderBuilder.cs index 51c5bbd7d82..cc70e023e86 100644 --- a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Trace/TestTracerProviderBuilder.cs +++ b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Trace/TestTracerProviderBuilder.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Trace; @@ -157,4 +144,4 @@ TracerProviderBuilder IDeferredTracerProviderBuilder.Configure(Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -141,4 +128,4 @@ public void ConfigureBuilderTest() private sealed class TestInstrumentation { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/BaggageTests.cs b/test/OpenTelemetry.Api.Tests/BaggageTests.cs index 8ffcafde42c..2c9d5d2fa07 100644 --- a/test/OpenTelemetry.Api.Tests/BaggageTests.cs +++ b/test/OpenTelemetry.Api.Tests/BaggageTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -309,4 +296,4 @@ public void ThreadSafetyTest() Assert.Equal(101, Baggage.Current.Count); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Context/Propagation/PropagatorsTest.cs b/test/OpenTelemetry.Api.Tests/Context/Propagation/PropagatorsTest.cs index 86fe573507c..4382b65f4e3 100644 --- a/test/OpenTelemetry.Api.Tests/Context/Propagation/PropagatorsTest.cs +++ b/test/OpenTelemetry.Api.Tests/Context/Propagation/PropagatorsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -45,4 +32,4 @@ public void Dispose() Propagators.Reset(); GC.SuppressFinalize(this); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Context/RuntimeContextTest.cs b/test/OpenTelemetry.Api.Tests/Context/RuntimeContextTest.cs index 79fbccc91a1..c750e576479 100644 --- a/test/OpenTelemetry.Api.Tests/Context/RuntimeContextTest.cs +++ b/test/OpenTelemetry.Api.Tests/Context/RuntimeContextTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -134,4 +121,4 @@ public int GetValueFromContextSlot(string slotName) } #endif -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/EventSourceTest.cs b/test/OpenTelemetry.Api.Tests/EventSourceTest.cs index 242a2a5b51d..3f2828dee09 100644 --- a/test/OpenTelemetry.Api.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Api.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_OpenTelemetryApiEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(OpenTelemetryApiEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Internal/GuardTest.cs b/test/OpenTelemetry.Api.Tests/Internal/GuardTest.cs index 169dae6faf7..f07d65bbf51 100644 --- a/test/OpenTelemetry.Api.Tests/Internal/GuardTest.cs +++ b/test/OpenTelemetry.Api.Tests/Internal/GuardTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Runtime.CompilerServices; @@ -196,4 +183,4 @@ public static void BasicTest() private static string GetValue(object argument, [CallerArgumentExpression("argument")] string expr = null) => expr; } #endif -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs index 21a583810df..2120766f650 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -142,4 +129,4 @@ public void ExportTest(int numberOfItems) index++; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs index 700e68b03ef..57b66e43d34 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -138,4 +125,4 @@ public void SetActivityContextTest() Assert.Equal(default, record.SpanId); Assert.Equal(default, record.TraceFlags); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs index 969743b0ebd..95e3a267bdb 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -56,4 +43,4 @@ public void ToShortNameTest(int logRecordSeverityValue, string expectedName) Assert.Equal(expectedName, logRecordSeverity.ToShortName()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs index 68b38d25a3d..147907ff6d1 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -98,4 +85,4 @@ public override void EmitLog(in LogRecordData data, in LogRecordAttributeList at { } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs b/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs index 946020c1324..0ab7e17ab8d 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Tests; @@ -234,4 +221,4 @@ public void TryCheckFirstTagReturnsFalseForActivityWithNoTags() Assert.False(result); Assert.Null(tagValue); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs b/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs index 1df9433c9e2..ff884a73d3e 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using Xunit; using Xunit.Abstractions; @@ -392,4 +380,4 @@ private void ContainsExactly(IDictionary dict, IDictionary // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Net; using Xunit; @@ -215,4 +202,4 @@ public void ValidateSpecialCharsBaggageInjection() Assert.Single(carrier); Assert.Equal("key+1=value+1,key2=!x_x%2Cx-x%26x(x%22)%3B%3A", carrier[BaggagePropagator.BaggageHeaderName]); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/Propagation/CompositePropagatorTest.cs b/test/OpenTelemetry.Api.Tests/Trace/Propagation/CompositePropagatorTest.cs index 61800cd01bf..da38dd4d83c 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/Propagation/CompositePropagatorTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/Propagation/CompositePropagatorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -131,4 +118,4 @@ public void CompositePropagator_ActivityContext_Baggage() extractedContext = compositePropagator.Extract(default, carrier, Getter); Assert.Equal(propagationContextBoth, extractedContext); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/Propagation/TestPropagator.cs b/test/OpenTelemetry.Api.Tests/Trace/Propagation/TestPropagator.cs index 4960039fd03..3b5e022bcb1 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/Propagation/TestPropagator.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/Propagation/TestPropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -79,4 +66,4 @@ public override void Inject(PropagationContext context, T carrier, Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -106,4 +93,4 @@ public void ValidPairs(string tracestate) Assert.Equal("k1=v1,k2=v2", TraceStateUtilsNew.GetString(tracestateEntries)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/SpanAttributesTest.cs b/test/OpenTelemetry.Api.Tests/Trace/SpanAttributesTest.cs index a76c2918ca9..61f6259cb08 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/SpanAttributesTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/SpanAttributesTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -79,4 +66,4 @@ public void ValidateConstructorWithNullList() { Assert.Throws(() => new SpanAttributes(null)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs b/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs index 7f6458e64d3..0ebcca6e9ad 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -116,4 +103,4 @@ public void TestGetHashCode() var status = new Status(StatusCode.Ok); Assert.NotEqual(0, status.GetHashCode()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs b/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs index 9451b087889..09120dffeab 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -81,4 +68,4 @@ public void ParentIds() Assert.Equal(parentSpan.Context.SpanId, childSpan.ParentSpanId); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs b/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs index 3dfde198017..a9a92ce2f69 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Coyote; @@ -416,4 +403,4 @@ private sealed class TestTracerProvider : TracerProvider public int NumberOfThreads; public EventWaitHandle StartHandle = new ManualResetEvent(false); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs b/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs index d7400d3fece..fa6f29e9ea6 100644 --- a/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs +++ b/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Tests; @@ -58,4 +45,4 @@ public void VerifyConsoleActivityExporterDoesntFailWithoutActivityLinkTags() using var consoleExporter = new ConsoleActivityExporter(new ConsoleExporterOptions()); Assert.Equal(ExportResult.Success, consoleExporter.Export(new Batch(new[] { activity }, 1))); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs index 6633924ef83..132a39c5b76 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -64,4 +51,4 @@ protected override HttpContent CreateHttpContent(string exportRequest) throw new NotImplementedException(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs index c1807e8b81d..51eb3853e73 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_OpenTelemetryProtocolExporterEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(OpenTelemetryProtocolExporterEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs index 0e9b8957bd6..184f44bf818 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient; using Xunit; @@ -72,4 +59,4 @@ public void ExporterClientValidation_FlagIsNotEnabledForHttpsEndpoint() var exception = Record.Exception(() => ExporterClientValidation.EnsureUnencryptedSupportIsEnabled(options)); Assert.Null(exception); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs index 1cff7bb8290..568e1b303ac 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests; @@ -40,4 +27,4 @@ private static bool DetermineInitialFlagStatus() return false; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs index 548f38b96cc..2c5b1a38313 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if !NET6_0_OR_GREATER @@ -181,4 +168,4 @@ void RunTest(Batch batch) } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs index f24829cd598..7007a0cd6c6 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -347,4 +334,4 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData) this.outputHelper.WriteLine(message); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs index 75e0dd0e55d..e41981351ce 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using System.Diagnostics; @@ -144,4 +131,4 @@ public override Task Export(ExportTraceServiceReques } } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs index 32984ab2ed9..fbc12d8a747 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; using Xunit; @@ -246,4 +233,4 @@ public override string ToString() throw new Exception("Nope."); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs index 57e356c6964..de6baaf2f02 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -31,4 +18,4 @@ public void TryParse_Protocol_MapsToCorrectValue(string protocol, bool expectedR Assert.Equal(expectedExportProtocol, exportProtocol); Assert.Equal(expectedResult, result); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs index 798cab42667..543dfc1d2ea 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient; using Xunit; @@ -168,4 +155,4 @@ public void AppendPathIfNotPresent_TracesPath_AppendsCorrectly(string inputUri, Assert.Equal(expectedUri, resultUri.AbsoluteUri); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs index 472d3b87171..343e48b4cae 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Xunit; @@ -167,4 +154,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable(OtlpExporterOptions.TimeoutEnvVarName, null); Environment.SetEnvironmentVariable(OtlpExporterOptions.ProtocolEnvVarName, null); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs index 5e0297e1397..9b32f3ddd08 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.ObjectModel; using System.Diagnostics; @@ -1430,4 +1417,4 @@ public IDisposable OnChange(Action listener) throw new NotImplementedException(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs index bdac11c2eb1..6aa3f0eaa10 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using System.Reflection; @@ -760,4 +747,4 @@ private static IEnumerable> ToAttributes(object[] k yield return new KeyValuePair(keys[i].ToString(), values[i]); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs index 3da803458a9..e734e5aafa6 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; using OpenTelemetry.Resources; @@ -47,4 +34,4 @@ public void ToOtlpResourceTest(bool includeServiceNameInResource) Assert.Contains(otlpResource.Attributes, (kvp) => kvp.Key == ResourceSemanticConventions.AttributeServiceName && kvp.Value.ToString().Contains("unknown_service:")); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs index 3540bce76f5..dc479e3e3d7 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Google.Protobuf; using Google.Protobuf.WellKnownTypes; @@ -213,4 +200,4 @@ public GrpcRetryAttempt( } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs index 073e8ce87f6..5be8adb83dd 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Google.Protobuf.Collections; using Xunit; @@ -112,4 +99,4 @@ private static void AssertOtlpAttributeValue(object expected, OtlpCommon.AnyValu break; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs index 8663177d889..ab6d64f948b 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Google.Protobuf.Collections; @@ -753,4 +740,4 @@ public void NamedOptionsMutateSeparateInstancesTest() Assert.Equal("http://localhost/traces", tracerOptions.Endpoint.OriginalString); Assert.Equal("http://localhost/metrics", meterOptions.Endpoint.OriginalString); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs index a0563e63202..2d8f02cb690 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; @@ -193,4 +180,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT", null); Environment.SetEnvironmentVariable("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT", null); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs index b7123187f6f..d300a854945 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient; @@ -42,4 +29,4 @@ public bool Shutdown(int timeoutMilliseconds) this.ShutdownCalled = true; return true; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs index f3006cf03db..4878e0506d4 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NET6_0_OR_GREATER using System.Net.Http; @@ -44,4 +31,4 @@ protected override Task SendAsync(HttpRequestMessage reques { return Task.FromResult(this.InternalSend(request, cancellationToken)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs index a80d2cbc9d2..6e1a63926bf 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Metrics; @@ -42,4 +29,4 @@ public void TestAddPrometheusExporter_NamedOptions() Assert.Equal(1, defaultExporterOptionsConfigureOptionsInvocations); Assert.Equal(1, namedExporterOptionsConfigureOptionsInvocations); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs index 072b3b4511b..8ded7022a95 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using System.Diagnostics.Metrics; @@ -358,4 +345,4 @@ private static async Task RunPrometheusExporterMiddlewareIntegrationTest( await host.StopAsync(); } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs index 05fcbb130c6..cc1e9e2d649 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Tests; using Xunit; @@ -26,4 +13,4 @@ public void EventSourceTest_PrometheusExporterEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(PrometheusExporterEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs index 26111263798..838f61b6de1 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry.Metrics; @@ -171,4 +158,4 @@ private class Response public byte[] ViewPayload; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs index bc82596f3cf..f39afc83fb8 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -45,4 +32,4 @@ public void ParseHeader_AcceptHeaders_OtherHeadersInvalid(string header) Assert.False(result); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs index 72cffdc54db..4197e48ec18 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Metrics; @@ -42,4 +29,4 @@ public void TestAddPrometheusHttpListener_NamedOptions() Assert.Equal(1, defaultExporterOptionsConfigureOptionsInvocations); Assert.Equal(1, namedExporterOptionsConfigureOptionsInvocations); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs index e9e270dd5b4..cb40aeb352a 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using System.Net; @@ -194,4 +181,4 @@ private async Task RunPrometheusExporterHttpServerIntegrationTest(bool skipMetri provider.Dispose(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs index a699d9dfea7..110a58e5e5c 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -217,4 +204,4 @@ private static void AssertSanitizeMetricName(string name, string expected) var sanatizedName = PrometheusMetric.SanitizeMetricName(name); Assert.Equal(expected, sanatizedName); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs index ee837e516ca..604da57cd21 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using System.Text; @@ -587,4 +574,4 @@ private static int WriteMetric(byte[] buffer, int cursor, Metric metric, bool us { return PrometheusSerializer.WriteMetric(buffer, cursor, metric, PrometheusMetric.Create(metric), useOpenMetrics); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs index ab07d89c79d..4e1d23e31b5 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.Zipkin.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_ZipkinExporterEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(ZipkinExporterEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs index 157aa06aef5..9a0839068b3 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Internal; @@ -63,4 +50,4 @@ public void CheckNullValueProcessTag(string key, object value) Assert.Empty(attributeEnumerationState.Tags); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs index ce8115010e6..22548688e1b 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Exporter.Zipkin.Tests; @@ -265,4 +252,4 @@ public void ActivityStatus_Takes_precedence_Over_Status_Tags_ActivityStatusCodeI // Ensure additional Activity tags were being converted. Assert.Contains(zipkinSpan.Tags, t => t.Key == "myCustomTag" && (string)t.Value == "myCustomTagValue"); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs index 8e86b9820b0..63abde15c29 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter.Zipkin.Tests; using OpenTelemetry.Trace; @@ -192,4 +179,4 @@ public override string ToString() return this.Name; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs index 719bdc3ac29..1ee80e2d112 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics; @@ -540,4 +527,4 @@ internal static Activity CreateTestActivity( return activity; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs index ee682baf6f3..41782da2d6f 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Extensions.Hosting.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_HostingExtensionsEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(HostingExtensionsEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs index 1122f2f02d2..8fa3ea03135 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER @@ -105,4 +92,4 @@ private static async Task RunMetricsTest(Action configure, await host.StopAsync(); } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs index 43da25a08b4..c9d9f2b7454 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Logs; @@ -112,4 +99,4 @@ public Resource Detect() => ResourceBuilder.CreateEmpty().AddAttributes( ["key1"] = "value1", }).Build(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs index 66f2c11ee97..b2fc2d10cce 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using Microsoft.Extensions.Configuration; @@ -256,4 +243,4 @@ private static void AssertMetricWithLongSum(Metric metric, long expectedValue = var metricPoint = metricPoints[0]; Assert.Equal(expectedValue, metricPoint.GetSumLong()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs index 069c6c446bc..850c03f54f1 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Configuration; @@ -489,4 +476,4 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken) return Task.CompletedTask; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs b/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs index 6bb4b0de80f..3ca97a65339 100644 --- a/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs +++ b/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using OpenTelemetry.Context.Propagation; using Xunit; @@ -393,4 +381,4 @@ private void ContainsExactly(IDictionary dict, IDictionary // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_PropagatorsEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(OpenTelemetryPropagatorsEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Extensions.Propagators.Tests/JaegerPropagatorTest.cs b/test/OpenTelemetry.Extensions.Propagators.Tests/JaegerPropagatorTest.cs index 48cc3ac1341..c153261ef55 100644 --- a/test/OpenTelemetry.Extensions.Propagators.Tests/JaegerPropagatorTest.cs +++ b/test/OpenTelemetry.Extensions.Propagators.Tests/JaegerPropagatorTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using OpenTelemetry.Context.Propagation; using Xunit; @@ -229,4 +217,4 @@ public void InjectWillAddJaegerFormattedTraceToCarrier(string sampledFlag) Assert.Single(headers); Assert.Equal(expectedValue, headers[JaegerHeader]); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/AttributesExtensions.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/AttributesExtensions.cs index 3bca59f8498..53ff8955d2b 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/AttributesExtensions.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/AttributesExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Instrumentation.AspNetCore.Tests; @@ -22,4 +9,4 @@ public static object GetValue(this IEnumerable> att { return attributes.FirstOrDefault(kvp => kvp.Key == key).Value; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs index b27565a0f42..df0fbd46ff1 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text.Json; @@ -1180,4 +1167,4 @@ public override void PostProcess(HttpContext context) this.activity?.Stop(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs index fef23ae73e9..783a1a0fbab 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.AspNetCore.TestHost; @@ -64,4 +51,4 @@ void ConfigureTestServices(IServiceCollection services) Assert.True(optionsPickedFromDI); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs index 749b1b897e8..5f2379f175f 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Instrumentation.AspNetCore.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_AspNetCoreInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(AspNetCoreInstrumentationEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs index c685f0e2737..160ae3e7ebe 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.AspNetCore.Hosting; @@ -178,4 +165,4 @@ public override async Task ProcessAsync(HttpContext context) return false; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs index b5769f4cb48..bceb4fccb71 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET8_0_OR_GREATER using System.Threading.RateLimiting; @@ -429,4 +416,4 @@ private static void AssertMetricPoint( Assert.True(histogramBoundsMatchCorrectly); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs index bf5c40cbcb1..735819ed961 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -79,4 +66,4 @@ public override string ToString() return $"{this.TestApplicationScenario}: {this.Name}"; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs index c05e5b9e4d5..015c73017f4 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -116,4 +103,4 @@ static string MakeAnchorTag(TestApplicationScenario scenario, string name) return $"#{scenario.ToString().ToLower()}-{new string(chars)}"; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs index 584812f4c97..5d9a21e809a 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -43,4 +30,4 @@ public override string ToString() { return JsonSerializer.Serialize(this, JsonSerializerOptions); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs index f03b21c0405..25cc453dc22 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -151,4 +138,4 @@ private static void GetTagsFromMetricPoint(bool useLegacyConventions, MetricPoin } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs index e9a2565304c..abda44b9618 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable disable @@ -24,4 +11,4 @@ namespace RouteTests.Controllers; public class AnotherAreaController : Controller { public IActionResult Index() => this.Ok(); -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs index 99933dd34cf..5d5ec07d7f4 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable disable @@ -26,4 +13,4 @@ public class ControllerForMyAreaController : Controller public IActionResult Default() => this.Ok(); public IActionResult NonDefault() => this.Ok(); -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs index 28271f9553e..9e8e5cbe2b8 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable disable @@ -33,4 +20,4 @@ public class AttributeRouteController : ControllerBase [HttpGet("{id}/[action]")] public IActionResult GetWithActionNameInDifferentSpotInTemplate(int id) => this.Ok(); -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs index 32fc1a6223b..420567630e5 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable disable @@ -27,4 +14,4 @@ public class ConventionalRouteController : Controller public IActionResult ActionWithParameter(int id) => this.Ok(); public IActionResult ActionWithStringParameter(string id, int num) => this.Ok(); -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs index fdb652a0069..938ea922383 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -148,4 +135,4 @@ public PageActionDescriptorInfo(string relativePath, string viewEnginePath) [JsonPropertyName("ViewEnginePath")] public string PageActionDescriptorViewEnginePath { get; set; } = string.Empty; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs index 7ca0998d0e8..9eb4f81c429 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -120,4 +107,4 @@ private void Dispose(bool disposing) this.allSourcesSubscription?.Dispose(); this.allSourcesSubscription = null; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs index b2fc1cdfba3..3847fee78e4 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -167,4 +154,4 @@ private static WebApplication CreateRazorPagesApplication() return app; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs index 411a53e8742..5724282782c 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Instrumentation.GrpcNetClient.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_GrpcInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(GrpcInstrumentationEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs index bd3f65ff6e6..ba83836259a 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using Microsoft.AspNetCore.Builder; @@ -100,4 +87,4 @@ public void Configure(IApplicationBuilder app) } } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs index eb80d0c804f..f67ca94f82b 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using OpenTelemetry.Instrumentation.GrpcNetClient; using OpenTelemetry.Trace; @@ -75,4 +63,4 @@ public void GrpcTagHelper_GetGrpcStatusCodeFromEmptyActivity() Assert.Equal(-1, status); Assert.Null(activity.GetTagValue(SemanticConventions.AttributeRpcGrpcStatusCode)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs index 66ad69a281c..a115aad1ed6 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -86,4 +73,4 @@ private static async Task CreateResponseContentCore(TR streamContent.Headers.ContentType = new MediaTypeHeaderValue("application/grpc"); return streamContent; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs index 9cc409885fb..66f47cc3890 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Buffers.Binary; using System.Diagnostics; @@ -86,4 +73,4 @@ private class ResponseTrailers : HttpHeaders { } #endif -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs index e22fb6d7e17..1531156560b 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -51,4 +38,4 @@ protected override Task SendAsync(HttpRequestMessage reques { return this.sendAsync(request, cancellationToken); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs index 8a4f00bdd8e..9066f4de67e 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -57,4 +44,4 @@ private class ResponseTrailers : HttpHeaders public static readonly ResponseTrailers Empty = new ResponseTrailers(); } #endif -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs index 3a7c513aa3b..143317f952a 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Net; @@ -649,4 +636,4 @@ private static void ValidateGrpcActivity(Activity activityToValidate) Assert.Equal(GrpcClientDiagnosticListener.Version.ToString(), activityToValidate.Source.Version); Assert.Equal(ActivityKind.Client, activityToValidate.Kind); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs index e874cfe3167..2588726c737 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NET6_0_OR_GREATER using System.Diagnostics; @@ -217,4 +204,4 @@ private static void WaitForExporterToReceiveItems(List itemsReceived, TimeSpan.FromSeconds(1))); } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs index 70c6ff5636e..4785d6879a2 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using Greet; using Grpc.Core; using Microsoft.Extensions.Logging; @@ -48,4 +36,4 @@ public override async Task SayHellos(HelloRequest request, IServerStreamWriter // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Instrumentation.Http.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_HttpInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(HttpInstrumentationEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs index 240abb1180a..207e7ad18fe 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NETFRAMEWORK @@ -752,4 +739,4 @@ public void Dispose() Activity.Current = null; GC.SuppressFinalize(this); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs index b60f4821887..86e7f23cd7f 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; #if NETFRAMEWORK @@ -507,4 +494,4 @@ private static async Task CheckEnrichment(Sampler sampler, bool enrichExpected, Assert.False(enrichWithHttpResponseMessageCalled); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpTestData.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpTestData.cs index 705c7c9f876..0898d69333c 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpTestData.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpTestData.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Reflection; using System.Text.Json; @@ -74,4 +61,4 @@ public class HttpOutTestCase public Dictionary SpanAttributes { get; set; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs index e09cef101b1..58ef43e5108 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Collections.Concurrent; @@ -886,4 +873,4 @@ private void Record(string eventName, Activity activity) } } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs index 060b264f5f1..be4dcc3d53e 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Net; @@ -373,4 +360,4 @@ public async Task ReportsExceptionEventOnErrorResponse() Assert.DoesNotContain(exportedItems[0].Events, evt => evt.Name.Equals("exception")); #endif } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs index a9ed60c07e6..d75ec949334 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Net; @@ -196,4 +183,4 @@ private static void ValidateHttpWebRequestActivity(Activity activityToValidate) { Assert.Equal(ActivityKind.Client, activityToValidate.Kind); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs index 7d3b28b3b75..151c97e6469 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Net.Http; @@ -50,4 +37,4 @@ protected override async Task SendAsync( return response; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs index 994e403267d..86e0dba207e 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Instrumentation.SqlClient.Implementation; using OpenTelemetry.Tests; @@ -27,4 +14,4 @@ public void EventSourceTest_SqlClientInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(SqlClientInstrumentationEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs index 5219f5d1218..207c85a8df0 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Configuration; @@ -209,4 +196,4 @@ public void SqlClientInstrumentationOptions_EnableConnectionLevelAttributes_Dupe Assert.Equal(expectedInstanceName, activity.GetTagValue(SemanticConventions.AttributeDbMsSqlInstanceName)); Assert.Equal(expectedPort, activity.GetTagValue(SemanticConventions.AttributeNetPeerPort)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs index 3e4b2ee97bd..a6e73483fc7 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Data; using System.Diagnostics; @@ -127,4 +114,4 @@ private string GetConnectionString() throw new InvalidOperationException($"Container type ${this.databaseContainer.GetType().Name} not supported."); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs index 7f3978429c1..b4a7393520b 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Data; using System.Diagnostics; @@ -476,4 +463,4 @@ public void Dispose() this.listener.Dispose(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs index f64dc359b92..3a553e17c32 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if NETFRAMEWORK using System.Data; @@ -381,4 +368,4 @@ public void WriteUnknownEventWithNullPayload() } } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs b/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs index 05d8bd919d5..9e2efd197c8 100644 --- a/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs +++ b/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -155,4 +142,4 @@ public class Data [JsonPropertyName("arguments")] public Data[] Arguments { get; set; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs index 3f0883e701a..1eda433e9f8 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Context.Propagation; @@ -144,4 +131,4 @@ public static TracerProviderBuilder When( return builder; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs index 9c67148989f..3164ee02f89 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -45,4 +32,4 @@ public void Dispose() this.listener.Dispose(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs index 1ae49d32318..79c696b6dcc 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Trace; @@ -79,4 +66,4 @@ public void Activate() spanShim.Finish(); Assert.NotEqual(default, spanShim.Span.Activity.Duration); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs index 6ae50d6d571..dc2ec91bcf7 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Trace; @@ -338,4 +325,4 @@ public void Start_UnderAspNetCoreInstrumentation() Assert.Same(parentSpan, Activity.Current); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs index 9a3051667df..13b29ccf504 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Trace; @@ -50,4 +37,4 @@ internal static SpanContextShim GetSpanContextShim() { return new SpanContextShim(new SpanContext(ActivityTraceId.CreateRandom(), ActivitySpanId.CreateRandom(), ActivityTraceFlags.None)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs index 62b1805fe7b..7b52ce3c2ac 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; using OpenTracing.Tag; @@ -328,4 +315,4 @@ public void SetTagIntOrStringTagValue() Assert.Equal("bar", shim.Span.Activity.TagObjects.Last().Key); Assert.Equal("baz", shim.Span.Activity.TagObjects.Last().Value); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs index b16e3a50b7a..2a1cc153d0f 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTracing.Propagation; @@ -20,4 +7,4 @@ namespace OpenTelemetry.Shims.OpenTracing.Tests; internal class TestFormatTextMap : IFormat { -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs index f2e4e54f4b5..b81d3fa7df7 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTracing; using OpenTracing.Tag; @@ -107,4 +94,4 @@ public ISpan SetTag(StringTag tag, string value) { throw new NotImplementedException(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs index 097a54aab44..f8ea14d07a9 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTracing; @@ -28,4 +15,4 @@ public IEnumerable> GetBaggageItems() { throw new NotImplementedException(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs index f72f78b5f44..3ab913959d0 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using OpenTracing.Propagation; @@ -44,4 +31,4 @@ IEnumerator IEnumerable.GetEnumerator() { throw new NotImplementedException(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs index ec9cabfa41f..c381af25953 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using System.Diagnostics; @@ -190,4 +177,4 @@ public void Set(MemoryStream stream) stream.CopyTo(this.carrierStream, (int)this.carrierStream.Length); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs b/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs index 616252da3e5..be8facb1799 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Logs; @@ -23,4 +10,4 @@ internal class DummyProcessor : BaseProcessor public override void OnEnd(LogRecord record) { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs b/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs index 37fdcfcc243..b95324ef776 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Tests.Stress; @@ -117,4 +104,4 @@ internal class Payload public int Field097 = 97; public int Field098 = 98; public int Field099 = 99; -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress.Logs/Program.cs b/test/OpenTelemetry.Tests.Stress.Logs/Program.cs index 8efc9695a88..c29291df6e7 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; using Microsoft.Extensions.Logging; @@ -49,4 +36,4 @@ protected static void Run() exception: null, formatter: (state, ex) => string.Empty); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs b/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs index 6147c2fb247..c7fd7c638d4 100644 --- a/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using System.Runtime.CompilerServices; @@ -76,4 +63,4 @@ protected static void Run() new("DimName2", DimensionValues[random.Next(0, ArraySize)]), new("DimName3", DimensionValues[random.Next(0, ArraySize)])); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress.Traces/Program.cs b/test/OpenTelemetry.Tests.Stress.Traces/Program.cs index 2d4087b74cb..9e62d6cee9a 100644 --- a/test/OpenTelemetry.Tests.Stress.Traces/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Traces/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -42,4 +29,4 @@ protected static void Run() activity?.SetTag("foo", "value"); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress/Meat.cs b/test/OpenTelemetry.Tests.Stress/Meat.cs index 287090db0b3..9019cddfe1c 100644 --- a/test/OpenTelemetry.Tests.Stress/Meat.cs +++ b/test/OpenTelemetry.Tests.Stress/Meat.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.CompilerServices; @@ -29,4 +16,4 @@ public static void Main() protected static void Run() { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests.Stress/Skeleton.cs b/test/OpenTelemetry.Tests.Stress/Skeleton.cs index 6c80bd0fe36..12c15000d33 100644 --- a/test/OpenTelemetry.Tests.Stress/Skeleton.cs +++ b/test/OpenTelemetry.Tests.Stress/Skeleton.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -182,4 +169,4 @@ private static ulong GetCpuCycles() return cycles; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/BaseExporterTest.cs b/test/OpenTelemetry.Tests/BaseExporterTest.cs index 95933efd31d..83ac4a6c4bd 100644 --- a/test/OpenTelemetry.Tests/BaseExporterTest.cs +++ b/test/OpenTelemetry.Tests/BaseExporterTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -56,4 +43,4 @@ public void Verify_Shutdown_HandlesException() }; Assert.False(exceptionTestExporter.Shutdown()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/BaseProcessorTest.cs b/test/OpenTelemetry.Tests/BaseProcessorTest.cs index f5db882b05a..1bd3fbdd19d 100644 --- a/test/OpenTelemetry.Tests/BaseProcessorTest.cs +++ b/test/OpenTelemetry.Tests/BaseProcessorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -63,4 +50,4 @@ public void NoOp() testProcessor.OnStart(new object()); testProcessor.OnEnd(new object()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs b/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs index 65eb44c8145..a609c455c44 100644 --- a/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs +++ b/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Coyote; using Microsoft.Coyote.SystematicTesting; @@ -67,4 +54,4 @@ public void MultithreadedLongHistogramTestConcurrencyTest() Assert.Equal(0, test.TestReport.NumOfFoundBugs); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/EventSourceTest.cs b/test/OpenTelemetry.Tests/EventSourceTest.cs index d11f3d2eeb9..d1bee7ddd8d 100644 --- a/test/OpenTelemetry.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Tests/EventSourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using Xunit; @@ -26,4 +13,4 @@ public void EventSourceTest_OpenTelemetrySdkEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(OpenTelemetrySdkEventSource.Log); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs b/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs index 0f6f43c684f..4fc4b91f9e0 100644 --- a/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs +++ b/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -49,4 +36,4 @@ public void SetActivityKind(ActivityKind activityKind) ActivityInstrumentationHelper.SetKindProperty(activity, activityKind); Assert.Equal(activityKind, activity.Kind); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs b/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs index d31c489bbc5..6a9c4bf1137 100644 --- a/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs +++ b/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -165,4 +152,4 @@ private class PayloadTypeWithDerivedType { public DerivedType Property { get; set; } = new DerivedType(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs b/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs index d8307c1dab9..89a9c89289d 100644 --- a/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs +++ b/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -169,4 +156,4 @@ public async Task CpuPressureTest() await Task.WhenAll(tasks); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs b/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs index 35725d5bdb3..490be2024af 100644 --- a/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs +++ b/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -104,4 +91,4 @@ public void PositiveModulo64(long value, long divisor, long expectedRemainder) { Assert.Equal(expectedRemainder, MathHelper.PositiveModulo64(value: value, divisor: divisor)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs b/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs index 285e41aca3f..3d059f72906 100644 --- a/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs +++ b/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -149,4 +136,4 @@ private static PeriodicExportingMetricReader CreatePeriodicExportingMetricReader var dummyMetricExporter = new InMemoryExporter(Array.Empty()); return PeriodicExportingMetricReaderHelper.CreatePeriodicExportingMetricReader(dummyMetricExporter, options); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/PooledListTest.cs b/test/OpenTelemetry.Tests/Internal/PooledListTest.cs index d363ac02190..7d888d69d58 100644 --- a/test/OpenTelemetry.Tests/Internal/PooledListTest.cs +++ b/test/OpenTelemetry.Tests/Internal/PooledListTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using System.Reflection; @@ -108,4 +95,4 @@ public void Verify_Enumerator() ienumerator.Reset(); Assert.Equal(default, enumerator.Current); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs index 4490dcc1d2d..27868e360f4 100644 --- a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs +++ b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -85,4 +72,4 @@ public void SelfDiagnosticsConfigParser_TryParseLogLevel() Assert.True(SelfDiagnosticsConfigParser.TryParseLogLevel(configJson, out string logLevelString)); Assert.Equal("Error", logLevelString); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs index 2a8abdc2225..c393da2e144 100644 --- a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs +++ b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -134,4 +121,4 @@ private static void CleanupConfigFile() // ignore any exceptions while removing files } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs index 706d81448a3..7614f100436 100644 --- a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs +++ b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using System.IO.MemoryMappedFiles; @@ -290,4 +277,4 @@ private static void AssertBufferOutput(byte[] expected, byte[] buffer, int start Assert.Equal(expected[i], buffer[j]); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs b/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs index 5207e78814a..b3bd7ece166 100644 --- a/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs +++ b/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -47,4 +34,4 @@ public void Verify_ContainsWildcard(string pattern, bool expected) { Assert.Equal(expected, WildcardHelper.ContainsWildcard(pattern)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs b/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs index 0ea48aa2092..68da5f57850 100644 --- a/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs +++ b/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -113,4 +100,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable(BatchExportLogRecordProcessorOptions.MaxQueueSizeEnvVarKey, null); Environment.SetEnvironmentVariable(BatchExportLogRecordProcessorOptions.ScheduledDelayEnvVarKey, null); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs b/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs index 40592260a9a..7b5a7b30dd1 100644 --- a/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs +++ b/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if !NETFRAMEWORK using Microsoft.Extensions.Logging; @@ -107,4 +94,4 @@ public void StateBufferingTest() }); } } -#endif +#endif \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs b/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs index 8d90505ffad..dd10bd5cd8a 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -271,4 +258,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs b/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs index e901e2738f5..2db3f33cd7b 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections; using System.Diagnostics; @@ -1172,4 +1159,4 @@ public override void OnEnd(LogRecord data) } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs b/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs index 0946cebb65f..0fdcb67a4b6 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -85,4 +72,4 @@ public void ClearTests() Assert.Null(logRecord1.AttributeStorage); Assert.Null(logRecord1.ScopeStorage); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs index 96b81075a73..8507251debc 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Logging; using OpenTelemetry.Exporter; @@ -75,4 +62,4 @@ private static void VerifyResourceBuilder( // Verify assert.Invoke(resource); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs index d97cdc6c638..5f5b2019e6f 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -225,4 +212,4 @@ public override LoggerProviderBuilder AddInstrumentation(Func< throw new NotImplementedException(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs index 52e8ddf7065..b42aa8a81f9 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -109,4 +96,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs index 3f4bd5c8e95..9a91a74f107 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -180,4 +167,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs index a097f11b05f..544b7bc636b 100644 --- a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs +++ b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -84,4 +71,4 @@ public void VerifyOptionsCannotBeChangedAfterInit(bool initialValue) Assert.Equal(initialValue, provider.Options.IncludeScopes); Assert.Equal(initialValue, provider.Options.ParseStateValues); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs index 896ceae0776..8a6f3e4ef0a 100644 --- a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -282,4 +269,4 @@ public void VerifyExceptionIsThrownWhenImplementationFactoryIsNull() private class TestLogProcessor : BaseProcessor { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs index f3a171df6a9..dc6ebe84810 100644 --- a/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using Xunit; @@ -560,4 +547,4 @@ public AggregatorTestsWithBothReclaimAndOverflowAttributes() : base(emitOverflowAttribute: true, shouldReclaimUnusedMetricPoints: true) { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs index 04c2f020a83..1d681676ffc 100644 --- a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Tests; using Xunit; @@ -244,4 +231,4 @@ private void DisplayMarginOfError(bool displayDebugInfo, int scale, int index) var marginOfError = lowerBoundDelta / lowerBound; this.output.WriteLine($"{scale},{index},{unusedIndex},{lowerBound},{roundTrip},{preciseLowerBound},{lowerBoundDelta},{marginOfError},{increments}"); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs index 2d663d81984..23bac6fa1da 100644 --- a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs +++ b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Tests; using Xunit; @@ -577,4 +564,4 @@ are mapped to an index off by one. The range of these incorrectly mapped this.output.WriteLine($"Average number of values near a bucket boundary that are off by one: {numValuesOffByOne.Average()}"); this.output.WriteLine($"Average range of values near a bucket boundary that are off by one: {diffs.Average()}"); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs b/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs index 7c57cb4da6a..0da994e8436 100644 --- a/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs +++ b/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -411,4 +398,4 @@ public void ScaleDownCapacity4() Assert.Equal(12, buckets[buckets.Offset + 1]); Assert.Equal(16, buckets[buckets.Offset + 2]); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs b/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs index 6fe25cbd3ff..c6edde60cb6 100644 --- a/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; @@ -64,4 +51,4 @@ public void InMemoryExporterShouldDeepCopyMetricPoints() // MetricPoint.LongValue for the first exported metric should still be 10 Assert.Equal(10, metric1.MetricPoints[0].GetSumLong()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs b/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs index e64cc4bcc09..76898c5f735 100644 --- a/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs +++ b/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics.Tests; @@ -32,4 +19,4 @@ public enum KnownHistogramBuckets /// Buckets for up to 300 seconds. /// DefaultLongSeconds, -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs b/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs index b256ef1d041..af909f99305 100644 --- a/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry.Tests; @@ -56,4 +43,4 @@ public void ExportOnlyWhenPointChanged(MetricReaderTemporalityPreference tempora Assert.Empty(exportedItems); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs index 29bd57c667e..f52c8ff58b1 100644 --- a/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -404,4 +391,4 @@ public override MeterProviderBuilder AddMeter(params string[] names) throw new NotImplementedException(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs b/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs index d94aa923ec3..2cb5e381af1 100644 --- a/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs +++ b/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry.Internal; @@ -117,4 +104,4 @@ void RunTest() } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs b/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs index 0db0985e2ca..2f1f1e5782f 100644 --- a/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Exporter; using Xunit; @@ -40,4 +27,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs index 2f077636c08..d7ed742fa58 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -1832,4 +1819,4 @@ public MetricApiTestWithBothOverflowAndReclaimAttributes(ITestOutputHelper outpu : base(output, emitOverflowAttribute: true, shouldReclaimUnusedMetricPoints: true) { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs index 6529b4ec2c6..f83100efc96 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Diagnostics.Metrics; @@ -210,4 +197,4 @@ private static void ValidateExemplars(Exemplar[] exemplars, DateTimeOffset start } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs index f2394cf6fe6..158c2591400 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -98,4 +85,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs index 3160cfac680..b3fc01272ae 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using System.Reflection; @@ -484,4 +471,4 @@ public MetricOverflowAttributeTestsWithReclaimAttribute() : base(true) { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs index ebaed455157..c6c6d216ed1 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics.Metrics; @@ -367,4 +354,4 @@ public MetricPointReclaimTestsWithEmitOverflowAttribute() : base(emitOverflowAttribute: true) { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs index 0c85f66a0af..64fa6536cf1 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ; +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry.Tests; @@ -94,4 +81,4 @@ public void VerifyHistogramBucketsCopy() Assert.Equal(copy.SnapshotBucketCounts, histogramBuckets.SnapshotBucketCounts); Assert.Equal(copy.SnapshotSum, histogramBuckets.SnapshotSum); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs index 9a22f7b6795..ef2982611a6 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using Microsoft.Extensions.Configuration; @@ -338,4 +325,4 @@ public MetricSnapshotTestsWithBothAttributes() : base(emitOverflowAttribute: true, shouldReclaimUnusedMetricPoints: true) { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs b/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs index 8c5721f96ba..13679edcc95 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Metrics.Tests; @@ -69,4 +56,4 @@ public static IEnumerable InvalidHistogramMinMax new object[] { new double[] { 1 }, new ExplicitBucketHistogramConfiguration() { Boundaries = new double[] { 10, 20 }, RecordMinMax = false } }, new object[] { new double[] { 1 }, new Base2ExponentialBucketHistogramConfiguration() { RecordMinMax = false } }, }; -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs index df8d4ecac73..00a3a2bfff1 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #if BUILDING_HOSTING_TESTS using System.Diagnostics; @@ -310,4 +297,4 @@ public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask; } #endif -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs index 049c972fd90..aa35b1618ca 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using OpenTelemetry.Internal; @@ -1249,4 +1236,4 @@ public void ViewConflict_TwoInstruments_ConflictAvoidedBecauseSecondInstrumentIs Assert.Equal("othername", exportedItems[0].Name); Assert.Equal(10, GetLongSum(metric1)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs b/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs index 4c3b4da4f9e..49319c90fb9 100644 --- a/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Metrics; using Microsoft.Extensions.DependencyInjection; @@ -230,4 +217,4 @@ private static void AssertLongSumValueForMetric(Metric metric, long value) Assert.Equal(value, metricPointForFirstExport.GetGaugeLastValueLong()); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs b/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs index 23c12e1f65a..671c18f85f1 100644 --- a/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs +++ b/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Xunit; @@ -99,4 +86,4 @@ public void OtelEnvResource_UsingIConfiguration() Assert.Contains(new KeyValuePair("Key1", "Val1"), resource.Attributes); Assert.Contains(new KeyValuePair("Key2", "Val2"), resource.Attributes); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs b/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs index 304a4ef2662..212f5913bba 100644 --- a/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs +++ b/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Xunit; @@ -84,4 +71,4 @@ public void OtelServiceNameEnvVar_UsingIConfiguration() Assert.NotEqual(Resource.Empty, resource); Assert.Contains(new KeyValuePair(ResourceSemanticConventions.AttributeServiceName, "my-service"), resource.Attributes); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs b/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs index 2549fbe5044..05c76fac36b 100644 --- a/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs +++ b/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -97,4 +84,4 @@ public void ClearTest() Assert.Single(resource.Attributes); Assert.Contains(new KeyValuePair(ResourceSemanticConventions.AttributeServiceName, "my-service"), resource.Attributes); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Resources/ResourceTest.cs b/test/OpenTelemetry.Tests/Resources/ResourceTest.cs index 22e37d00e55..7fd14649537 100644 --- a/test/OpenTelemetry.Tests/Resources/ResourceTest.cs +++ b/test/OpenTelemetry.Tests/Resources/ResourceTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.DependencyInjection; using Xunit; @@ -628,4 +615,4 @@ private sealed class NoopResourceDetector : IResourceDetector { public Resource Detect() => Resource.Empty; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/SdkTests.cs b/test/OpenTelemetry.Tests/SdkTests.cs index 2a4195682e1..5064b2c5653 100644 --- a/test/OpenTelemetry.Tests/SdkTests.cs +++ b/test/OpenTelemetry.Tests/SdkTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -38,4 +25,4 @@ public void ParseAssemblyInformationalVersionTests(string? informationalVersion, Assert.Equal(expectedVersion, actualVersion); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs b/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs index e22904fd126..6784e895ee3 100644 --- a/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs +++ b/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Context.Propagation; @@ -61,4 +48,4 @@ public override void Inject(PropagationContext context, T carrier, Action // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Tests; @@ -30,4 +17,4 @@ internal sealed class DelegatingExporter : BaseExporter protected override bool OnForceFlush(int timeoutMilliseconds) => this.OnForceFlushFunc(timeoutMilliseconds); protected override bool OnShutdown(int timeoutMilliseconds) => this.OnShutdownFunc(timeoutMilliseconds); -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs b/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs index e5baf02b644..f48deaf788e 100644 --- a/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs +++ b/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace OpenTelemetry.Tests; @@ -26,4 +13,4 @@ public class DelegatingProcessor : BaseProcessor protected override bool OnForceFlush(int timeoutMilliseconds) => this.OnForceFlushFunc(timeoutMilliseconds); protected override bool OnShutdown(int timeoutMilliseconds) => this.OnShutdownFunc(timeoutMilliseconds); -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs b/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs index fd99e0c4499..bc6cf1e13c7 100644 --- a/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs +++ b/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; @@ -83,4 +70,4 @@ public enum DockerPlatform /// Windows, } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs b/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs index 6b8ebb28d32..2ca2b4c70d8 100644 --- a/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs +++ b/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; using System.Globalization; @@ -142,4 +129,4 @@ private static IEnumerable GetEventMethods(EventSource eventSource) MethodInfo[] methods = eventSource.GetType().GetMethods(); return methods.Where(m => m.GetCustomAttributes(typeof(EventAttribute), false).Any()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs b/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs index 261416934f4..65e3f5d633d 100644 --- a/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs +++ b/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Xunit; @@ -89,4 +76,4 @@ public void VerifyGetSemanticConventionOptIn_UsingIConfiguration(string input, s var expected = Enum.Parse(typeof(HttpSemanticConvention), expectedValue); Assert.Equal(expected, GetSemanticConventionOptIn(configuration)); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs b/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs index 8ac12403047..c9e1bd8f1ab 100644 --- a/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs +++ b/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Runtime.InteropServices; @@ -99,4 +86,4 @@ public override string ToString() return chars.ToString(); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs b/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs index 0799387e562..3b36cdee06f 100644 --- a/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs +++ b/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Collections.Concurrent; using System.Diagnostics.Tracing; @@ -32,4 +19,4 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData) { this.Events.Enqueue(eventData); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/MathHelper.cs b/test/OpenTelemetry.Tests/Shared/MathHelper.cs index 45bd5b5206d..54c5cf5322c 100644 --- a/test/OpenTelemetry.Tests/Shared/MathHelper.cs +++ b/test/OpenTelemetry.Tests/Shared/MathHelper.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #pragma warning disable SA1119 // Statement should not use unnecessary parenthesis @@ -81,4 +68,4 @@ public static double BitDecrement(double x) return BitConverter.Int64BitsToDouble(bits); #endif } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs b/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs index 655cd2c89cb..83cc9a5d13f 100644 --- a/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs +++ b/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; @@ -24,4 +11,4 @@ public override SamplingResult ShouldSample(in SamplingParameters param) { return new SamplingResult(SamplingDecision.RecordOnly); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs index ff87db62e00..6a98da7dd2f 100644 --- a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs +++ b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -39,4 +26,4 @@ public static string GetEnvironmentVariable(string environmentVariableName) return environmentVariableValue; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs index 022b9bf8efe..a80ee07963e 100644 --- a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs +++ b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using Xunit; namespace OpenTelemetry.Tests; @@ -38,4 +26,4 @@ public static string GetEnvironmentVariable(string environmentVariableName) return environmentVariableValue; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs b/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs index 7c21f657fc6..e1520ca470e 100644 --- a/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs +++ b/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using Xunit; @@ -150,4 +137,4 @@ private static void VerifySerialization(Array data) Assert.Equal(reflectionBasedResult, rawResult); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs b/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs index 377586f3c8e..ad59f41ac7f 100644 --- a/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs +++ b/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -31,4 +18,4 @@ protected override void OnExport(Activity data) { this.ExportedItems.Add(data); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs b/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs index 5939a00fb60..e586453aec6 100644 --- a/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs +++ b/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; @@ -65,4 +52,4 @@ protected override void Dispose(bool disposing) { this.DisposedCalled = true; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/TestEventListener.cs b/test/OpenTelemetry.Tests/Shared/TestEventListener.cs index 5b42600fafb..285542b059e 100644 --- a/test/OpenTelemetry.Tests/Shared/TestEventListener.cs +++ b/test/OpenTelemetry.Tests/Shared/TestEventListener.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.Tracing; @@ -97,4 +84,4 @@ protected override void OnEventSourceCreated(EventSource eventSource) Action callback = this.OnOnEventSourceCreated; callback?.Invoke(eventSource); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs b/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs index 7c69b4a455e..361dc5b3444 100644 --- a/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs +++ b/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Net; namespace OpenTelemetry.Tests; @@ -113,4 +101,4 @@ public void Dispose() } } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/TestSampler.cs b/test/OpenTelemetry.Tests/Shared/TestSampler.cs index fa38b2c7ad6..323836277f1 100644 --- a/test/OpenTelemetry.Tests/Shared/TestSampler.cs +++ b/test/OpenTelemetry.Tests/Shared/TestSampler.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Trace; @@ -29,4 +16,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame this.LatestSamplingParameters = samplingParameters; return this.SamplingAction?.Invoke(samplingParameters) ?? new SamplingResult(SamplingDecision.RecordAndSample); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Shared/Utils.cs b/test/OpenTelemetry.Tests/Shared/Utils.cs index 77e7be1cdb7..3a7ceb8b7f9 100644 --- a/test/OpenTelemetry.Tests/Shared/Utils.cs +++ b/test/OpenTelemetry.Tests/Shared/Utils.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Runtime.CompilerServices; @@ -31,4 +18,4 @@ public static string GetCurrentMethodName() return $"{method.DeclaringType!.FullName}.{method.Name}"; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs b/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs index 7be34aca883..2a642a7c595 100644 --- a/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs +++ b/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -54,4 +41,4 @@ public TestSimpleExportProcessor(BaseExporter exporter) { } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs b/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs index 6c839b4f061..22d21c0f5b2 100644 --- a/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs +++ b/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -111,4 +98,4 @@ public void IncrementIfTriggeredOnlyWorksInReferenceCountingMode() Assert.Equal(0, SuppressInstrumentationScope.DecrementIfTriggered()); Assert.False(Sdk.SuppressInstrumentation); // Instrumentation is not suppressed anymore } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs b/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs index f8e4170fdcf..1dda6d8b648 100644 --- a/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs +++ b/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Internal; @@ -32,4 +19,4 @@ public override bool TryGetLogStream(int byteCount, [NotNullWhen(true)] out Stre availableByteCount = 0; return true; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs b/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs index 09b1ce66c81..115e7183e3b 100644 --- a/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs +++ b/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Xunit; @@ -38,4 +25,4 @@ public static void AssertAreSame( Assert.Contains(attr, expectedKeyValuePairs); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs index f16322d6eb6..d9736380f2f 100644 --- a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs +++ b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.Extensions.Configuration; using Xunit; @@ -127,4 +114,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable(BatchExportActivityProcessorOptions.MaxQueueSizeEnvVarKey, null); Environment.SetEnvironmentVariable(BatchExportActivityProcessorOptions.ScheduledDelayEnvVarKey, null); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs index 5b28410dec2..429383188ec 100644 --- a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Exporter; @@ -210,4 +197,4 @@ private class FailureExporter : BaseExporter { public override ExportResult Export(in Batch batch) => ExportResult.Failure; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/BatchTest.cs b/test/OpenTelemetry.Tests/Trace/BatchTest.cs index 2d4c8c1e810..d7ae1812583 100644 --- a/test/OpenTelemetry.Tests/Trace/BatchTest.cs +++ b/test/OpenTelemetry.Tests/Trace/BatchTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using OpenTelemetry.Internal; using Xunit; @@ -171,4 +158,4 @@ private static void ValidateEnumerator(Batch.Enumerator enumerator, stri Assert.Equal(expected, enumerator.Current); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs b/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs index dd528c93aed..68578f5734b 100644 --- a/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs +++ b/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Tests; @@ -122,4 +109,4 @@ public void CompositeActivityProcessor_ForwardsParentProvider() private sealed class TestProvider : TracerProvider { } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs b/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs index 2897ddb3758..0337205c958 100644 --- a/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs +++ b/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -49,4 +36,4 @@ public void Dispose() Activity.Current = null; GC.SuppressFinalize(this); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs index 5f810b2cc37..f0061f34ae5 100644 --- a/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Tests; @@ -147,4 +134,4 @@ private static object GetTagValue(Activity activity, string tagName) return null; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs index 1c34aece9f6..619a4675d4f 100644 --- a/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Exporter; @@ -91,4 +78,4 @@ public void ExportProcessorExportsActivityMarkedAsRecordAndSample() Assert.Single(processor.ExportedItems); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/LinkTest.cs b/test/OpenTelemetry.Tests/Trace/LinkTest.cs index 5928aecb0bb..d81e74133e5 100644 --- a/test/OpenTelemetry.Tests/Trace/LinkTest.cs +++ b/test/OpenTelemetry.Tests/Trace/LinkTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using Xunit; @@ -126,4 +114,4 @@ public void Dispose() Activity.Current = null; GC.SuppressFinalize(this); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs b/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs index e7660a7b5bc..402fa36507f 100644 --- a/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs +++ b/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Tests; @@ -148,4 +135,4 @@ private static SamplingParameters MakeTestParameters(bool parentIsRemote, bool p name: "Span", kind: ActivityKind.Client); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs b/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs index f7dae35547f..53c54ee1018 100644 --- a/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using Xunit; @@ -329,4 +317,4 @@ private static string CallTraceContextPropagator(string[] tracestate) var ctx = f.Extract(default, headers, ArrayGetter); return ctx.ActivityContext.TraceState; } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/SamplersTest.cs b/test/OpenTelemetry.Tests/Trace/SamplersTest.cs index 18165c866f1..b4b985db7c1 100644 --- a/test/OpenTelemetry.Tests/Trace/SamplersTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SamplersTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using OpenTelemetry.Tests; using Xunit; @@ -277,4 +265,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame throw new InvalidOperationException("ThrowingSampler"); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs b/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs index ff54cf164ae..55799b37116 100644 --- a/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using Xunit; namespace OpenTelemetry.Trace.Tests; @@ -127,4 +115,4 @@ public void Verify_GetHashCode(SamplingDecision decision) Assert.NotEqual(samplingResult1.GetHashCode(), samplingResult2.GetHashCode()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs index 8994d2ca127..94441566985 100644 --- a/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Exporter; @@ -122,4 +109,4 @@ public void CheckExportForRecordingButNotSampledActivity() processor.OnEnd(activity); Assert.Empty(exportedItems); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs b/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs index cd46c7618d4..e9010e6f5dd 100644 --- a/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Xunit; @@ -205,4 +192,4 @@ public void TestGetHashCode() Assert.NotEqual(0, context1.GetHashCode()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs b/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs index 4b443281248..42ce13b450c 100644 --- a/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using System.Diagnostics; using Xunit; @@ -101,4 +89,4 @@ public void GetDescription() var expectedDescription = "TraceIdRatioBasedSampler{0.500000}"; Assert.Equal(expectedDescription, new TraceIdRatioBasedSampler(0.5).Description); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs index d895d5cb386..4e5ae54e473 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 #nullable enable @@ -80,4 +67,4 @@ public void AddInstrumentationViaProtectedMethod(string? name, string? version, this.AddInstrumentation(name!, version!, factory!); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs index 5d0d7d4918d..7cb5e8ee942 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.Extensions.Configuration; @@ -537,4 +524,4 @@ public override TracerProviderBuilder AddSource(params string[] names) throw new NotImplementedException(); } } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs index e460136f855..5aff7de585a 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Tests; @@ -66,4 +53,4 @@ public void Verify_Shutdown_HandlesException() Assert.False(tracerProvider.Shutdown()); } -} +} \ No newline at end of file diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs index 982606bb1f9..b874430c879 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using OpenTelemetry.Instrumentation; @@ -1277,4 +1264,4 @@ public void Dispose() this.IsDisposed = true; } } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/ActivityMiddleware.cs b/test/TestApp.AspNetCore/ActivityMiddleware.cs index 2da1225c3b0..b653e7f1276 100644 --- a/test/TestApp.AspNetCore/ActivityMiddleware.cs +++ b/test/TestApp.AspNetCore/ActivityMiddleware.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace TestApp.AspNetCore; @@ -54,4 +41,4 @@ public virtual void PostProcess(HttpContext context) // Do nothing } } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/CallbackMiddleware.cs b/test/TestApp.AspNetCore/CallbackMiddleware.cs index 0a79505a5bd..c6b0aa7ee4a 100644 --- a/test/TestApp.AspNetCore/CallbackMiddleware.cs +++ b/test/TestApp.AspNetCore/CallbackMiddleware.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 namespace TestApp.AspNetCore; @@ -42,4 +29,4 @@ public virtual async Task ProcessAsync(HttpContext context) return await Task.FromResult(true); } } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs b/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs index e1930ba77f6..55dcd49b247 100644 --- a/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs +++ b/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using Microsoft.AspNetCore.Mvc; @@ -47,4 +34,4 @@ public IReadOnlyDictionary GetChildActivityBaggageContext() var result = Baggage.Current.GetBaggage(); return result; } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/Controllers/ErrorController.cs b/test/TestApp.AspNetCore/Controllers/ErrorController.cs index 06c7f9b494b..97e985134c0 100644 --- a/test/TestApp.AspNetCore/Controllers/ErrorController.cs +++ b/test/TestApp.AspNetCore/Controllers/ErrorController.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using Microsoft.AspNetCore.Mvc; namespace TestApp.AspNetCore.Controllers; @@ -26,4 +14,4 @@ public string Get() { throw new Exception("something's wrong!"); } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/Controllers/ValuesController.cs b/test/TestApp.AspNetCore/Controllers/ValuesController.cs index e691576c73c..9dcbf9ac960 100644 --- a/test/TestApp.AspNetCore/Controllers/ValuesController.cs +++ b/test/TestApp.AspNetCore/Controllers/ValuesController.cs @@ -1,18 +1,6 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 + using Microsoft.AspNetCore.Mvc; namespace TestApp.AspNetCore.Controllers; @@ -51,4 +39,4 @@ public void Put(int id, [FromBody] string value) public void Delete(int id) { } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs b/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs index eef0d30cf8c..9b25ccb6085 100644 --- a/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs +++ b/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.AspNetCore.Mvc.Filters; @@ -24,4 +11,4 @@ public void OnException(ExceptionContext context) { // test the behaviour when an application has two ExceptionFilters defined } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs b/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs index baa8ff81082..cd76796a8d1 100644 --- a/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs +++ b/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using Microsoft.AspNetCore.Mvc.Filters; @@ -24,4 +11,4 @@ public void OnException(ExceptionContext context) { // test the behaviour when an application has two ExceptionFilters defined } -} +} \ No newline at end of file diff --git a/test/TestApp.AspNetCore/Program.cs b/test/TestApp.AspNetCore/Program.cs index b68fcf238fa..7391c139408 100644 --- a/test/TestApp.AspNetCore/Program.cs +++ b/test/TestApp.AspNetCore/Program.cs @@ -1,18 +1,5 @@ -// // Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// SPDX-License-Identifier: Apache-2.0 using TestApp.AspNetCore; @@ -62,4 +49,4 @@ public static void Main(string[] args) app.Run(); } -} +} \ No newline at end of file From 0117bba9bdffc81af53bf7d89704d02d7006bd27 Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Wed, 6 Dec 2023 20:38:53 -0800 Subject: [PATCH 2/2] fix bug --- build/stylecop.json | 2 +- docs/logs/correlation/Program.cs | 2 +- docs/logs/customizing-the-sdk/Program.cs | 2 +- docs/logs/extending-the-sdk/LoggerExtensions.cs | 2 +- docs/logs/extending-the-sdk/MyExporter.cs | 2 +- docs/logs/extending-the-sdk/MyProcessor.cs | 2 +- docs/logs/extending-the-sdk/Program.cs | 2 +- docs/logs/getting-started-aspnetcore/Program.cs | 2 +- docs/logs/getting-started-console/Program.cs | 2 +- docs/logs/redaction/MyRedactionProcessor.cs | 2 +- docs/logs/redaction/Program.cs | 2 +- docs/metrics/customizing-the-sdk/Program.cs | 2 +- docs/metrics/extending-the-sdk/MyExporter.cs | 2 +- docs/metrics/extending-the-sdk/MyExporterExtensions.cs | 2 +- docs/metrics/extending-the-sdk/Program.cs | 2 +- docs/metrics/getting-started-aspnetcore/Program.cs | 2 +- docs/metrics/getting-started-console/Program.cs | 2 +- docs/metrics/getting-started-prometheus-grafana/Program.cs | 2 +- docs/metrics/learning-more-instruments/Program.cs | 2 +- docs/trace/customizing-the-sdk/Program.cs | 2 +- docs/trace/extending-the-sdk/MyEnrichingProcessor.cs | 2 +- docs/trace/extending-the-sdk/MyExporter.cs | 2 +- docs/trace/extending-the-sdk/MyExporterExtensions.cs | 2 +- docs/trace/extending-the-sdk/MyFilteringProcessor.cs | 2 +- docs/trace/extending-the-sdk/MyProcessor.cs | 2 +- docs/trace/extending-the-sdk/MyResourceDetector.cs | 2 +- docs/trace/extending-the-sdk/MySampler.cs | 2 +- docs/trace/extending-the-sdk/Program.cs | 2 +- docs/trace/getting-started-aspnetcore/Program.cs | 2 +- docs/trace/getting-started-console/Program.cs | 2 +- docs/trace/getting-started-jaeger/Program.cs | 2 +- docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs | 2 +- docs/trace/links-based-sampler/LinksBasedSampler.cs | 2 +- docs/trace/links-based-sampler/Program.cs | 2 +- docs/trace/links-creation-with-new-activities/Program.cs | 2 +- docs/trace/reporting-exceptions/Program.cs | 2 +- docs/trace/stratified-sampling-example/Program.cs | 2 +- docs/trace/stratified-sampling-example/StratifiedSampler.cs | 2 +- .../ParentBasedElseAlwaysRecordSampler.cs | 2 +- docs/trace/tail-based-sampling-span-level/Program.cs | 2 +- .../tail-based-sampling-span-level/TailSamplingProcessor.cs | 2 +- examples/AspNetCore/Controllers/WeatherForecastController.cs | 2 +- examples/AspNetCore/Instrumentation.cs | 2 +- examples/AspNetCore/Models/WeatherForecast.cs | 2 +- examples/AspNetCore/Program.cs | 2 +- examples/Console/InstrumentationWithActivitySource.cs | 2 +- examples/Console/TestConsoleExporter.cs | 2 +- examples/Console/TestGrpcNetClient.cs | 2 +- examples/Console/TestHttpClient.cs | 2 +- examples/Console/TestInMemoryExporter.cs | 2 +- examples/Console/TestLogs.cs | 2 +- examples/Console/TestMetrics.cs | 2 +- examples/Console/TestOTelShimWithConsoleExporter.cs | 2 +- examples/Console/TestOpenTracingShim.cs | 2 +- examples/Console/TestOtlpExporter.cs | 2 +- examples/Console/TestPrometheusExporter.cs | 2 +- examples/Console/TestZipkinExporter.cs | 2 +- examples/GrpcService/Program.cs | 2 +- examples/GrpcService/Services/GreeterService.cs | 2 +- examples/GrpcService/Startup.cs | 2 +- examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs | 2 +- examples/MicroserviceExample/Utils/Messaging/MessageSender.cs | 2 +- examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs | 2 +- .../WebApi/Controllers/SendMessageController.cs | 2 +- examples/MicroserviceExample/WebApi/Program.cs | 2 +- examples/MicroserviceExample/WebApi/Startup.cs | 2 +- examples/MicroserviceExample/WorkerService/Program.cs | 2 +- examples/MicroserviceExample/WorkerService/Worker.cs | 2 +- src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs | 2 +- .../Logs/IConfigureLoggerProviderBuilder.cs | 2 +- .../Logs/ILoggerProviderBuilder.cs | 2 +- .../Logs/LoggerProviderServiceCollectionBuilder.cs | 2 +- ...lemetryDependencyInjectionLoggerProviderBuilderExtensions.cs | 2 +- ...etryDependencyInjectionLoggingServiceCollectionExtensions.cs | 2 +- .../Metrics/IConfigureMeterProviderBuilder.cs | 2 +- .../Metrics/IMeterProviderBuilder.cs | 2 +- .../Metrics/MeterProviderServiceCollectionBuilder.cs | 2 +- ...elemetryDependencyInjectionMeterProviderBuilderExtensions.cs | 2 +- ...etryDependencyInjectionMetricsServiceCollectionExtensions.cs | 2 +- .../Trace/IConfigureTracerProviderBuilder.cs | 2 +- .../Trace/ITracerProviderBuilder.cs | 2 +- ...lemetryDependencyInjectionTracerProviderBuilderExtensions.cs | 2 +- ...etryDependencyInjectionTracingServiceCollectionExtensions.cs | 2 +- .../Trace/TracerProviderServiceCollectionBuilder.cs | 2 +- src/OpenTelemetry.Api/ActivityContextExtensions.cs | 2 +- src/OpenTelemetry.Api/AssemblyInfo.cs | 2 +- src/OpenTelemetry.Api/Baggage.cs | 2 +- src/OpenTelemetry.Api/BaseProvider.cs | 2 +- src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs | 2 +- .../Context/IRuntimeContextSlotValueAccessor.cs | 2 +- src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs | 2 +- src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs | 2 +- .../Context/Propagation/CompositeTextMapPropagator.cs | 2 +- .../Context/Propagation/NoopTextMapPropagator.cs | 2 +- src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs | 2 +- src/OpenTelemetry.Api/Context/Propagation/Propagators.cs | 2 +- src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs | 2 +- .../Context/Propagation/TraceContextPropagator.cs | 2 +- src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs | 2 +- src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs | 2 +- src/OpenTelemetry.Api/Context/RuntimeContext.cs | 2 +- src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs | 2 +- src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs | 2 +- src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs | 2 +- src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs | 2 +- src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs | 2 +- src/OpenTelemetry.Api/Logs/LogRecordData.cs | 2 +- src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs | 2 +- src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs | 2 +- src/OpenTelemetry.Api/Logs/Logger.cs | 2 +- src/OpenTelemetry.Api/Logs/LoggerProvider.cs | 2 +- src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs | 2 +- src/OpenTelemetry.Api/Logs/NoopLogger.cs | 2 +- src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs | 2 +- src/OpenTelemetry.Api/Metrics/MeterProvider.cs | 2 +- src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs | 2 +- src/OpenTelemetry.Api/Trace/ActivityExtensions.cs | 2 +- src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs | 2 +- src/OpenTelemetry.Api/Trace/Link.cs | 2 +- src/OpenTelemetry.Api/Trace/SpanAttributes.cs | 2 +- src/OpenTelemetry.Api/Trace/SpanContext.cs | 2 +- src/OpenTelemetry.Api/Trace/SpanKind.cs | 2 +- src/OpenTelemetry.Api/Trace/Status.cs | 2 +- src/OpenTelemetry.Api/Trace/StatusCode.cs | 2 +- src/OpenTelemetry.Api/Trace/TelemetrySpan.cs | 2 +- src/OpenTelemetry.Api/Trace/Tracer.cs | 2 +- src/OpenTelemetry.Api/Trace/TracerProvider.cs | 2 +- src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs | 2 +- src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs | 2 +- src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs | 2 +- .../ConsoleExporterHelperExtensions.cs | 2 +- .../ConsoleExporterLoggingExtensions.cs | 2 +- .../ConsoleExporterMetricsExtensions.cs | 2 +- src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs | 2 +- .../ConsoleExporterOutputTargets.cs | 2 +- src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs | 2 +- src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs | 2 +- src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs | 2 +- src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs | 2 +- .../InMemoryExporterHelperExtensions.cs | 2 +- .../InMemoryExporterLoggingExtensions.cs | 2 +- .../InMemoryExporterMetricsExtensions.cs | 2 +- src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs | 2 +- .../AssemblyInfo.cs | 2 +- .../Implementation/ActivityExtensions.cs | 2 +- .../Implementation/ExperimentalOptions.cs | 2 +- .../Implementation/ExportClient/BaseOtlpGrpcExportClient.cs | 2 +- .../Implementation/ExportClient/BaseOtlpHttpExportClient.cs | 2 +- .../Implementation/ExportClient/ExporterClientValidation.cs | 2 +- .../Implementation/ExportClient/IExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpGrpcLogExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpGrpcTraceExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpHttpLogExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpHttpMetricsExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpHttpTraceExportClient.cs | 2 +- .../Implementation/ExportClient/OtlpRetry.cs | 2 +- .../Implementation/MetricItemExtensions.cs | 2 +- .../Implementation/OpenTelemetryProtocolExporterEventSource.cs | 2 +- .../Implementation/OtlpKeyValueTransformer.cs | 2 +- .../Implementation/OtlpLogRecordTransformer.cs | 2 +- .../Implementation/ResourceExtensions.cs | 2 +- .../Implementation/SdkLimitOptions.cs | 2 +- .../Implementation/TimestampHelpers.cs | 2 +- .../OtlpExportProtocol.cs | 2 +- .../OtlpExportProtocolParser.cs | 2 +- .../OtlpExporterOptions.cs | 2 +- .../OtlpExporterOptionsExtensions.cs | 2 +- .../OtlpLogExporter.cs | 2 +- .../OtlpLogExporterHelperExtensions.cs | 2 +- .../OtlpMetricExporter.cs | 2 +- .../OtlpMetricExporterExtensions.cs | 2 +- .../OtlpTraceExporter.cs | 2 +- .../OtlpTraceExporterHelperExtensions.cs | 2 +- .../PersistentStorage/DirectorySizeTracker.cs | 2 +- .../PersistentStorage/FileBlob.cs | 2 +- .../PersistentStorage/FileBlobProvider.cs | 2 +- .../PersistentStorage/PersistentBlob.cs | 2 +- .../PersistentStorage/PersistentBlobProvider.cs | 2 +- .../PersistentStorageAbstractionsEventSource.cs | 2 +- .../PersistentStorage/PersistentStorageEventSource.cs | 2 +- .../PersistentStorage/PersistentStorageHelper.cs | 2 +- .../AssemblyInfo.cs | 2 +- .../PrometheusAspNetCoreOptions.cs | 2 +- .../PrometheusExporterApplicationBuilderExtensions.cs | 2 +- .../PrometheusExporterEndpointRouteBuilderExtensions.cs | 2 +- .../PrometheusExporterMeterProviderBuilderExtensions.cs | 2 +- .../PrometheusExporterMiddleware.cs | 2 +- .../AssemblyInfo.cs | 2 +- .../Internal/PrometheusCollectionManager.cs | 2 +- .../Internal/PrometheusExporter.cs | 2 +- .../Internal/PrometheusExporterEventSource.cs | 2 +- .../Internal/PrometheusExporterOptions.cs | 2 +- .../Internal/PrometheusHeadersParser.cs | 2 +- .../Internal/PrometheusMetric.cs | 2 +- .../Internal/PrometheusSerializer.cs | 2 +- .../Internal/PrometheusSerializerExt.cs | 2 +- .../Internal/PrometheusType.cs | 2 +- .../PrometheusHttpListener.cs | 2 +- .../PrometheusHttpListenerMeterProviderBuilderExtensions.cs | 2 +- .../PrometheusHttpListenerOptions.cs | 2 +- src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs | 2 +- .../Implementation/ZipkinActivityConversionExtensions.cs | 2 +- .../Implementation/ZipkinAnnotation.cs | 2 +- .../Implementation/ZipkinEndpoint.cs | 2 +- .../Implementation/ZipkinExporterEventSource.cs | 2 +- src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs | 2 +- .../Implementation/ZipkinSpanJsonHelper.cs | 2 +- .../Implementation/ZipkinTagTransformer.cs | 2 +- src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs | 2 +- .../ZipkinExporterHelperExtensions.cs | 2 +- src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs | 2 +- src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs | 2 +- .../Implementation/HostingExtensionsEventSource.cs | 2 +- .../Implementation/OpenTelemetryMetricsListener.cs | 2 +- .../Implementation/TelemetryHostedService.cs | 2 +- src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs | 2 +- .../OpenTelemetryMetricsBuilderExtensions.cs | 2 +- .../OpenTelemetryServicesExtensions.cs | 2 +- src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs | 2 +- src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs | 2 +- src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs | 2 +- .../OpenTelemetryPropagatorsEventSource.cs | 2 +- .../AspNetCoreInstrumentation.cs | 2 +- .../AspNetCoreMetrics.cs | 2 +- .../AspNetCoreTraceInstrumentationOptions.cs | 2 +- src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs | 2 +- .../Implementation/AspNetCoreInstrumentationEventSource.cs | 2 +- .../Implementation/HttpInListener.cs | 2 +- .../Implementation/HttpInMetricsListener.cs | 2 +- .../Implementation/HttpTagHelper.cs | 2 +- .../Implementation/TelemetryHelper.cs | 2 +- .../MeterProviderBuilderExtensions.cs | 2 +- .../TracerProviderBuilderExtensions.cs | 2 +- src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs | 2 +- .../GrpcClientInstrumentation.cs | 2 +- .../GrpcClientInstrumentationOptions.cs | 2 +- .../GrpcTagHelper.cs | 2 +- .../Implementation/GrpcClientDiagnosticListener.cs | 2 +- .../Implementation/GrpcInstrumentationEventSource.cs | 2 +- .../StatusCanonicalCode.cs | 2 +- .../TracerProviderBuilderExtensions.cs | 2 +- src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs | 2 +- .../HttpClientInstrumentation.cs | 2 +- src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs | 2 +- .../HttpClientTraceInstrumentationOptions.cs | 2 +- .../HttpRequestMessageContextPropagation.cs | 2 +- .../Implementation/HttpHandlerDiagnosticListener.cs | 2 +- .../Implementation/HttpHandlerMetricsDiagnosticListener.cs | 2 +- .../Implementation/HttpInstrumentationEventSource.cs | 2 +- .../Implementation/HttpTagHelper.cs | 2 +- .../Implementation/HttpWebRequestActivitySource.netfx.cs | 2 +- .../Implementation/TelemetryHelper.cs | 2 +- .../MeterProviderBuilderExtensions.cs | 2 +- .../TracerProviderBuilderExtensions.cs | 2 +- src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs | 2 +- .../Implementation/SqlActivitySourceHelper.cs | 2 +- .../Implementation/SqlClientDiagnosticListener.cs | 2 +- .../Implementation/SqlClientInstrumentationEventSource.cs | 2 +- .../Implementation/SqlEventSourceListener.netfx.cs | 2 +- .../SqlClientInstrumentation.cs | 2 +- .../SqlClientInstrumentationOptions.cs | 2 +- .../TracerProviderBuilderExtensions.cs | 2 +- .../Resource/ResourceSemanticConventions.cs | 2 +- .../Trace/TraceSemanticConventions.cs | 2 +- src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs | 2 +- src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs | 2 +- src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs | 2 +- src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs | 2 +- src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs | 2 +- src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs | 2 +- src/OpenTelemetry/AssemblyInfo.cs | 2 +- src/OpenTelemetry/BaseExportProcessor.cs | 2 +- src/OpenTelemetry/BaseExporter.cs | 2 +- src/OpenTelemetry/BaseProcessor.cs | 2 +- src/OpenTelemetry/Batch.cs | 2 +- src/OpenTelemetry/BatchExportProcessor.cs | 2 +- src/OpenTelemetry/BatchExportProcessorOptions.cs | 2 +- src/OpenTelemetry/CompositeProcessor.cs | 2 +- .../Builder/ProviderBuilderServiceCollectionExtensions.cs | 2 +- src/OpenTelemetry/Internal/CircularBuffer.cs | 2 +- src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs | 2 +- src/OpenTelemetry/Internal/SelfDiagnostics.cs | 2 +- src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs | 2 +- src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs | 2 +- src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs | 2 +- src/OpenTelemetry/Internal/WildcardHelper.cs | 2 +- src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs | 2 +- src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs | 2 +- src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs | 2 +- .../Logs/Builder/LoggerProviderBuilderExtensions.cs | 2 +- src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs | 2 +- src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs | 2 +- src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs | 2 +- src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs | 2 +- .../Logs/ILogger/OpenTelemetryLoggingExtensions.cs | 2 +- src/OpenTelemetry/Logs/LogRecord.cs | 2 +- src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs | 2 +- src/OpenTelemetry/Logs/LogRecordScope.cs | 2 +- src/OpenTelemetry/Logs/LoggerProviderExtensions.cs | 2 +- src/OpenTelemetry/Logs/LoggerProviderSdk.cs | 2 +- src/OpenTelemetry/Logs/LoggerSdk.cs | 2 +- src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs | 2 +- src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs | 2 +- src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs | 2 +- src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs | 2 +- src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs | 2 +- src/OpenTelemetry/Metrics/AggregationTemporality.cs | 2 +- src/OpenTelemetry/Metrics/AggregationType.cs | 2 +- src/OpenTelemetry/Metrics/AggregatorStore.cs | 2 +- src/OpenTelemetry/Metrics/Base2ExponentialBucketHistogram.cs | 2 +- .../Metrics/Base2ExponentialBucketHistogramConfiguration.cs | 2 +- src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs | 2 +- src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs | 2 +- .../Metrics/Builder/MeterProviderBuilderExtensions.cs | 2 +- src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs | 2 +- src/OpenTelemetry/Metrics/CircularBufferBuckets.cs | 2 +- src/OpenTelemetry/Metrics/CompositeMetricReader.cs | 2 +- src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs | 2 +- .../Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs | 2 +- src/OpenTelemetry/Metrics/Exemplar/AlwaysOffExemplarFilter.cs | 2 +- src/OpenTelemetry/Metrics/Exemplar/AlwaysOnExemplarFilter.cs | 2 +- src/OpenTelemetry/Metrics/Exemplar/ExemplarFilter.cs | 2 +- src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs | 2 +- src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs | 2 +- src/OpenTelemetry/Metrics/Exemplar/TraceBasedExemplarFilter.cs | 2 +- .../Metrics/ExplicitBucketHistogramConfiguration.cs | 2 +- src/OpenTelemetry/Metrics/ExponentialHistogramBuckets.cs | 2 +- src/OpenTelemetry/Metrics/ExponentialHistogramData.cs | 2 +- src/OpenTelemetry/Metrics/ExportModes.cs | 2 +- src/OpenTelemetry/Metrics/ExportModesAttribute.cs | 2 +- src/OpenTelemetry/Metrics/HistogramBucket.cs | 2 +- src/OpenTelemetry/Metrics/HistogramBuckets.cs | 2 +- src/OpenTelemetry/Metrics/HistogramConfiguration.cs | 2 +- src/OpenTelemetry/Metrics/IPullMetricExporter.cs | 2 +- src/OpenTelemetry/Metrics/LookupData.cs | 2 +- src/OpenTelemetry/Metrics/MeterProviderExtensions.cs | 2 +- src/OpenTelemetry/Metrics/MeterProviderSdk.cs | 2 +- src/OpenTelemetry/Metrics/Metric.cs | 2 +- src/OpenTelemetry/Metrics/MetricPoint.cs | 2 +- src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs | 2 +- src/OpenTelemetry/Metrics/MetricPointStatus.cs | 2 +- src/OpenTelemetry/Metrics/MetricPointValueStorage.cs | 2 +- src/OpenTelemetry/Metrics/MetricPointsAccessor.cs | 2 +- src/OpenTelemetry/Metrics/MetricReader.cs | 2 +- src/OpenTelemetry/Metrics/MetricReaderExt.cs | 2 +- src/OpenTelemetry/Metrics/MetricReaderOptions.cs | 2 +- src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs | 2 +- src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs | 2 +- src/OpenTelemetry/Metrics/MetricStreamIdentity.cs | 2 +- src/OpenTelemetry/Metrics/MetricType.cs | 2 +- src/OpenTelemetry/Metrics/MetricTypeExtensions.cs | 2 +- src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs | 2 +- .../Metrics/PeriodicExportingMetricReaderOptions.cs | 2 +- src/OpenTelemetry/Metrics/PullMetricScope.cs | 2 +- src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs | 2 +- src/OpenTelemetry/Metrics/Tags.cs | 2 +- src/OpenTelemetry/Metrics/ThreadStaticStorage.cs | 2 +- src/OpenTelemetry/ProviderExtensions.cs | 2 +- src/OpenTelemetry/ReadOnlyTagCollection.cs | 2 +- src/OpenTelemetry/Resources/IResourceDetector.cs | 2 +- src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs | 2 +- src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs | 2 +- src/OpenTelemetry/Resources/Resource.cs | 2 +- src/OpenTelemetry/Resources/ResourceBuilder.cs | 2 +- src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs | 2 +- src/OpenTelemetry/Sdk.cs | 2 +- src/OpenTelemetry/SimpleExportProcessor.cs | 2 +- src/OpenTelemetry/SuppressInstrumentationScope.cs | 2 +- src/OpenTelemetry/Trace/AlwaysOffSampler.cs | 2 +- src/OpenTelemetry/Trace/AlwaysOnSampler.cs | 2 +- src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs | 2 +- src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs | 2 +- src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs | 2 +- .../Trace/Builder/TracerProviderBuilderExtensions.cs | 2 +- src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs | 2 +- src/OpenTelemetry/Trace/ExceptionProcessor.cs | 2 +- src/OpenTelemetry/Trace/ParentBasedSampler.cs | 2 +- src/OpenTelemetry/Trace/Sampler.cs | 2 +- src/OpenTelemetry/Trace/SamplingDecision.cs | 2 +- src/OpenTelemetry/Trace/SamplingParameters.cs | 2 +- src/OpenTelemetry/Trace/SamplingResult.cs | 2 +- src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs | 2 +- src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs | 2 +- src/OpenTelemetry/Trace/TracerProviderExtensions.cs | 2 +- src/OpenTelemetry/Trace/TracerProviderSdk.cs | 2 +- src/Shared/ActivityHelperExtensions.cs | 2 +- src/Shared/ActivityInstrumentationHelper.cs | 2 +- .../DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs | 2 +- .../DiagnosticSourceSubscriber.cs | 2 +- src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs | 2 +- src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs | 2 +- src/Shared/ExceptionExtensions.cs | 2 +- src/Shared/Guard.cs | 2 +- src/Shared/HttpSemanticConventionHelper.cs | 2 +- src/Shared/MathHelper.cs | 2 +- src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs | 2 +- src/Shared/Options/ConfigurationExtensions.cs | 2 +- src/Shared/PeerServiceResolver.cs | 2 +- src/Shared/PeriodicExportingMetricReaderHelper.cs | 2 +- src/Shared/PooledList.cs | 2 +- src/Shared/RequestMethodHelper.cs | 2 +- src/Shared/ResourceSemanticConventions.cs | 2 +- src/Shared/SemanticConventions.cs | 2 +- src/Shared/Shims/IsExternalInit.cs | 2 +- src/Shared/Shims/NullableAttributes.cs | 2 +- src/Shared/SpanAttributeConstants.cs | 2 +- src/Shared/SpanHelper.cs | 2 +- src/Shared/StatusHelper.cs | 2 +- src/Shared/TagAndValueTransformer.cs | 2 +- src/Shared/TagTransformer.cs | 2 +- src/Shared/TagTransformerJsonHelper.cs | 2 +- test/Benchmarks/EventSourceBenchmarks.cs | 2 +- test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs | 2 +- test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs | 2 +- test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs | 2 +- test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs | 2 +- test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs | 2 +- test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs | 2 +- test/Benchmarks/Helper/ActivityCreationScenarios.cs | 2 +- test/Benchmarks/Helper/ActivityHelper.cs | 2 +- test/Benchmarks/Helper/LogRecordHelper.cs | 2 +- test/Benchmarks/Helper/SpanCreationScenarios.cs | 2 +- test/Benchmarks/Helper/TestExporter.cs | 2 +- .../Instrumentation/AspNetCoreInstrumentationBenchmarks.cs | 2 +- .../Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs | 2 +- .../Instrumentation/HttpClientInstrumentationBenchmarks.cs | 2 +- test/Benchmarks/Logs/Food.cs | 2 +- test/Benchmarks/Logs/LogBenchmarks.cs | 2 +- test/Benchmarks/Logs/LogScopeBenchmarks.cs | 2 +- test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs | 2 +- .../Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs | 2 +- .../Metrics/Base2ExponentialHistogramScaleBenchmarks.cs | 2 +- test/Benchmarks/Metrics/ExemplarBenchmarks.cs | 2 +- test/Benchmarks/Metrics/HistogramBenchmarks.cs | 2 +- test/Benchmarks/Metrics/MetricCollectBenchmarks.cs | 2 +- test/Benchmarks/Metrics/MetricsBenchmarks.cs | 2 +- test/Benchmarks/Metrics/MetricsViewBenchmarks.cs | 2 +- test/Benchmarks/Program.cs | 2 +- test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs | 2 +- test/Benchmarks/TestTraceServiceClient.cs | 2 +- test/Benchmarks/Trace/ActivityCreationBenchmarks.cs | 2 +- test/Benchmarks/Trace/SamplerBenchmarks.cs | 2 +- test/Benchmarks/Trace/SpanCreationBenchmarks.cs | 2 +- test/Benchmarks/Trace/TraceBenchmarks.cs | 2 +- test/Benchmarks/Trace/TraceShimBenchmarks.cs | 2 +- test/OpenTelemetry.AotCompatibility.TestApp/Program.cs | 2 +- .../PropertyFetcherAotTest.cs | 2 +- .../Logs/LoggerProviderBuilderExtensionsTests.cs | 2 +- .../Logs/TestLoggerProviderBuilder.cs | 2 +- .../Metrics/MeterProviderBuilderExtensionsTests.cs | 2 +- .../Metrics/TestMeterProviderBuilder.cs | 2 +- .../ServiceCollectionExtensionsTests.cs | 2 +- .../Trace/TestTracerProviderBuilder.cs | 2 +- .../Trace/TracerProviderBuilderExtensionsTests.cs | 2 +- test/OpenTelemetry.Api.Tests/BaggageTests.cs | 2 +- .../Context/Propagation/PropagatorsTest.cs | 2 +- test/OpenTelemetry.Api.Tests/Context/RuntimeContextTest.cs | 2 +- test/OpenTelemetry.Api.Tests/EventSourceTest.cs | 2 +- test/OpenTelemetry.Api.Tests/Internal/GuardTest.cs | 2 +- .../OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs | 2 +- test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs | 2 +- .../Logs/LogRecordSeverityExtensionsTests.cs | 2 +- test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs | 2 +- test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs | 2 +- .../Trace/Propagation/B3PropagatorTest.cs | 2 +- .../Trace/Propagation/BaggagePropagatorTest.cs | 2 +- .../Trace/Propagation/CompositePropagatorTest.cs | 2 +- .../OpenTelemetry.Api.Tests/Trace/Propagation/TestPropagator.cs | 2 +- .../Trace/Propagation/TracestateUtilsTests.cs | 2 +- test/OpenTelemetry.Api.Tests/Trace/SpanAttributesTest.cs | 2 +- test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs | 2 +- test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs | 2 +- test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs | 2 +- .../ConsoleActivityExporterTest.cs | 2 +- .../BaseOtlpHttpExportClientTests.cs | 2 +- .../EventSourceTest.cs | 2 +- .../ExporterClientValidationTests.cs | 2 +- .../Http2UnencryptedSupportTests.cs | 2 +- .../ExportClient/OtlpHttpTraceExportClientTests.cs | 2 +- .../IntegrationTest/IntegrationTests.cs | 2 +- .../MockCollectorIntegrationTests.cs | 2 +- .../OtlpAttributeTests.cs | 2 +- .../OtlpExportProtocolParserTests.cs | 2 +- .../OtlpExporterOptionsExtensionsTests.cs | 2 +- .../OtlpExporterOptionsTests.cs | 2 +- .../OtlpLogExporterTests.cs | 2 +- .../OtlpMetricsExporterTests.cs | 2 +- .../OtlpResourceTests.cs | 2 +- .../OtlpRetryTests.cs | 2 +- .../OtlpTestHelpers.cs | 2 +- .../OtlpTraceExporterTests.cs | 2 +- .../SdkLimitOptionsTests.cs | 2 +- .../TestExportClient.cs | 2 +- .../TestHttpMessageHandler.cs | 2 +- .../PrometheusExporterMeterProviderBuilderExtensionsTests.cs | 2 +- .../PrometheusExporterMiddlewareTests.cs | 2 +- .../EventSourceTest.cs | 2 +- .../PrometheusCollectionManagerTests.cs | 2 +- .../PrometheusHeadersParserTests.cs | 2 +- ...PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs | 2 +- .../PrometheusHttpListenerTests.cs | 2 +- .../PrometheusMetricTests.cs | 2 +- .../PrometheusSerializerTests.cs | 2 +- test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs | 2 +- .../Implementation/ZipkinActivityConversionExtensionsTest.cs | 2 +- .../Implementation/ZipkinActivityConversionTest.cs | 2 +- .../Implementation/ZipkinActivityExporterRemoteEndpointTests.cs | 2 +- test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs | 2 +- test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs | 2 +- .../InMemoryExporterMetricsExtensionsTests.cs | 2 +- .../OpenTelemetryBuilderTests.cs | 2 +- .../OpenTelemetryMetricsBuilderExtensionsTests.cs | 2 +- .../OpenTelemetryServicesExtensionsTests.cs | 2 +- .../B3PropagatorTest.cs | 2 +- .../EventSourceTest.cs | 2 +- .../JaegerPropagatorTest.cs | 2 +- .../AttributesExtensions.cs | 2 +- .../BasicTests.cs | 2 +- .../DependencyInjectionConfigTests.cs | 2 +- .../EventSourceTest.cs | 2 +- .../IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs | 2 +- .../MetricTests.cs | 2 +- .../RouteTests/RoutingTestCases.cs | 2 +- .../RouteTests/RoutingTestFixture.cs | 2 +- .../RouteTests/RoutingTestResult.cs | 2 +- .../RouteTests/RoutingTests.cs | 2 +- .../Areas/AnotherArea/Controllers/AnotherAreaController.cs | 2 +- .../Areas/MyArea/Controllers/ControllerForMyAreaController.cs | 2 +- .../TestApplication/Controllers/AttributeRouteController.cs | 2 +- .../TestApplication/Controllers/ConventionalRouteController.cs | 2 +- .../RouteTests/TestApplication/RouteInfo.cs | 2 +- .../RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs | 2 +- .../RouteTests/TestApplication/TestApplicationFactory.cs | 2 +- .../OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs | 2 +- test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs | 2 +- .../GrpcTagHelperTests.cs | 2 +- .../GrpcTestHelpers/ClientTestHelpers.cs | 2 +- .../GrpcTestHelpers/ResponseUtils.cs | 2 +- .../GrpcTestHelpers/TestHttpMessageHandler.cs | 2 +- .../GrpcTestHelpers/TrailingHeadersHelpers.cs | 2 +- .../GrpcTests.client.cs | 2 +- .../GrpcTests.server.cs | 2 +- .../Services/GreeterService.cs | 2 +- .../OpenTelemetry.Instrumentation.Http.Tests/EventSourceTest.cs | 2 +- .../HttpClientTests.Basic.cs | 2 +- .../OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs | 2 +- test/OpenTelemetry.Instrumentation.Http.Tests/HttpTestData.cs | 2 +- .../HttpWebRequestActivitySourceTests.netfx.cs | 2 +- .../HttpWebRequestTests.Basic.cs | 2 +- .../HttpWebRequestTests.cs | 2 +- test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs | 2 +- .../EventSourceTest.cs | 2 +- .../SqlClientInstrumentationOptionsTests.cs | 2 +- .../SqlClientIntegrationTests.cs | 2 +- .../SqlClientTests.cs | 2 +- .../SqlEventSourceTests.netfx.cs | 2 +- .../W3CTraceContextTests.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs | 2 +- .../ListenAndSampleAllActivitySources.cs | 2 +- .../ScopeManagerShimTests.cs | 2 +- .../SpanBuilderShimTests.cs | 2 +- .../SpanContextShimTests.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs | 2 +- test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs | 2 +- test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs | 2 +- test/OpenTelemetry.Tests.Stress.Logs/Payload.cs | 2 +- test/OpenTelemetry.Tests.Stress.Logs/Program.cs | 2 +- test/OpenTelemetry.Tests.Stress.Metrics/Program.cs | 2 +- test/OpenTelemetry.Tests.Stress.Traces/Program.cs | 2 +- test/OpenTelemetry.Tests.Stress/Meat.cs | 2 +- test/OpenTelemetry.Tests.Stress/Skeleton.cs | 2 +- test/OpenTelemetry.Tests/BaseExporterTest.cs | 2 +- test/OpenTelemetry.Tests/BaseProcessorTest.cs | 2 +- test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs | 2 +- test/OpenTelemetry.Tests/EventSourceTest.cs | 2 +- .../Instrumentation/ActivityInstrumentationHelperTest.cs | 2 +- test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs | 2 +- test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs | 2 +- test/OpenTelemetry.Tests/Internal/MathHelperTest.cs | 2 +- .../Internal/PeriodicExportingMetricReaderHelperTests.cs | 2 +- test/OpenTelemetry.Tests/Internal/PooledListTest.cs | 2 +- .../Internal/SelfDiagnosticsConfigParserTest.cs | 2 +- .../Internal/SelfDiagnosticsConfigRefresherTest.cs | 2 +- .../Internal/SelfDiagnosticsEventListenerTest.cs | 2 +- test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs | 2 +- .../Logs/BatchExportLogRecordProcessorOptionsTest.cs | 2 +- .../Logs/BatchLogRecordExportProcessorTests.cs | 2 +- test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs | 2 +- test/OpenTelemetry.Tests/Logs/LogRecordTest.cs | 2 +- test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs | 2 +- .../Logs/LoggerFactoryAndResourceBuilderTests.cs | 2 +- .../Logs/LoggerProviderBuilderExtensionsTests.cs | 2 +- test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs | 2 +- test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs | 2 +- .../Logs/OpenTelemetryLoggerProviderTests.cs | 2 +- .../Logs/OpenTelemetryLoggingExtensionsTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs | 2 +- .../Metrics/Base2ExponentialBucketHistogramHelperTests.cs | 2 +- .../Metrics/Base2ExponentialBucketHistogramTest.cs | 2 +- test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs | 2 +- test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs | 2 +- .../Metrics/MeterProviderBuilderExtensionsTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs | 2 +- .../Metrics/MetricOverflowAttributeTestsBase.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricTestData.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs | 2 +- test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs | 2 +- .../Resources/OtelEnvResourceDetectorTest.cs | 2 +- .../Resources/OtelServiceNameEnvVarDetectorTests.cs | 2 +- test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs | 2 +- test/OpenTelemetry.Tests/Resources/ResourceTest.cs | 2 +- test/OpenTelemetry.Tests/SdkTests.cs | 2 +- test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs | 2 +- test/OpenTelemetry.Tests/Shared/DelegatingExporter.cs | 2 +- test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs | 2 +- .../Shared/EnabledOnDockerPlatformTheoryAttribute.cs | 2 +- test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs | 2 +- .../Shared/HttpSemanticConventionHelperTest.cs | 2 +- test/OpenTelemetry.Tests/Shared/IEEE754Double.cs | 2 +- test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs | 2 +- test/OpenTelemetry.Tests/Shared/MathHelper.cs | 2 +- test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs | 2 +- .../Shared/SkipUnlessEnvVarFoundFactAttribute.cs | 2 +- .../Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs | 2 +- test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs | 2 +- test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs | 2 +- test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs | 2 +- test/OpenTelemetry.Tests/Shared/TestEventListener.cs | 2 +- test/OpenTelemetry.Tests/Shared/TestHttpServer.cs | 2 +- test/OpenTelemetry.Tests/Shared/TestSampler.cs | 2 +- test/OpenTelemetry.Tests/Shared/Utils.cs | 2 +- test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs | 2 +- test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs | 2 +- test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs | 2 +- test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs | 2 +- .../Trace/BatchExportActivityProcessorOptionsTest.cs | 2 +- .../Trace/BatchExportActivityProcessorTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/BatchTest.cs | 2 +- .../Trace/CompositeActivityProcessorTests.cs | 2 +- test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs | 2 +- test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/LinkTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs | 2 +- .../Trace/Propagation/TraceContextPropagatorTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/SamplersTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs | 2 +- .../Trace/SimpleExportActivityProcessorTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/SpanContextTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs | 2 +- .../OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs | 2 +- .../Trace/TracerProviderBuilderExtensionsTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs | 2 +- test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs | 2 +- test/TestApp.AspNetCore/ActivityMiddleware.cs | 2 +- test/TestApp.AspNetCore/CallbackMiddleware.cs | 2 +- test/TestApp.AspNetCore/Controllers/ChildActivityController.cs | 2 +- test/TestApp.AspNetCore/Controllers/ErrorController.cs | 2 +- test/TestApp.AspNetCore/Controllers/ValuesController.cs | 2 +- test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs | 2 +- test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs | 2 +- test/TestApp.AspNetCore/Program.cs | 2 +- 677 files changed, 677 insertions(+), 677 deletions(-) diff --git a/build/stylecop.json b/build/stylecop.json index c3fd1a04c3c..6d32e9d35e1 100644 --- a/build/stylecop.json +++ b/build/stylecop.json @@ -1,4 +1,4 @@ -{ +{ "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", "settings": { "documentationRules": { diff --git a/docs/logs/correlation/Program.cs b/docs/logs/correlation/Program.cs index f5418ce17ed..c12aa053487 100644 --- a/docs/logs/correlation/Program.cs +++ b/docs/logs/correlation/Program.cs @@ -43,4 +43,4 @@ public static void Main() logger.LogInformation("Hello from {name} {price}.", "tomato", 2.99); } } -} \ No newline at end of file +} diff --git a/docs/logs/customizing-the-sdk/Program.cs b/docs/logs/customizing-the-sdk/Program.cs index a5a89d17c9f..cd631255b36 100644 --- a/docs/logs/customizing-the-sdk/Program.cs +++ b/docs/logs/customizing-the-sdk/Program.cs @@ -38,4 +38,4 @@ public static void Main() logger.LogInformation("Hello from {food} {price}.", "tomato", 2.99); } } -} \ No newline at end of file +} diff --git a/docs/logs/extending-the-sdk/LoggerExtensions.cs b/docs/logs/extending-the-sdk/LoggerExtensions.cs index 971e77d4957..7476d833334 100644 --- a/docs/logs/extending-the-sdk/LoggerExtensions.cs +++ b/docs/logs/extending-the-sdk/LoggerExtensions.cs @@ -15,4 +15,4 @@ public static OpenTelemetryLoggerOptions AddMyExporter(this OpenTelemetryLoggerO return options.AddProcessor(new BatchLogRecordExportProcessor(new MyExporter())); } -} \ No newline at end of file +} diff --git a/docs/logs/extending-the-sdk/MyExporter.cs b/docs/logs/extending-the-sdk/MyExporter.cs index 3226db3dd30..6093f57394b 100644 --- a/docs/logs/extending-the-sdk/MyExporter.cs +++ b/docs/logs/extending-the-sdk/MyExporter.cs @@ -61,4 +61,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} \ No newline at end of file +} diff --git a/docs/logs/extending-the-sdk/MyProcessor.cs b/docs/logs/extending-the-sdk/MyProcessor.cs index 8b37549fa2b..5fcd34e1d8d 100644 --- a/docs/logs/extending-the-sdk/MyProcessor.cs +++ b/docs/logs/extending-the-sdk/MyProcessor.cs @@ -34,4 +34,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} \ No newline at end of file +} diff --git a/docs/logs/extending-the-sdk/Program.cs b/docs/logs/extending-the-sdk/Program.cs index 690d1f299d3..cada6ec1f5d 100644 --- a/docs/logs/extending-the-sdk/Program.cs +++ b/docs/logs/extending-the-sdk/Program.cs @@ -61,4 +61,4 @@ internal struct Food public double Price { get; set; } } -} \ No newline at end of file +} diff --git a/docs/logs/getting-started-aspnetcore/Program.cs b/docs/logs/getting-started-aspnetcore/Program.cs index b7aa7683f5a..237bcc5c52b 100644 --- a/docs/logs/getting-started-aspnetcore/Program.cs +++ b/docs/logs/getting-started-aspnetcore/Program.cs @@ -48,4 +48,4 @@ public static partial class ApplicationLogs [LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")] public static partial void FoodPriceChanged(this ILogger logger, string name, double price); -} \ No newline at end of file +} diff --git a/docs/logs/getting-started-console/Program.cs b/docs/logs/getting-started-console/Program.cs index 97a049106c5..cb7c075ab17 100644 --- a/docs/logs/getting-started-console/Program.cs +++ b/docs/logs/getting-started-console/Program.cs @@ -40,4 +40,4 @@ public static partial void FoodRecallNotice( string productType, string recallReasonDescription, string companyName); -} \ No newline at end of file +} diff --git a/docs/logs/redaction/MyRedactionProcessor.cs b/docs/logs/redaction/MyRedactionProcessor.cs index 8bbbde130aa..96b2898524e 100644 --- a/docs/logs/redaction/MyRedactionProcessor.cs +++ b/docs/logs/redaction/MyRedactionProcessor.cs @@ -54,4 +54,4 @@ IEnumerator IEnumerable.GetEnumerator() return this.GetEnumerator(); } } -} \ No newline at end of file +} diff --git a/docs/logs/redaction/Program.cs b/docs/logs/redaction/Program.cs index c0796cdb545..207a2b659d5 100644 --- a/docs/logs/redaction/Program.cs +++ b/docs/logs/redaction/Program.cs @@ -26,4 +26,4 @@ public static partial class ApplicationLogs { [LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")] public static partial void FoodPriceChanged(this ILogger logger, string name, double price); -} \ No newline at end of file +} diff --git a/docs/metrics/customizing-the-sdk/Program.cs b/docs/metrics/customizing-the-sdk/Program.cs index f685b07e5b8..36539bd6d57 100644 --- a/docs/metrics/customizing-the-sdk/Program.cs +++ b/docs/metrics/customizing-the-sdk/Program.cs @@ -95,4 +95,4 @@ public static void Main() histogram2.Record(random.Next(1, 1000), new("tag1", "value1"), new("tag2", "value2")); } } -} \ No newline at end of file +} diff --git a/docs/metrics/extending-the-sdk/MyExporter.cs b/docs/metrics/extending-the-sdk/MyExporter.cs index bc028dee8aa..228d3e0c342 100644 --- a/docs/metrics/extending-the-sdk/MyExporter.cs +++ b/docs/metrics/extending-the-sdk/MyExporter.cs @@ -54,4 +54,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} \ No newline at end of file +} diff --git a/docs/metrics/extending-the-sdk/MyExporterExtensions.cs b/docs/metrics/extending-the-sdk/MyExporterExtensions.cs index 19a270ffe0d..bb5cb6deff6 100644 --- a/docs/metrics/extending-the-sdk/MyExporterExtensions.cs +++ b/docs/metrics/extending-the-sdk/MyExporterExtensions.cs @@ -23,4 +23,4 @@ public static MeterProviderBuilder AddMyExporter(this MeterProviderBuilder build return builder.AddReader(new PeriodicExportingMetricReader(new MyExporter(), exportIntervalMilliSeconds)); } } -} \ No newline at end of file +} diff --git a/docs/metrics/extending-the-sdk/Program.cs b/docs/metrics/extending-the-sdk/Program.cs index d2356e49008..a2952062261 100644 --- a/docs/metrics/extending-the-sdk/Program.cs +++ b/docs/metrics/extending-the-sdk/Program.cs @@ -40,4 +40,4 @@ public static void Main() MyFruitCounter.Add(5, new("name", "apple"), new("color", "red")); MyFruitCounter.Add(4, new("name", "lemon"), new("color", "yellow")); } -} \ No newline at end of file +} diff --git a/docs/metrics/getting-started-aspnetcore/Program.cs b/docs/metrics/getting-started-aspnetcore/Program.cs index b66dab60b28..3c38b73c16a 100644 --- a/docs/metrics/getting-started-aspnetcore/Program.cs +++ b/docs/metrics/getting-started-aspnetcore/Program.cs @@ -21,4 +21,4 @@ app.MapGet("/", () => $"Hello from OpenTelemetry Metrics!"); -app.Run(); \ No newline at end of file +app.Run(); diff --git a/docs/metrics/getting-started-console/Program.cs b/docs/metrics/getting-started-console/Program.cs index ece0cb1b99d..524ee88ad1a 100644 --- a/docs/metrics/getting-started-console/Program.cs +++ b/docs/metrics/getting-started-console/Program.cs @@ -28,4 +28,4 @@ public static void Main() // This will flush the remaining metrics and shutdown the metrics pipeline. meterProvider.Dispose(); } -} \ No newline at end of file +} diff --git a/docs/metrics/getting-started-prometheus-grafana/Program.cs b/docs/metrics/getting-started-prometheus-grafana/Program.cs index 1693202ef58..0fd2437eefd 100644 --- a/docs/metrics/getting-started-prometheus-grafana/Program.cs +++ b/docs/metrics/getting-started-prometheus-grafana/Program.cs @@ -41,4 +41,4 @@ public static void Main() // This will flush the remaining metrics and shutdown the metrics pipeline. meterProvider.Dispose(); } -} \ No newline at end of file +} diff --git a/docs/metrics/learning-more-instruments/Program.cs b/docs/metrics/learning-more-instruments/Program.cs index 655cc0a8711..c887e281461 100644 --- a/docs/metrics/learning-more-instruments/Program.cs +++ b/docs/metrics/learning-more-instruments/Program.cs @@ -51,4 +51,4 @@ private static IEnumerable> GetThreadState(Process process) yield return new((int)thread.ThreadState, new("ProcessId", process.Id), new("ThreadId", thread.Id)); } } -} \ No newline at end of file +} diff --git a/docs/trace/customizing-the-sdk/Program.cs b/docs/trace/customizing-the-sdk/Program.cs index 6f5f8879882..5da5da584f6 100644 --- a/docs/trace/customizing-the-sdk/Program.cs +++ b/docs/trace/customizing-the-sdk/Program.cs @@ -69,4 +69,4 @@ public static void Main() tracerProvider.Dispose(); } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs b/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs index 0a1a17afaa7..a6107330485 100644 --- a/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs +++ b/docs/trace/extending-the-sdk/MyEnrichingProcessor.cs @@ -25,4 +25,4 @@ public override void OnEnd(Activity activity) activity.SetTag("device.type", deviceTypeFromBaggage); } } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MyExporter.cs b/docs/trace/extending-the-sdk/MyExporter.cs index 856f26298ed..d37b9daac46 100644 --- a/docs/trace/extending-the-sdk/MyExporter.cs +++ b/docs/trace/extending-the-sdk/MyExporter.cs @@ -45,4 +45,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MyExporterExtensions.cs b/docs/trace/extending-the-sdk/MyExporterExtensions.cs index c4e8ca99234..b317591fc5f 100644 --- a/docs/trace/extending-the-sdk/MyExporterExtensions.cs +++ b/docs/trace/extending-the-sdk/MyExporterExtensions.cs @@ -15,4 +15,4 @@ public static TracerProviderBuilder AddMyExporter(this TracerProviderBuilder bui return builder.AddProcessor(new BatchActivityExportProcessor(new MyExporter())); } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MyFilteringProcessor.cs b/docs/trace/extending-the-sdk/MyFilteringProcessor.cs index 4bac385f26b..04fdb77ad59 100644 --- a/docs/trace/extending-the-sdk/MyFilteringProcessor.cs +++ b/docs/trace/extending-the-sdk/MyFilteringProcessor.cs @@ -31,4 +31,4 @@ public override void OnEnd(Activity activity) activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded; } } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MyProcessor.cs b/docs/trace/extending-the-sdk/MyProcessor.cs index 9f03f99b472..4171821d49a 100644 --- a/docs/trace/extending-the-sdk/MyProcessor.cs +++ b/docs/trace/extending-the-sdk/MyProcessor.cs @@ -39,4 +39,4 @@ protected override void Dispose(bool disposing) { Console.WriteLine($"{this.name}.Dispose({disposing})"); } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MyResourceDetector.cs b/docs/trace/extending-the-sdk/MyResourceDetector.cs index dd8156d4e06..df40d9b3302 100644 --- a/docs/trace/extending-the-sdk/MyResourceDetector.cs +++ b/docs/trace/extending-the-sdk/MyResourceDetector.cs @@ -14,4 +14,4 @@ public Resource Detect() return new Resource(attributes); } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/MySampler.cs b/docs/trace/extending-the-sdk/MySampler.cs index 7b008d8122a..bbb4ae04793 100644 --- a/docs/trace/extending-the-sdk/MySampler.cs +++ b/docs/trace/extending-the-sdk/MySampler.cs @@ -10,4 +10,4 @@ public override SamplingResult ShouldSample(in SamplingParameters param) Console.WriteLine($"MySampler.ShouldSample({param.Name})"); return new SamplingResult(SamplingDecision.RecordAndSample); } -} \ No newline at end of file +} diff --git a/docs/trace/extending-the-sdk/Program.cs b/docs/trace/extending-the-sdk/Program.cs index 35009277d6f..ce001aee3e3 100644 --- a/docs/trace/extending-the-sdk/Program.cs +++ b/docs/trace/extending-the-sdk/Program.cs @@ -34,4 +34,4 @@ public static void Main() } } } -} \ No newline at end of file +} diff --git a/docs/trace/getting-started-aspnetcore/Program.cs b/docs/trace/getting-started-aspnetcore/Program.cs index ef3e8a27367..5c2affb0c43 100644 --- a/docs/trace/getting-started-aspnetcore/Program.cs +++ b/docs/trace/getting-started-aspnetcore/Program.cs @@ -19,4 +19,4 @@ app.MapGet("/", () => $"Hello World! OpenTelemetry Trace: {Activity.Current?.Id}"); -app.Run(); \ No newline at end of file +app.Run(); diff --git a/docs/trace/getting-started-console/Program.cs b/docs/trace/getting-started-console/Program.cs index 5f86493e9d2..4acaf7b8a80 100644 --- a/docs/trace/getting-started-console/Program.cs +++ b/docs/trace/getting-started-console/Program.cs @@ -28,4 +28,4 @@ public static void Main() // This will flush the remaining spans and shutdown the tracing pipeline. tracerProvider.Dispose(); } -} \ No newline at end of file +} diff --git a/docs/trace/getting-started-jaeger/Program.cs b/docs/trace/getting-started-jaeger/Program.cs index 6d01898b32e..d4603a71bd0 100644 --- a/docs/trace/getting-started-jaeger/Program.cs +++ b/docs/trace/getting-started-jaeger/Program.cs @@ -43,4 +43,4 @@ public static async Task Main() } } } -} \ No newline at end of file +} diff --git a/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs b/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs index dd62898350a..bca076a2734 100644 --- a/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs +++ b/docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs @@ -37,4 +37,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return this.linksBasedSampler.ShouldSample(samplingParameters); } -} \ No newline at end of file +} diff --git a/docs/trace/links-based-sampler/LinksBasedSampler.cs b/docs/trace/links-based-sampler/LinksBasedSampler.cs index 84e735d2df8..b9306fab232 100644 --- a/docs/trace/links-based-sampler/LinksBasedSampler.cs +++ b/docs/trace/links-based-sampler/LinksBasedSampler.cs @@ -33,4 +33,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame Console.WriteLine($"{samplingParameters.TraceId}: No linked span is sampled. Hence, LinksBasedSampler decision is Drop."); return new SamplingResult(SamplingDecision.Drop); } -} \ No newline at end of file +} diff --git a/docs/trace/links-based-sampler/Program.cs b/docs/trace/links-based-sampler/Program.cs index 6a5e8bf99eb..7ef89aa5fdb 100644 --- a/docs/trace/links-based-sampler/Program.cs +++ b/docs/trace/links-based-sampler/Program.cs @@ -52,4 +52,4 @@ private static IEnumerable GetActivityLinks(int seed) return linkedActivitiesList; } -} \ No newline at end of file +} diff --git a/docs/trace/links-creation-with-new-activities/Program.cs b/docs/trace/links-creation-with-new-activities/Program.cs index 6447d5b2b32..c03af7bcc82 100644 --- a/docs/trace/links-creation-with-new-activities/Program.cs +++ b/docs/trace/links-creation-with-new-activities/Program.cs @@ -83,4 +83,4 @@ public static async Task DoFanoutAsync() // This will ensure that the rest of the code executes in the context of the original activity. Activity.Current = previous; } -} \ No newline at end of file +} diff --git a/docs/trace/reporting-exceptions/Program.cs b/docs/trace/reporting-exceptions/Program.cs index 8381126c74d..62f2a11914e 100644 --- a/docs/trace/reporting-exceptions/Program.cs +++ b/docs/trace/reporting-exceptions/Program.cs @@ -36,4 +36,4 @@ public static void Main() // swallow the exception } } -} \ No newline at end of file +} diff --git a/docs/trace/stratified-sampling-example/Program.cs b/docs/trace/stratified-sampling-example/Program.cs index 3e607ee25ae..49d8e1b7e7b 100644 --- a/docs/trace/stratified-sampling-example/Program.cs +++ b/docs/trace/stratified-sampling-example/Program.cs @@ -56,4 +56,4 @@ public static void Main(string[] args) tagsList.Clear(); } } -} \ No newline at end of file +} diff --git a/docs/trace/stratified-sampling-example/StratifiedSampler.cs b/docs/trace/stratified-sampling-example/StratifiedSampler.cs index 4f6d9fb7486..cb01a23dee0 100644 --- a/docs/trace/stratified-sampling-example/StratifiedSampler.cs +++ b/docs/trace/stratified-sampling-example/StratifiedSampler.cs @@ -64,4 +64,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return new SamplingResult(SamplingDecision.Drop); } -} \ No newline at end of file +} diff --git a/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs b/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs index fd3017dfee7..bce691b0c16 100644 --- a/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs +++ b/docs/trace/tail-based-sampling-span-level/ParentBasedElseAlwaysRecordSampler.cs @@ -45,4 +45,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame // instrumentations end up populating the required attributes. return new SamplingResult(SamplingDecision.RecordOnly); } -} \ No newline at end of file +} diff --git a/docs/trace/tail-based-sampling-span-level/Program.cs b/docs/trace/tail-based-sampling-span-level/Program.cs index 4382ed8db4a..de4f8ea9f17 100644 --- a/docs/trace/tail-based-sampling-span-level/Program.cs +++ b/docs/trace/tail-based-sampling-span-level/Program.cs @@ -43,4 +43,4 @@ public static void Main(string[] args) } } } -} \ No newline at end of file +} diff --git a/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs b/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs index b8c1f14aa6f..5aa22092e75 100644 --- a/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs +++ b/docs/trace/tail-based-sampling-span-level/TailSamplingProcessor.cs @@ -57,4 +57,4 @@ private void IncludeForExportIfFailedActivity(Activity activity) Console.WriteLine($"Dropping activity with id {activity.Id} and status {activity.Status}"); } } -} \ No newline at end of file +} diff --git a/examples/AspNetCore/Controllers/WeatherForecastController.cs b/examples/AspNetCore/Controllers/WeatherForecastController.cs index 5098079f1c0..5cd6f2cfe8d 100644 --- a/examples/AspNetCore/Controllers/WeatherForecastController.cs +++ b/examples/AspNetCore/Controllers/WeatherForecastController.cs @@ -71,4 +71,4 @@ public IEnumerable Get() return forecast; } -} \ No newline at end of file +} diff --git a/examples/AspNetCore/Instrumentation.cs b/examples/AspNetCore/Instrumentation.cs index beec272f2da..190a7d24a6b 100644 --- a/examples/AspNetCore/Instrumentation.cs +++ b/examples/AspNetCore/Instrumentation.cs @@ -34,4 +34,4 @@ public void Dispose() this.ActivitySource.Dispose(); this.meter.Dispose(); } -} \ No newline at end of file +} diff --git a/examples/AspNetCore/Models/WeatherForecast.cs b/examples/AspNetCore/Models/WeatherForecast.cs index c515b41db56..f86f30db78a 100644 --- a/examples/AspNetCore/Models/WeatherForecast.cs +++ b/examples/AspNetCore/Models/WeatherForecast.cs @@ -12,4 +12,4 @@ public class WeatherForecast public int TemperatureF => 32 + (int)(this.TemperatureC / 0.5556); public string? Summary { get; set; } -} \ No newline at end of file +} diff --git a/examples/AspNetCore/Program.cs b/examples/AspNetCore/Program.cs index 68ea3fe4158..e41e068b407 100644 --- a/examples/AspNetCore/Program.cs +++ b/examples/AspNetCore/Program.cs @@ -178,4 +178,4 @@ app.UseOpenTelemetryPrometheusScrapingEndpoint(); } -app.Run(); \ No newline at end of file +app.Run(); diff --git a/examples/Console/InstrumentationWithActivitySource.cs b/examples/Console/InstrumentationWithActivitySource.cs index ddb2f3904bc..240f58289d8 100644 --- a/examples/Console/InstrumentationWithActivitySource.cs +++ b/examples/Console/InstrumentationWithActivitySource.cs @@ -160,4 +160,4 @@ public void Dispose() } } } -} \ No newline at end of file +} diff --git a/examples/Console/TestConsoleExporter.cs b/examples/Console/TestConsoleExporter.cs index 80f0ecc6fe2..cf3f803c4fd 100644 --- a/examples/Console/TestConsoleExporter.cs +++ b/examples/Console/TestConsoleExporter.cs @@ -67,4 +67,4 @@ public override void OnStart(Activity activity) } } } -} \ No newline at end of file +} diff --git a/examples/Console/TestGrpcNetClient.cs b/examples/Console/TestGrpcNetClient.cs index 1544381d902..d179d93913e 100644 --- a/examples/Console/TestGrpcNetClient.cs +++ b/examples/Console/TestGrpcNetClient.cs @@ -57,4 +57,4 @@ internal static object Run() return null; } -} \ No newline at end of file +} diff --git a/examples/Console/TestHttpClient.cs b/examples/Console/TestHttpClient.cs index 63e5db80714..27305a50523 100644 --- a/examples/Console/TestHttpClient.cs +++ b/examples/Console/TestHttpClient.cs @@ -38,4 +38,4 @@ internal static object Run() return null; } -} \ No newline at end of file +} diff --git a/examples/Console/TestInMemoryExporter.cs b/examples/Console/TestInMemoryExporter.cs index d71ec24c6b9..53d3dd7f49e 100644 --- a/examples/Console/TestInMemoryExporter.cs +++ b/examples/Console/TestInMemoryExporter.cs @@ -51,4 +51,4 @@ private static void RunWithActivitySource(ICollection exportedItems) "Press ENTER to stop."); System.Console.ReadLine(); } -} \ No newline at end of file +} diff --git a/examples/Console/TestLogs.cs b/examples/Console/TestLogs.cs index c5f34408f39..13a7b7f60e7 100644 --- a/examples/Console/TestLogs.cs +++ b/examples/Console/TestLogs.cs @@ -110,4 +110,4 @@ internal static object Run(LogsOptions options) return null; } -} \ No newline at end of file +} diff --git a/examples/Console/TestMetrics.cs b/examples/Console/TestMetrics.cs index 7b1f891d763..ba943e91775 100644 --- a/examples/Console/TestMetrics.cs +++ b/examples/Console/TestMetrics.cs @@ -152,4 +152,4 @@ internal static object Run(MetricsOptions options) return null; } -} \ No newline at end of file +} diff --git a/examples/Console/TestOTelShimWithConsoleExporter.cs b/examples/Console/TestOTelShimWithConsoleExporter.cs index 9cf7910b029..6557357a963 100644 --- a/examples/Console/TestOTelShimWithConsoleExporter.cs +++ b/examples/Console/TestOTelShimWithConsoleExporter.cs @@ -42,4 +42,4 @@ internal static object Run(OpenTelemetryShimOptions options) return null; } -} \ No newline at end of file +} diff --git a/examples/Console/TestOpenTracingShim.cs b/examples/Console/TestOpenTracingShim.cs index 34c6fc19f7c..0de2419b6ef 100644 --- a/examples/Console/TestOpenTracingShim.cs +++ b/examples/Console/TestOpenTracingShim.cs @@ -55,4 +55,4 @@ internal static object Run(OpenTracingShimOptions options) return null; } -} \ No newline at end of file +} diff --git a/examples/Console/TestOtlpExporter.cs b/examples/Console/TestOtlpExporter.cs index c7377102c03..94d749eafef 100644 --- a/examples/Console/TestOtlpExporter.cs +++ b/examples/Console/TestOtlpExporter.cs @@ -89,4 +89,4 @@ private static object RunWithActivitySource(string endpoint, string protocol) "http/protobuf" => OtlpExportProtocol.HttpProtobuf, _ => null, }; -} \ No newline at end of file +} diff --git a/examples/Console/TestPrometheusExporter.cs b/examples/Console/TestPrometheusExporter.cs index 7a0cd0401ab..57f38c466df 100644 --- a/examples/Console/TestPrometheusExporter.cs +++ b/examples/Console/TestPrometheusExporter.cs @@ -90,4 +90,4 @@ private static IEnumerable> GetThreadCpuTime(Process process yield return new(thread.TotalProcessorTime.TotalMilliseconds, new("ProcessId", process.Id), new("ThreadId", thread.Id)); } } -} \ No newline at end of file +} diff --git a/examples/Console/TestZipkinExporter.cs b/examples/Console/TestZipkinExporter.cs index 645dae79dc6..271826a7c2b 100644 --- a/examples/Console/TestZipkinExporter.cs +++ b/examples/Console/TestZipkinExporter.cs @@ -44,4 +44,4 @@ internal static object Run(string zipkinUri) return null; } -} \ No newline at end of file +} diff --git a/examples/GrpcService/Program.cs b/examples/GrpcService/Program.cs index e005ca0517e..5ed8ceb4c34 100644 --- a/examples/GrpcService/Program.cs +++ b/examples/GrpcService/Program.cs @@ -19,4 +19,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) => webBuilder.UseStartup(); webBuilder.UseUrls("https://localhost:44335"); }); -} \ No newline at end of file +} diff --git a/examples/GrpcService/Services/GreeterService.cs b/examples/GrpcService/Services/GreeterService.cs index fb99aebf968..011439970fb 100644 --- a/examples/GrpcService/Services/GreeterService.cs +++ b/examples/GrpcService/Services/GreeterService.cs @@ -21,4 +21,4 @@ public override Task SayHello(HelloRequest request, ServerCallContex Message = "Hello " + request.Name, }); } -} \ No newline at end of file +} diff --git a/examples/GrpcService/Startup.cs b/examples/GrpcService/Startup.cs index a5069627cc5..d23af73550f 100644 --- a/examples/GrpcService/Startup.cs +++ b/examples/GrpcService/Startup.cs @@ -68,4 +68,4 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) }); }); } -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs b/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs index d156787f46c..09de208df21 100644 --- a/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs +++ b/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs @@ -86,4 +86,4 @@ private IEnumerable ExtractTraceContextFromBasicProperties(IBasicPropert return Enumerable.Empty(); } -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs b/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs index 655737cdca5..969cf279cb4 100644 --- a/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs +++ b/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs @@ -98,4 +98,4 @@ private void InjectTraceContextIntoBasicProperties(IBasicProperties props, strin this.logger.LogError(ex, "Failed to inject trace context."); } } -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs b/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs index 4439d08aacc..476bc26a853 100644 --- a/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs +++ b/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs @@ -65,4 +65,4 @@ public static void AddMessagingTags(Activity activity) activity?.SetTag("messaging.destination", DefaultExchangeName); activity?.SetTag("messaging.rabbitmq.routing_key", TestQueueName); } -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs b/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs index f8c1e51774c..6a8a5f9564a 100644 --- a/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs +++ b/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs @@ -24,4 +24,4 @@ public string Get() { return this.messageSender.SendMessage(); } -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/WebApi/Program.cs b/examples/MicroserviceExample/WebApi/Program.cs index 22b91b82001..9ed5a0b9c01 100644 --- a/examples/MicroserviceExample/WebApi/Program.cs +++ b/examples/MicroserviceExample/WebApi/Program.cs @@ -16,4 +16,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) => { webBuilder.UseUrls("http://*:5000").UseStartup(); }); -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/WebApi/Startup.cs b/examples/MicroserviceExample/WebApi/Startup.cs index 488d9d1e499..b77ea597c73 100644 --- a/examples/MicroserviceExample/WebApi/Startup.cs +++ b/examples/MicroserviceExample/WebApi/Startup.cs @@ -46,4 +46,4 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapControllers(); }); } -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/WorkerService/Program.cs b/examples/MicroserviceExample/WorkerService/Program.cs index 11769319d39..24e03322c12 100644 --- a/examples/MicroserviceExample/WorkerService/Program.cs +++ b/examples/MicroserviceExample/WorkerService/Program.cs @@ -30,4 +30,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) => b.Endpoint = new Uri($"http://{zipkinHostName}:9411/api/v2/spans"); })); }); -} \ No newline at end of file +} diff --git a/examples/MicroserviceExample/WorkerService/Worker.cs b/examples/MicroserviceExample/WorkerService/Worker.cs index 586e012c689..9b3fa484d19 100644 --- a/examples/MicroserviceExample/WorkerService/Worker.cs +++ b/examples/MicroserviceExample/WorkerService/Worker.cs @@ -32,4 +32,4 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) await Task.CompletedTask.ConfigureAwait(false); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs index 96c452440cc..2145d23c19e 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/AssemblyInfo.cs @@ -22,4 +22,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs index 3a25d168d0e..a8629e7f37d 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/IConfigureLoggerProviderBuilder.cs @@ -15,4 +15,4 @@ internal interface IConfigureLoggerProviderBuilder /// . /// . void ConfigureBuilder(IServiceProvider serviceProvider, LoggerProviderBuilder loggerProviderBuilder); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs index 8ebdf77ed9d..05deee48091 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/ILoggerProviderBuilder.cs @@ -34,4 +34,4 @@ internal interface ILoggerProviderBuilder : IDeferredLoggerProviderBuilder /// Configuration callback. /// The supplied for chaining. LoggerProviderBuilder ConfigureServices(Action configure); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs index 84100114a42..4f54e125e29 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/LoggerProviderServiceCollectionBuilder.cs @@ -65,4 +65,4 @@ private LoggerProviderServiceCollectionBuilder ConfigureServicesInternal(Action< return this; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs index 236472a7cf8..72b3f21de77 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggerProviderBuilderExtensions.cs @@ -239,4 +239,4 @@ internal static LoggerProviderBuilder ConfigureBuilder( return loggerProviderBuilder; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs index 96bbbb71666..b30085b5744 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Logs/OpenTelemetryDependencyInjectionLoggingServiceCollectionExtensions.cs @@ -169,4 +169,4 @@ public void ConfigureBuilder(IServiceProvider serviceProvider, LoggerProviderBui this.configure(serviceProvider, loggerProviderBuilder); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs index 3fab9a285c6..472126e80b7 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IConfigureMeterProviderBuilder.cs @@ -15,4 +15,4 @@ internal interface IConfigureMeterProviderBuilder /// . /// . void ConfigureBuilder(IServiceProvider serviceProvider, MeterProviderBuilder meterProviderBuilder); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs index d9830567322..e52858935f6 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/IMeterProviderBuilder.cs @@ -34,4 +34,4 @@ internal interface IMeterProviderBuilder : IDeferredMeterProviderBuilder /// Configuration callback. /// The supplied for chaining. MeterProviderBuilder ConfigureServices(Action configure); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs index 6ea7107c656..1297d4de441 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Metrics/MeterProviderServiceCollectionBuilder.cs @@ -78,4 +78,4 @@ private MeterProviderServiceCollectionBuilder ConfigureServicesInternal(Action. /// . void ConfigureBuilder(IServiceProvider serviceProvider, TracerProviderBuilder tracerProviderBuilder); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs index 6ae13423478..20c465142f6 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/ITracerProviderBuilder.cs @@ -34,4 +34,4 @@ internal interface ITracerProviderBuilder : IDeferredTracerProviderBuilder /// Configuration callback. /// The supplied for chaining. TracerProviderBuilder ConfigureServices(Action configure); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs index ca80c9e8439..35088b2a5ef 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracerProviderBuilderExtensions.cs @@ -172,4 +172,4 @@ internal static TracerProviderBuilder ConfigureBuilder( return tracerProviderBuilder; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs index ff51fa859e3..6a7ceb2a3be 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/OpenTelemetryDependencyInjectionTracingServiceCollectionExtensions.cs @@ -104,4 +104,4 @@ public void ConfigureBuilder(IServiceProvider serviceProvider, TracerProviderBui this.configure(serviceProvider, tracerProviderBuilder); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs index 80ba98db8c7..bfc94c051a9 100644 --- a/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs +++ b/src/OpenTelemetry.Api.ProviderBuilderExtensions/Trace/TracerProviderServiceCollectionBuilder.cs @@ -91,4 +91,4 @@ private TracerProviderServiceCollectionBuilder ConfigureServicesInternal(Action< return this; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/ActivityContextExtensions.cs b/src/OpenTelemetry.Api/ActivityContextExtensions.cs index 2c89d718fe6..f50a9af8fee 100644 --- a/src/OpenTelemetry.Api/ActivityContextExtensions.cs +++ b/src/OpenTelemetry.Api/ActivityContextExtensions.cs @@ -26,4 +26,4 @@ public static bool IsValid(this ActivityContext ctx) { return ctx != default; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index 302cd58b420..47bca9e5f57 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -29,4 +29,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Api/Baggage.cs b/src/OpenTelemetry.Api/Baggage.cs index 92458faef87..09e19a6ecf7 100644 --- a/src/OpenTelemetry.Api/Baggage.cs +++ b/src/OpenTelemetry.Api/Baggage.cs @@ -366,4 +366,4 @@ private sealed class BaggageHolder { public Baggage Baggage; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/BaseProvider.cs b/src/OpenTelemetry.Api/BaseProvider.cs index 408b2c2fd48..ce8e30a46b7 100644 --- a/src/OpenTelemetry.Api/BaseProvider.cs +++ b/src/OpenTelemetry.Api/BaseProvider.cs @@ -32,4 +32,4 @@ public void Dispose() protected virtual void Dispose(bool disposing) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs index e03cebd146b..15eb31d08c2 100644 --- a/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs @@ -43,4 +43,4 @@ public override void Set(T value) { this.slot.Value = value; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs b/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs index f884c00d54c..1e16ea42601 100644 --- a/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs +++ b/src/OpenTelemetry.Api/Context/IRuntimeContextSlotValueAccessor.cs @@ -12,4 +12,4 @@ public interface IRuntimeContextSlotValueAccessor /// Gets or sets the value of the slot as an . /// object Value { get; set; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs b/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs index 47e86aa6739..10b4aee1d81 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs @@ -255,4 +255,4 @@ private static PropagationContext ExtractFromSingleHeader(PropagationContext return context; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs index ac3d7b1162b..57bdb453b8f 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs @@ -161,4 +161,4 @@ internal static bool TryExtractBaggage(string[] baggageCollection, out Dictionar baggage = baggageDictionary; return baggageDictionary != null; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs index 7cf101e6586..a6b12c3cd1b 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs @@ -47,4 +47,4 @@ public override void Inject(PropagationContext context, T carrier, Action(PropagationContext context, T carr public override void Inject(PropagationContext context, T carrier, Action setter) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs b/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs index 5a014e82282..77b6c71e77a 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs @@ -67,4 +67,4 @@ public override int GetHashCode() return hash; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs b/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs index f5667136971..c1dab62400d 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/Propagators.cs @@ -22,4 +22,4 @@ internal static void Reset() { DefaultTextMapPropagator = Noop; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs index 3e51285ee36..1000b317bf5 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs @@ -35,4 +35,4 @@ public abstract class TextMapPropagator /// Function that will return string value of a key with the specified name. /// Context from it's text representation. public abstract PropagationContext Extract(PropagationContext context, T carrier, Func> getter); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs index 40c83df3398..90a65a5fb0a 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs @@ -425,4 +425,4 @@ private static bool IsLowerAlphaDigit(char c) { return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs b/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs index 1ae9f6fd008..717e1a94584 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs @@ -253,4 +253,4 @@ private static bool ValidateValue(ReadOnlySpan value) return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs index 2ccefd159cb..61d2722653b 100644 --- a/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/RemotingRuntimeContextSlot.cs @@ -68,4 +68,4 @@ public override void Set(T value) CallContext.LogicalSetData(this.Name, wrapper); } } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Api/Context/RuntimeContext.cs b/src/OpenTelemetry.Api/Context/RuntimeContext.cs index e43f6fc5185..93c96299d2f 100644 --- a/src/OpenTelemetry.Api/Context/RuntimeContext.cs +++ b/src/OpenTelemetry.Api/Context/RuntimeContext.cs @@ -189,4 +189,4 @@ private static object GuardNotFound(string slotName) return slot; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs index 01095b23e86..918e4b79424 100644 --- a/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs @@ -49,4 +49,4 @@ public void Dispose() protected virtual void Dispose(bool disposing) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs index 9760a0223b2..c7724a842b4 100644 --- a/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs @@ -60,4 +60,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs b/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs index 6fc8ee49b03..ea802a6ed15 100644 --- a/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs +++ b/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs @@ -108,4 +108,4 @@ public void FailedToInjectBaggage(string format, string error) { this.WriteEvent(11, format, error); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs index daa13698c02..b7f5f3b0811 100644 --- a/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/IDeferredLoggerProviderBuilder.cs @@ -31,4 +31,4 @@ interface IDeferredLoggerProviderBuilder /// Configuration callback. /// The supplied for chaining. LoggerProviderBuilder Configure(Action configure); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs index 8d8d8e2c9c7..fec0abeecc9 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordAttributeList.cs @@ -327,4 +327,4 @@ public readonly void Dispose() readonly void IEnumerator.Reset() => throw new NotSupportedException(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/LogRecordData.cs b/src/OpenTelemetry.Api/Logs/LogRecordData.cs index 190ab97315a..ab5af385266 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordData.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordData.cs @@ -133,4 +133,4 @@ internal static void SetActivityContext(ref LogRecordData data, Activity? activi data.TraceFlags = ActivityTraceFlags.None; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs index 06050eb1b14..760f6882997 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverity.cs @@ -93,4 +93,4 @@ enum LogRecordSeverity /// Fatal4 severity (24). Fatal4 = Fatal3 + 1, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs index f50f21d828c..c7f180294b7 100644 --- a/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs +++ b/src/OpenTelemetry.Api/Logs/LogRecordSeverityExtensions.cs @@ -108,4 +108,4 @@ public static string ToShortName(this LogRecordSeverity logRecordSeverity) return LogRecordSeverityShortNames[severityLevel]; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/Logger.cs b/src/OpenTelemetry.Api/Logs/Logger.cs index 53cc8ca8eea..6db679016fb 100644 --- a/src/OpenTelemetry.Api/Logs/Logger.cs +++ b/src/OpenTelemetry.Api/Logs/Logger.cs @@ -61,4 +61,4 @@ internal void SetInstrumentationScope( { this.Version = version; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs index 8fa690b6934..fd8099715cf 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProvider.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProvider.cs @@ -81,4 +81,4 @@ protected virtual bool TryCreateLogger( logger = null; return false; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs index b8e73a7f515..617a51ead09 100644 --- a/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Logs/LoggerProviderBuilder.cs @@ -35,4 +35,4 @@ protected LoggerProviderBuilder() public abstract LoggerProviderBuilder AddInstrumentation( Func instrumentationFactory) where TInstrumentation : class?; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Logs/NoopLogger.cs b/src/OpenTelemetry.Api/Logs/NoopLogger.cs index 2e02481a26f..f33ec668aca 100644 --- a/src/OpenTelemetry.Api/Logs/NoopLogger.cs +++ b/src/OpenTelemetry.Api/Logs/NoopLogger.cs @@ -17,4 +17,4 @@ public override void EmitLog( in LogRecordAttributeList attributes) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs b/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs index b3803a06760..c283219c431 100644 --- a/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs @@ -19,4 +19,4 @@ public interface IDeferredMeterProviderBuilder /// Configuration callback. /// The supplied for chaining. MeterProviderBuilder Configure(Action configure); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Metrics/MeterProvider.cs b/src/OpenTelemetry.Api/Metrics/MeterProvider.cs index c9191ec8922..a16fd88df93 100644 --- a/src/OpenTelemetry.Api/Metrics/MeterProvider.cs +++ b/src/OpenTelemetry.Api/Metrics/MeterProvider.cs @@ -16,4 +16,4 @@ public class MeterProvider : BaseProvider protected MeterProvider() { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs b/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs index 76fdf3ac231..95075dbe703 100644 --- a/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs @@ -33,4 +33,4 @@ public abstract MeterProviderBuilder AddInstrumentation( /// Meter names. /// Returns for chaining. public abstract MeterProviderBuilder AddMeter(params string[] names); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs index 3a890936046..036d8c11a7c 100644 --- a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs +++ b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs @@ -97,4 +97,4 @@ public static void RecordException(this Activity activity, Exception? ex, in Tag activity.AddEvent(new ActivityEvent(SemanticConventions.AttributeExceptionEventName, default, tagsCollection)); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs b/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs index 141a5cc900b..8be46ae4432 100644 --- a/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs @@ -20,4 +20,4 @@ public interface IDeferredTracerProviderBuilder /// Configuration callback. /// The supplied for chaining. TracerProviderBuilder Configure(Action configure); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/Link.cs b/src/OpenTelemetry.Api/Trace/Link.cs index f95da67d03c..45af8791625 100644 --- a/src/OpenTelemetry.Api/Trace/Link.cs +++ b/src/OpenTelemetry.Api/Trace/Link.cs @@ -72,4 +72,4 @@ public override int GetHashCode() /// public bool Equals(Link other) => this.ActivityLink.Equals(other.ActivityLink); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/SpanAttributes.cs b/src/OpenTelemetry.Api/Trace/SpanAttributes.cs index aa6759c8b11..84850ae048d 100644 --- a/src/OpenTelemetry.Api/Trace/SpanAttributes.cs +++ b/src/OpenTelemetry.Api/Trace/SpanAttributes.cs @@ -125,4 +125,4 @@ private void AddInternal(string key, object? value) this.Attributes[key] = value; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/SpanContext.cs b/src/OpenTelemetry.Api/Trace/SpanContext.cs index c1f12ca9294..b94f50cc5f6 100644 --- a/src/OpenTelemetry.Api/Trace/SpanContext.cs +++ b/src/OpenTelemetry.Api/Trace/SpanContext.cs @@ -136,4 +136,4 @@ private static bool IsTraceIdValid(ActivityTraceId traceId) private static bool IsSpanIdValid(ActivitySpanId spanId) => spanId != default; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/SpanKind.cs b/src/OpenTelemetry.Api/Trace/SpanKind.cs index bf01ce63ede..f3237a6bd4a 100644 --- a/src/OpenTelemetry.Api/Trace/SpanKind.cs +++ b/src/OpenTelemetry.Api/Trace/SpanKind.cs @@ -38,4 +38,4 @@ public enum SpanKind /// spans. /// Consumer = 5, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/Status.cs b/src/OpenTelemetry.Api/Trace/Status.cs index 126b075fc65..b7d0eb35c32 100644 --- a/src/OpenTelemetry.Api/Trace/Status.cs +++ b/src/OpenTelemetry.Api/Trace/Status.cs @@ -107,4 +107,4 @@ public override string ToString() /// public bool Equals(Status other) => this.StatusCode == other.StatusCode && this.Description == other.Description; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/StatusCode.cs b/src/OpenTelemetry.Api/Trace/StatusCode.cs index 5f5bb320eb7..9332d708d06 100644 --- a/src/OpenTelemetry.Api/Trace/StatusCode.cs +++ b/src/OpenTelemetry.Api/Trace/StatusCode.cs @@ -24,4 +24,4 @@ public enum StatusCode /// The operation contains an error. /// Error = 2, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs b/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs index c34b9bff5b0..f70598d078b 100644 --- a/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs +++ b/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs @@ -342,4 +342,4 @@ private void AddEventInternal(string name, DateTimeOffset timestamp = default, A this.Activity!.AddEvent(new ActivityEvent(name, timestamp, tags)); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/Tracer.cs b/src/OpenTelemetry.Api/Trace/Tracer.cs index 6cbfe3b2c3a..44bf17e1f5c 100644 --- a/src/OpenTelemetry.Api/Trace/Tracer.cs +++ b/src/OpenTelemetry.Api/Trace/Tracer.cs @@ -233,4 +233,4 @@ private TelemetrySpan StartSpanHelper( } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/TracerProvider.cs b/src/OpenTelemetry.Api/Trace/TracerProvider.cs index ea3a474a2d6..1dc0a5f2936 100644 --- a/src/OpenTelemetry.Api/Trace/TracerProvider.cs +++ b/src/OpenTelemetry.Api/Trace/TracerProvider.cs @@ -112,4 +112,4 @@ public TracerKey(string? name, string? version) this.Version = version; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs b/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs index 4112a8b94a3..0a8c3dae3da 100644 --- a/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs @@ -45,4 +45,4 @@ public abstract TracerProviderBuilder AddInstrumentation( /// Operation name of the objects to capture. /// Returns for chaining. public abstract TracerProviderBuilder AddLegacySource(string operationName); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs index be96039b728..c87a184d7ec 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleActivityExporter.cs @@ -130,4 +130,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs index cea3c34d735..4806670a009 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporter.cs @@ -29,4 +29,4 @@ protected void WriteLine(string message) System.Diagnostics.Trace.WriteLine(message); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs index 3ef3dc03cb1..b79aa0d9ed9 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterHelperExtensions.cs @@ -55,4 +55,4 @@ public static TracerProviderBuilder AddConsoleExporter( return new SimpleActivityExportProcessor(new ConsoleActivityExporter(options)); }); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs index c4899725897..afd5a15a3a4 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterLoggingExtensions.cs @@ -119,4 +119,4 @@ static LoggerProviderBuilder AddConsoleExporter( return new SimpleLogRecordExportProcessor(new ConsoleLogRecordExporter(options)); }); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs index 2af666297a3..103593efddd 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterMetricsExtensions.cs @@ -116,4 +116,4 @@ private static MetricReader BuildConsoleExporterMetricReader( DefaultExportIntervalMilliseconds, DefaultExportTimeoutMilliseconds); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs index 75b5192286c..ca20795508a 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOptions.cs @@ -9,4 +9,4 @@ public class ConsoleExporterOptions /// Gets or sets the output targets for the console exporter. /// public ConsoleExporterOutputTargets Targets { get; set; } = ConsoleExporterOutputTargets.Console; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs index b1e8fa56000..83bda21b869 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleExporterOutputTargets.cs @@ -15,4 +15,4 @@ public enum ConsoleExporterOutputTargets /// Output to the Debug trace. /// Debug = 0b10, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs index b751c2361bb..1baf208c811 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleLogRecordExporter.cs @@ -163,4 +163,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs b/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs index 9fadd3075b2..4899f0d923e 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleMetricExporter.cs @@ -248,4 +248,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs b/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs index 93c779b5d4a..308d2da6e1e 100644 --- a/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs +++ b/src/OpenTelemetry.Exporter.Console/ConsoleTagTransformer.cs @@ -23,4 +23,4 @@ private ConsoleTagTransformer() protected override string TransformArrayTag(string key, Array array) => this.TransformStringTag(key, TagTransformerJsonHelper.JsonSerializeArrayTag(array)); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs index 49a17097cb8..dedcf65b37c 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporter.cs @@ -63,4 +63,4 @@ private ExportResult DefaultExport(in Batch batch) return ExportResult.Success; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs index 58e781ffc23..3940a846bc3 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterHelperExtensions.cs @@ -22,4 +22,4 @@ public static TracerProviderBuilder AddInMemoryExporter(this TracerProviderBuild return builder.AddProcessor(new SimpleActivityExportProcessor(new InMemoryExporter(exportedItems))); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs index a1869f9d649..855c96f957f 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterLoggingExtensions.cs @@ -74,4 +74,4 @@ private static ExportResult ExportLogRecord(in Batch batch, ICollecti return ExportResult.Success; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs index 3f7a0b2b44a..e645b67b455 100644 --- a/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs +++ b/src/OpenTelemetry.Exporter.InMemory/InMemoryExporterMetricsExtensions.cs @@ -188,4 +188,4 @@ private static ExportResult ExportMetricSnapshot(in Batch batch, ICollec return ExportResult.Success; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs b/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs index f5cabda636d..983cf7bb2b8 100644 --- a/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs +++ b/src/OpenTelemetry.Exporter.InMemory/MetricSnapshot.cs @@ -39,4 +39,4 @@ public MetricSnapshot(Metric metric) public string MeterVersion => this.instrumentIdentity.MeterVersion; public IReadOnlyList MetricPoints { get; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs index 88c4d3bd53e..3f125304deb 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/AssemblyInfo.cs @@ -11,4 +11,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests")] [assembly: InternalsVisibleTo("Benchmarks")] [assembly: InternalsVisibleTo("MockOpenTelemetryCollector")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs index 4dc352c02d4..c99f0c2abde 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs @@ -390,4 +390,4 @@ public void EnumerateLinks(Activity activity, int maxLinks) } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs index 813ff1766ab..348b3e9aa09 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalOptions.cs @@ -45,4 +45,4 @@ public ExperimentalOptions(IConfiguration configuration) /// Gets or sets a value indicating whether log event attributes should be exported. /// public bool EmitLogEventAttributes { get; set; } = false; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs index 064389ae5ab..dd9390004ae 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpGrpcExportClient.cs @@ -58,4 +58,4 @@ public virtual bool Shutdown(int timeoutMilliseconds) return Task.WaitAny(new Task[] { this.Channel.ShutdownAsync(), Task.Delay(timeoutMilliseconds) }) == 0; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs index a41d398f332..076cdb7f506 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs @@ -84,4 +84,4 @@ protected HttpResponseMessage SendHttpRequest(HttpRequestMessage request, Cancel return this.HttpClient.SendAsync(request, cancellationToken).GetAwaiter().GetResult(); #endif } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs index 40a42db8bda..87b817e05e5 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ExporterClientValidation.cs @@ -26,4 +26,4 @@ internal static void EnsureUnencryptedSupportIsEnabled(OtlpExporterOptions optio } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs index 37ba2d05991..7cb2822b478 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/IExportClient.cs @@ -26,4 +26,4 @@ internal interface IExportClient /// Returns true if shutdown succeeded; otherwise, false. /// bool Shutdown(int timeoutMilliseconds); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs index aa468d7f459..9790be3b850 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcLogExportClient.cs @@ -43,4 +43,4 @@ public override bool SendExportRequest(OtlpCollector.ExportLogsServiceRequest re return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs index 1308e7db062..117334d8347 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcMetricsExportClient.cs @@ -43,4 +43,4 @@ public override bool SendExportRequest(OtlpCollector.ExportMetricsServiceRequest return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs index 6adc8a23e2e..8210587698a 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpGrpcTraceExportClient.cs @@ -43,4 +43,4 @@ public override bool SendExportRequest(OtlpCollector.ExportTraceServiceRequest r return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs index 0e1f2287fc8..ff872c1073a 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpLogExportClient.cs @@ -66,4 +66,4 @@ private void SerializeToStreamInternal(Stream stream) this.exportRequest.WriteTo(stream); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs index 441746e2590..1a893ddea2f 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs @@ -66,4 +66,4 @@ private void SerializeToStreamInternal(Stream stream) this.exportRequest.WriteTo(stream); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs index edac087e6f8..7e49fac8cf6 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs @@ -66,4 +66,4 @@ private void SerializeToStreamInternal(Stream stream) this.exportRequest.WriteTo(stream); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs index bcaad6e5bb6..e1db5e5007b 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpRetry.cs @@ -235,4 +235,4 @@ public RetryResult(bool throttled, TimeSpan retryDelay, int nextRetryDelayMillis this.NextRetryDelayMilliseconds = nextRetryDelayMilliseconds; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs index fa4525eaadb..d93105e3dfb 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/MetricItemExtensions.cs @@ -426,4 +426,4 @@ private static OtlpMetrics.Exemplar ToOtlpExemplar(this IExemplar exemplar) return otlpExemplar; } */ -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs index a64d512ab9a..45f5a87f94d 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs @@ -77,4 +77,4 @@ public void InvalidEnvironmentVariable(string key, string value) { this.WriteEvent(11, key, value); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs index 6e3628d01f6..3f82c37573e 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpKeyValueTransformer.cs @@ -78,4 +78,4 @@ protected override OtlpCommon.AnyValue TransformArrayValue(Array array) return new OtlpCommon.AnyValue { ArrayValue = arrayValue }; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs index b75ae538688..ad76b1bb7cd 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordTransformer.cs @@ -274,4 +274,4 @@ private static OtlpLogs.SeverityNumber GetSeverityNumber(LogRecordSeverity? seve return (OtlpLogs.SeverityNumber)(int)severity.Value; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs index d72ea7cdbf9..77c01c368ae 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs @@ -34,4 +34,4 @@ public static OtlpResource.Resource ToOtlpResource(this Resource resource) return processResource; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs index 6a3214c6152..190335e5456 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/SdkLimitOptions.cs @@ -173,4 +173,4 @@ private static void SetIntConfigValue(IConfiguration configuration, string key, setter(defaultValue); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs index a4db4cdcd72..515c1e6ba39 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/TimestampHelpers.cs @@ -25,4 +25,4 @@ internal static long ToNanoseconds(this TimeSpan duration) { return duration.Ticks * NanosecondsPerTicks; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs index 2afe6b0227c..10375e1dfc6 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs @@ -17,4 +17,4 @@ public enum OtlpExportProtocol : byte /// OTLP over HTTP with protobuf payloads (corresponds to 'http/protobuf' Protocol configuration option). /// HttpProtobuf = 1, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs index c265daf120c..e5e788c5617 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocolParser.cs @@ -20,4 +20,4 @@ public static bool TryParse(string value, out OtlpExportProtocol result) return false; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs index c7090e69ee6..e4c820cf58a 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs @@ -210,4 +210,4 @@ private static string GetUserAgentString() return UserAgentProduct; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs index 933c6adb378..496dbf4c8c4 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs @@ -176,4 +176,4 @@ internal static Uri AppendPathIfNotPresent(this Uri uri, string path) return new Uri(string.Concat(uri.AbsoluteUri, separator, path)); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs index d496a828f33..6577cbfae95 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs @@ -115,4 +115,4 @@ protected override bool OnShutdown(int timeoutMilliseconds) { return this.exportClient?.Shutdown(timeoutMilliseconds) ?? true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs index 11987bfd703..353204d4715 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs @@ -186,4 +186,4 @@ private static OtlpExporterOptions GetOtlpExporterOptions(IServiceProvider sp, s // safely use the Options API fully. return sp.GetRequiredService>().Get(finalName); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs index cbbf102847f..8a65a26ad01 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporter.cs @@ -95,4 +95,4 @@ protected override bool OnShutdown(int timeoutMilliseconds) { return this.exportClient?.Shutdown(timeoutMilliseconds) ?? true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs index 43e5ee77d00..f6e3be715d7 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpMetricExporterExtensions.cs @@ -194,4 +194,4 @@ internal static MetricReader BuildOtlpExporterMetricReader( metricExporter, metricReaderOptions); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs index 5cf70b5920e..9e3ce7d283c 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs @@ -103,4 +103,4 @@ protected override bool OnShutdown(int timeoutMilliseconds) { return this.exportClient?.Shutdown(timeoutMilliseconds) ?? true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs index fa2f6e5117d..45231f63604 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs @@ -127,4 +127,4 @@ internal static BaseProcessor BuildOtlpExporterProcessor( batchOptions.MaxExportBatchSize); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs index 3c7724c8150..a60715d185b 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/DirectorySizeTracker.cs @@ -79,4 +79,4 @@ internal static long CalculateFolderSize(string path) return directorySize; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs index ec9eec90af3..337c3226243 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlob.cs @@ -125,4 +125,4 @@ protected override bool OnTryDelete() return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs index 1d6e249fe4e..c9afdf34ce8 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/FileBlobProvider.cs @@ -215,4 +215,4 @@ private bool CheckStorageSize() return null; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs index ee3f108a144..2f0912feb75 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlob.cs @@ -112,4 +112,4 @@ public bool TryDelete() protected abstract bool OnTryLease(int leasePeriodMilliseconds); protected abstract bool OnTryDelete(); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs index 238c9dbe18a..5d4895f8d46 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentBlobProvider.cs @@ -120,4 +120,4 @@ public IEnumerable GetBlobs() protected abstract bool OnTryCreateBlob(byte[] buffer, [NotNullWhen(true)] out PersistentBlob? blob); protected abstract bool OnTryGetBlob([NotNullWhen(true)] out PersistentBlob? blob); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs index aa72c403dc5..0c8562ce319 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageAbstractionsEventSource.cs @@ -30,4 +30,4 @@ public void PersistentStorageAbstractionsException(string className, string mess { this.WriteEvent(1, className, message, ex); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs index 02c9f47a895..241023b2f89 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageEventSource.cs @@ -162,4 +162,4 @@ public void PersistentStorageInformation(string className, string message) { this.WriteEvent(11, className, message); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs index 0aa7218443e..538597dc18f 100644 --- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs +++ b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/PersistentStorage/PersistentStorageHelper.cs @@ -150,4 +150,4 @@ internal static DateTime GetDateTimeFromLeaseName(string filePath) DateTime.TryParseExact(time, "yyyy-MM-ddTHHmmss.fffffffZ", CultureInfo.InvariantCulture, DateTimeStyles.None, out var dateTime); return dateTime.ToUniversalTime(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs index b4ff66c14a5..59d05ae59c9 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/AssemblyInfo.cs @@ -9,4 +9,4 @@ #else [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests")] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs index 24c07f91328..dd40405599c 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs @@ -30,4 +30,4 @@ public int ScrapeResponseCacheDurationMilliseconds } internal PrometheusExporterOptions ExporterOptions { get; } = new(); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs index f7836a89dce..946f07d05aa 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterApplicationBuilderExtensions.cs @@ -136,4 +136,4 @@ public static IApplicationBuilder UseOpenTelemetryPrometheusScrapingEndpoint( builder.UseMiddleware(meterProvider); }); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs index b66e1889ef3..4e70f2f76c9 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterEndpointRouteBuilderExtensions.cs @@ -95,4 +95,4 @@ public static IEndpointConventionBuilder MapPrometheusScrapingEndpoint( return endpoints.Map(new PathString(path), builder.Build()); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs index 1703490e4c3..6a075fc1b99 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMeterProviderBuilderExtensions.cs @@ -71,4 +71,4 @@ private static MetricReader BuildPrometheusExporterMetricReader(PrometheusAspNet TemporalityPreference = MetricReaderTemporalityPreference.Cumulative, }; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs index 3ca37368a87..7e815c3e18c 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs @@ -114,4 +114,4 @@ private static bool AcceptsOpenMetrics(HttpRequest request) return false; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs index 29c8a38d3b8..7d6b4b08289 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/AssemblyInfo.cs @@ -11,4 +11,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.HttpListener.Tests")] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Prometheus.Tests")] [assembly: InternalsVisibleTo("Benchmarks")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs index 8d68ad30aba..e60047739ee 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs @@ -281,4 +281,4 @@ public CollectionResponse(ArraySegment view, DateTime generatedAtUtc, bool public bool FromCache { get; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs index 1016f464a08..b97d7e5d7f6 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporter.cs @@ -73,4 +73,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs index b377675fb18..a55cc6ef553 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterEventSource.cs @@ -64,4 +64,4 @@ public void NoMetrics() { this.WriteEvent(4); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs index 6fe64287f9e..e52f262f67f 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs @@ -28,4 +28,4 @@ public int ScrapeResponseCacheDurationMilliseconds this.scrapeResponseCacheDurationMilliseconds = value; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs index f1546dcb764..81576b723dc 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusHeadersParser.cs @@ -44,4 +44,4 @@ private static ReadOnlySpan SplitNext(ref ReadOnlySpan span, char ch return part; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs index 4f467b7afe4..6e93552f951 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusMetric.cs @@ -277,4 +277,4 @@ private static string MapPerUnit(ReadOnlySpan perUnit) _ => perUnit.ToString(), }; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs index 6d50c820b0d..7c3fc57ba0d 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs @@ -350,4 +350,4 @@ private static string MapPrometheusType(PrometheusType type) _ => "untyped", }; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs index 38ec69e99c1..fa9885a44b2 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs @@ -184,4 +184,4 @@ public static int WriteMetric(byte[] buffer, int cursor, Metric metric, Promethe return cursor; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs index 2193b56331a..ac3f73ff5e9 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusType.cs @@ -29,4 +29,4 @@ internal enum PrometheusType /// Mapped from Histogram. /// Histogram, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs index 4dbc1e3febd..beee72bc0d1 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs @@ -190,4 +190,4 @@ private async Task ProcessRequestAsync(HttpListenerContext context) { } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs index be2dda196ad..95e6b001072 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerMeterProviderBuilderExtensions.cs @@ -93,4 +93,4 @@ private static MetricReader BuildPrometheusHttpListenerMetricReader( return reader; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs index 8582706c9bb..959de162ddd 100644 --- a/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs +++ b/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListenerOptions.cs @@ -36,4 +36,4 @@ public IReadOnlyCollection UriPrefixes this.uriPrefixes = value; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs index b6f40168107..7ce3243549d 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/AssemblyInfo.cs @@ -9,4 +9,4 @@ #else [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Zipkin.Tests")] [assembly: InternalsVisibleTo("Benchmarks")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs index 5db11859cc8..768d308659d 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinActivityConversionExtensions.cs @@ -263,4 +263,4 @@ public void EnumerateEvents(Activity activity) } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs index 07a55033d5e..263faa48338 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinAnnotation.cs @@ -16,4 +16,4 @@ public ZipkinAnnotation( public long Timestamp { get; } public string Value { get; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs index 904f743a7e8..c6c9908b38e 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinEndpoint.cs @@ -86,4 +86,4 @@ public void Write(Utf8JsonWriter writer) writer.WriteEndObject(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs index c995dcf7687..8c5a3d3a0d5 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinExporterEventSource.cs @@ -40,4 +40,4 @@ public void InvalidEnvironmentVariable(string key, string value) { this.WriteEvent(3, key, value); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs index ddb8429ec42..e28fcda6a60 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpan.cs @@ -185,4 +185,4 @@ public void Write(Utf8JsonWriter writer) writer.WriteEndObject(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs index a9c386e4295..ee378e4cec6 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinSpanJsonHelper.cs @@ -42,4 +42,4 @@ internal static class ZipkinSpanJsonHelper public static readonly JsonEncodedText Ipv6PropertyName = JsonEncodedText.Encode("ipv6"); public static readonly JsonEncodedText PortPropertyName = JsonEncodedText.Encode("port"); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs index be33419e6c4..95ec122bcf9 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/Implementation/ZipkinTagTransformer.cs @@ -23,4 +23,4 @@ private ZipkinTagTransformer() protected override string TransformArrayTag(string key, Array array) => this.TransformStringTag(key, TagTransformerJsonHelper.JsonSerializeArrayTag(array)); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs index 601c7e2b92c..6c964e64393 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporter.cs @@ -252,4 +252,4 @@ private void SerializeToStreamInternal(Stream stream) this.writer.Flush(); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs index 1c275d5ae43..ca858c649ab 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterHelperExtensions.cs @@ -120,4 +120,4 @@ private static BaseProcessor BuildZipkinExporterProcessor( options.BatchExportProcessorOptions.MaxExportBatchSize); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs index 0552d802f39..6e04c9d4a79 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs @@ -91,4 +91,4 @@ internal ZipkinExporterOptions( /// an will be instantiated directly. /// public Func HttpClientFactory { get; set; } = DefaultHttpClientFactory; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs index 8a5910b2320..d36465c0505 100644 --- a/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Hosting/AssemblyInfo.cs @@ -15,4 +15,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs b/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs index b8ab94db6f5..1d31393b0fa 100644 --- a/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs +++ b/src/OpenTelemetry.Extensions.Hosting/Implementation/HostingExtensionsEventSource.cs @@ -30,4 +30,4 @@ public void LoggerProviderNotRegistered() { this.WriteEvent(3); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs b/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs index 2cb766d8e32..42056e779e1 100644 --- a/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs +++ b/src/OpenTelemetry.Extensions.Hosting/Implementation/OpenTelemetryMetricsListener.cs @@ -104,4 +104,4 @@ private void MeasurementRecordedLong(Instrument instrument, long value, ReadOnly meterProvider.MeasurementRecordedLongSingleStream(instrument, value, tagsRos, userState); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs b/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs index 32e1006c09c..ba2ac37ef01 100644 --- a/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs +++ b/src/OpenTelemetry.Extensions.Hosting/Implementation/TelemetryHostedService.cs @@ -59,4 +59,4 @@ internal static void Initialize(IServiceProvider serviceProvider) HostingExtensionsEventSource.Log.LoggerProviderNotRegistered(); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs index 231d77ba91f..c4820457ae3 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs @@ -233,4 +233,4 @@ OpenTelemetryBuilder WithLogging( return this; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs index 4b9d1832b1b..5d00bcf192a 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryMetricsBuilderExtensions.cs @@ -65,4 +65,4 @@ internal static void RegisterMetricsListener( configure(builder); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs index eae00826bd2..a91d186ccbd 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs @@ -47,4 +47,4 @@ public static OpenTelemetryBuilder AddOpenTelemetry(this IServiceCollection serv return new(services); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs b/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs index 3bc228d67ed..a06279f44f2 100644 --- a/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs +++ b/src/OpenTelemetry.Extensions.Propagators/AssemblyInfo.cs @@ -7,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Propagators.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051C1562A090FB0C9F391012A32198B5E5D9A60E9B80FA2D7B434C9E5CCB7259BD606E66F9660676AFC6692B8CDC6793D190904551D2103B7B22FA636DCBB8208839785BA402EA08FC00C8F1500CCEF28BBF599AA64FFB1E1D5DC1BF3420A3777BADFE697856E9D52070A50C3EA5821C80BEF17CA3ACFFA28F89DD413F096F898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Propagators.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs b/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs index 232b29da798..37ced1218e8 100644 --- a/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs +++ b/src/OpenTelemetry.Extensions.Propagators/B3Propagator.cs @@ -247,4 +247,4 @@ private static PropagationContext ExtractFromSingleHeader(PropagationContext return context; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs b/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs index e08e35fd076..472b719ded0 100644 --- a/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs +++ b/src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs @@ -161,4 +161,4 @@ internal static bool TryExtractTraceContext(string jaegerHeader, out ActivityTra return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs b/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs index ce62f870466..420679490ef 100644 --- a/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs +++ b/src/OpenTelemetry.Extensions.Propagators/OpenTelemetryPropagatorsEventSource.cs @@ -34,4 +34,4 @@ public void FailedToInjectActivityContext(string format, string error) { this.WriteEvent(2, format, error); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs index 1f014d5f836..d3096792624 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreInstrumentation.cs @@ -35,4 +35,4 @@ public void Dispose() { this.diagnosticSourceSubscriber?.Dispose(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs index f2a3c1be454..a819d561a9e 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetrics.cs @@ -38,4 +38,4 @@ public void Dispose() this.diagnosticSourceSubscriber?.Dispose(); } } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs index 4db053f48a6..9c6f210a71d 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreTraceInstrumentationOptions.cs @@ -77,4 +77,4 @@ public class AspNetCoreTraceInstrumentationOptions public bool EnableGrpcAspNetCoreSupport { get; set; } = true; #endif */ -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs index 1f05e6a6e37..2cd1a339fd4 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/AssemblyInfo.cs @@ -7,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.AspNetCore.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.AspNetCore.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs index 433111096a9..1ad239f33aa 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/AspNetCoreInstrumentationEventSource.cs @@ -79,4 +79,4 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, st { this.WriteEvent(5, handlerName, eventName, ex); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs index e66aaa6a9f0..67a79c50eb8 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInListener.cs @@ -390,4 +390,4 @@ private void AddGrpcAttributes(Activity activity, string grpcMethod, HttpContext } } #endif -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs index ec4052cdb79..4fe276ae2cc 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs @@ -124,4 +124,4 @@ public void OnStopEventWritten(string name, object payload) // TODO: Follow up with .NET team if we can continue to rely on this behavior. HttpServerRequestDuration.Record(Activity.Current.Duration.TotalSeconds, tags); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs index 53b2758119a..90f37eba3c2 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpTagHelper.cs @@ -30,4 +30,4 @@ public static string GetFlavorTagValueFromProtocol(string protocol) return protocol; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs index 55a89fcacaf..6f2e1fae8e4 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/TelemetryHelper.cs @@ -25,4 +25,4 @@ public static object GetBoxedStatusCode(int statusCode) return statusCode; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs index a2ec4c1beea..925575ff40f 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/MeterProviderBuilderExtensions.cs @@ -49,4 +49,4 @@ internal static MeterProviderBuilder ConfigureMeters(this MeterProviderBuilder b .AddMeter("Microsoft.AspNetCore.Diagnostics") .AddMeter("Microsoft.AspNetCore.RateLimiting"); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs index 3dcd3604e6b..38919cb1156 100644 --- a/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.AspNetCore/TracerProviderBuilderExtensions.cs @@ -117,4 +117,4 @@ private static void AddAspNetCoreInstrumentationSources( builder.AddLegacySource(HttpInListener.ActivityOperationName); // for the activities created by AspNetCore #endif } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs index 28e1fe74916..06eb7f16d20 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/AssemblyInfo.cs @@ -7,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Grpc.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Grpc.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs index 96e039803f8..7c9ee1ffede 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentation.cs @@ -27,4 +27,4 @@ public void Dispose() { this.diagnosticSourceSubscriber.Dispose(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs index 19154fe639f..4ed15104000 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcClientInstrumentationOptions.cs @@ -51,4 +51,4 @@ internal GrpcClientInstrumentationOptions(IConfiguration configuration) /// object from which additional information can be extracted to enrich the activity. /// public Action EnrichWithHttpResponseMessage { get; set; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs index ab6db91a42b..836beb226a8 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/GrpcTagHelper.cs @@ -73,4 +73,4 @@ public static ActivityStatusCode ResolveSpanStatusForGrpcStatusCode(int statusCo return status; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs index db9fa63ca10..2ce6add8ab6 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcClientDiagnosticListener.cs @@ -221,4 +221,4 @@ public void OnStopActivity(Activity activity, object payload) static bool TryFetchResponse(object payload, out HttpResponseMessage response) => StopResponseFetcher.TryFetch(payload, out response) && response != null; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs index 49fe78c99d6..0bfbd380760 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/Implementation/GrpcInstrumentationEventSource.cs @@ -49,4 +49,4 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, st { this.WriteEvent(3, handlerName, eventName, ex); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs index 3ea40066a10..4ddb1ec16cc 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/StatusCanonicalCode.cs @@ -132,4 +132,4 @@ internal enum StatusCanonicalCode /// The request does not have valid authentication credentials for the operation. /// Unauthenticated = 16, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs index 634eeb36717..3df0b394e2c 100644 --- a/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.GrpcNetClient/TracerProviderBuilderExtensions.cs @@ -70,4 +70,4 @@ public static TracerProviderBuilder AddGrpcClientInstrumentation( return new GrpcClientInstrumentation(options); }); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs index 95f94ceba52..d1d2362bb31 100644 --- a/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.Http/AssemblyInfo.cs @@ -7,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Http.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.Http.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs index c6671f1f03f..80a84bb57c3 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpClientInstrumentation.cs @@ -60,4 +60,4 @@ public void Dispose() { this.diagnosticSourceSubscriber?.Dispose(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs b/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs index 0236322be4f..f3773ed8fdc 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpClientMetrics.cs @@ -38,4 +38,4 @@ public void Dispose() { this.diagnosticSourceSubscriber?.Dispose(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs index 6fae4ce9f9f..95bb6dab7b0 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpClientTraceInstrumentationOptions.cs @@ -160,4 +160,4 @@ private static bool TryParseHttpRequestMessage(string activityName, object arg1, { return (requestMessage = arg1 as HttpRequestMessage) != null && activityName == "System.Net.Http.HttpRequestOut"; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs b/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs index 8e81dc78fa8..e1a02ef1696 100644 --- a/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs +++ b/src/OpenTelemetry.Instrumentation.Http/HttpRequestMessageContextPropagation.cs @@ -24,4 +24,4 @@ internal static class HttpRequestMessageContextPropagation request.Headers.Remove(name); request.Headers.Add(name, value); }; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs index afd8c8cfc53..e0625b420db 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs @@ -337,4 +337,4 @@ private static string GetErrorType(Exception exc) #endif return exc.GetType().FullName; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs index 4fcf8ddbdd7..496b739f573 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerMetricsDiagnosticListener.cs @@ -173,4 +173,4 @@ static bool TryFetchRequest(object payload, out HttpRequestMessage request) return true; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs index 46a9f58bed3..360fa496701 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpInstrumentationEventSource.cs @@ -100,4 +100,4 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, st { this.WriteEvent(7, handlerName, eventName, ex); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs index a5a2a894b23..7b3b460c3a8 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpTagHelper.cs @@ -71,4 +71,4 @@ public static string GetUriTagValueFromRequestUri(Uri uri) private static string ConvertHttpMethodToOperationName(HttpMethod method) => $"HTTP {method}"; private static string ConvertHttpMethodToName(HttpMethod method) => method.ToString(); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs index c9c366b8afa..63d3755672d 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebRequestActivitySource.netfx.cs @@ -1204,4 +1204,4 @@ public void AsyncCallback(IAsyncResult asyncResult) } } } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs index 682800c0f97..353a49b0e01 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/TelemetryHelper.cs @@ -39,4 +39,4 @@ public static string GetStatusCodeString(HttpStatusCode statusCode) return statusCode.ToString(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs index 342e367e627..e523518c3d6 100644 --- a/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.Http/MeterProviderBuilderExtensions.cs @@ -46,4 +46,4 @@ public static MeterProviderBuilder AddHttpClientInstrumentation( return builder; #endif } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs index 0e897030e94..80855ed7f90 100644 --- a/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.Http/TracerProviderBuilderExtensions.cs @@ -101,4 +101,4 @@ internal static void AddHttpClientInstrumentationSource( } } #endif -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs b/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs index e9cf16595e9..70e3c273ab2 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/AssemblyInfo.cs @@ -7,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.SqlClient.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Instrumentation.SqlClient.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs index 62bf8ab7c6f..287ee0d6dc0 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs @@ -25,4 +25,4 @@ internal sealed class SqlActivitySourceHelper { new KeyValuePair(SemanticConventions.AttributeDbSystem, MicrosoftSqlServerDatabaseSystemName), }; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs index 88b0c542c24..a29d155081a 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs @@ -204,4 +204,4 @@ public override void OnEventWritten(string name, object payload) } } } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs index 32dd2ce2b16..ccd86471d78 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs @@ -82,4 +82,4 @@ public void CommandFilterException(string exception) { this.WriteEvent(7, exception); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs index f294415eb8b..7edf94ee2ca 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs @@ -188,4 +188,4 @@ private void OnEndExecute(EventWrittenEventArgs eventData) } } } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs index 3205fe157f5..a5c5a527a56 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs @@ -67,4 +67,4 @@ public void Dispose() this.diagnosticSourceSubscriber?.Dispose(); #endif } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs index 94f4ccb5c40..f9b808b264b 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs @@ -349,4 +349,4 @@ internal sealed class SqlConnectionDetails public string Port { get; set; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs index 70620c2c78e..59ec17c67ee 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs @@ -83,4 +83,4 @@ public static TracerProviderBuilder AddSqlClientInstrumentation( return builder; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs b/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs index 42f49447a87..6409f23823c 100644 --- a/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs +++ b/src/OpenTelemetry.SemanticConventions/Resource/ResourceSemanticConventions.cs @@ -1012,4 +1012,4 @@ public static class TelemetrySdkLanguageValues public const string Swift = "swift"; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs b/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs index 49b9294a532..a9b253faa24 100644 --- a/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs +++ b/src/OpenTelemetry.SemanticConventions/Trace/TraceSemanticConventions.cs @@ -1862,4 +1862,4 @@ public static class MessageTypeValues public const string Received = "RECEIVED"; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs b/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs index d3c7cc6f669..ae3704ebf27 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/AssemblyInfo.cs @@ -7,4 +7,4 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Shims.OpenTracing.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010051c1562a090fb0c9f391012a32198b5e5d9a60e9b80fa2d7b434c9e5ccb7259bd606e66f9660676afc6692b8cdc6793d190904551d2103b7b22fa636dcbb8208839785ba402ea08fc00c8f1500ccef28bbf599aa64ffb1e1d5dc1bf3420a3777badfe697856e9d52070a50c3ea5821c80bef17ca3acffa28f89dd413f096f898")] #else [assembly: InternalsVisibleTo("OpenTelemetry.Shims.OpenTracing.Tests")] -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs b/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs index 7cd7f049782..f9464d966a1 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs @@ -86,4 +86,4 @@ public void Dispose() this.disposeAction?.Invoke(); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs index fc0f4021a10..0359762ac3e 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs @@ -306,4 +306,4 @@ private static SpanContext GetOpenTelemetrySpanContext(ISpanContext spanContext) return shim.SpanContext; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs index 897d6188fc3..c222b49c326 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs @@ -22,4 +22,4 @@ public SpanContextShim(in Trace.SpanContext spanContext) public IEnumerable> GetBaggageItems() => Baggage.GetBaggage(); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs index 5b56abfdb9e..2ab6fee4fe8 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs @@ -274,4 +274,4 @@ private static Tuple> ConvertToEventPayload( return new Tuple>(eventName ?? DefaultEventName, attributes); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs b/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs index c997e004745..1c16ac476fd 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs @@ -106,4 +106,4 @@ public void Inject( (instrumentation, key, value) => instrumentation.Set(key, value)); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/AssemblyInfo.cs b/src/OpenTelemetry/AssemblyInfo.cs index f707aa2e3e8..62254638d8a 100644 --- a/src/OpenTelemetry/AssemblyInfo.cs +++ b/src/OpenTelemetry/AssemblyInfo.cs @@ -28,4 +28,4 @@ file static class AssemblyInfo { public const string PublicKey = ""; } -#endif \ No newline at end of file +#endif diff --git a/src/OpenTelemetry/BaseExportProcessor.cs b/src/OpenTelemetry/BaseExportProcessor.cs index 01436988ef2..2e9fe7619c2 100644 --- a/src/OpenTelemetry/BaseExportProcessor.cs +++ b/src/OpenTelemetry/BaseExportProcessor.cs @@ -123,4 +123,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/BaseExporter.cs b/src/OpenTelemetry/BaseExporter.cs index 17f5f66c35c..9fdf396a38c 100644 --- a/src/OpenTelemetry/BaseExporter.cs +++ b/src/OpenTelemetry/BaseExporter.cs @@ -172,4 +172,4 @@ protected virtual bool OnShutdown(int timeoutMilliseconds) protected virtual void Dispose(bool disposing) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/BaseProcessor.cs b/src/OpenTelemetry/BaseProcessor.cs index 7ccb14886f8..88e1aca35e0 100644 --- a/src/OpenTelemetry/BaseProcessor.cs +++ b/src/OpenTelemetry/BaseProcessor.cs @@ -200,4 +200,4 @@ protected virtual bool OnShutdown(int timeoutMilliseconds) protected virtual void Dispose(bool disposing) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Batch.cs b/src/OpenTelemetry/Batch.cs index 9f7d7029a8c..7beebfbd95b 100644 --- a/src/OpenTelemetry/Batch.cs +++ b/src/OpenTelemetry/Batch.cs @@ -231,4 +231,4 @@ public bool MoveNext() public readonly void Reset() => throw new NotSupportedException(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/BatchExportProcessor.cs b/src/OpenTelemetry/BatchExportProcessor.cs index 4ee36da70bc..8e1e2ed0e58 100644 --- a/src/OpenTelemetry/BatchExportProcessor.cs +++ b/src/OpenTelemetry/BatchExportProcessor.cs @@ -286,4 +286,4 @@ private void ExporterProc() } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/BatchExportProcessorOptions.cs b/src/OpenTelemetry/BatchExportProcessorOptions.cs index c283541125f..67345e9715c 100644 --- a/src/OpenTelemetry/BatchExportProcessorOptions.cs +++ b/src/OpenTelemetry/BatchExportProcessorOptions.cs @@ -29,4 +29,4 @@ public class BatchExportProcessorOptions /// Gets or sets the maximum batch size of every export. It must be smaller or equal to MaxQueueLength. The default value is 512. /// public int MaxExportBatchSize { get; set; } = BatchExportProcessor.DefaultMaxExportBatchSize; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/CompositeProcessor.cs b/src/OpenTelemetry/CompositeProcessor.cs index c5338326da8..614e0dd3b13 100644 --- a/src/OpenTelemetry/CompositeProcessor.cs +++ b/src/OpenTelemetry/CompositeProcessor.cs @@ -177,4 +177,4 @@ public DoublyLinkedListNode(BaseProcessor value) public DoublyLinkedListNode? Next { get; set; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs b/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs index 5ae0f36f784..1666291bb52 100644 --- a/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs +++ b/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionExtensions.cs @@ -75,4 +75,4 @@ public static IServiceCollection AddOpenTelemetrySharedProviderBuilderServices(t return services!; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/CircularBuffer.cs b/src/OpenTelemetry/Internal/CircularBuffer.cs index b0521ee722d..74c3c8a6c5d 100644 --- a/src/OpenTelemetry/Internal/CircularBuffer.cs +++ b/src/OpenTelemetry/Internal/CircularBuffer.cs @@ -160,4 +160,4 @@ public T Read() return previous; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs b/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs index 1375597147a..38765609b54 100644 --- a/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs +++ b/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs @@ -394,4 +394,4 @@ protected override void OnEventWritten(EventWrittenEventArgs e) } } #endif -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/SelfDiagnostics.cs b/src/OpenTelemetry/Internal/SelfDiagnostics.cs index b1fffc892d8..a3f946fa05e 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnostics.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnostics.cs @@ -52,4 +52,4 @@ private void Dispose(bool disposing) this.configRefresher.Dispose(); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs index 00e1265ce8c..3216c050f7c 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs @@ -129,4 +129,4 @@ internal static bool TryParseLogLevel( logLevel = logLevelResult.Groups["LogLevel"].Value; return logLevelResult.Success && !string.IsNullOrWhiteSpace(logLevel); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs index 5713d3f2fb7..ba9544d39c6 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs @@ -274,4 +274,4 @@ private void Dispose(bool disposing) this.disposedValue = true; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs index 4896a16e037..cdfe233fd66 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs @@ -327,4 +327,4 @@ private void Dispose(bool disposing) this.disposedValue = true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Internal/WildcardHelper.cs b/src/OpenTelemetry/Internal/WildcardHelper.cs index 6675ac3b01e..98ee62934ae 100644 --- a/src/OpenTelemetry/Internal/WildcardHelper.cs +++ b/src/OpenTelemetry/Internal/WildcardHelper.cs @@ -31,4 +31,4 @@ public static Regex GetWildcardRegex(IEnumerable patterns) return new Regex("^(?:" + convertedPattern + ")$", RegexOptions.Compiled | RegexOptions.IgnoreCase); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs b/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs index 9822e6df6f6..035c39820b9 100644 --- a/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs +++ b/src/OpenTelemetry/Logs/BatchExportLogRecordProcessorOptions.cs @@ -52,4 +52,4 @@ internal BatchExportLogRecordProcessorOptions(IConfiguration configuration) this.ScheduledDelayMilliseconds = value; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs b/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs index f02ebfd80f7..f62758dd793 100644 --- a/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs +++ b/src/OpenTelemetry/Logs/BatchLogRecordExportProcessor.cs @@ -51,4 +51,4 @@ public override void OnEnd(LogRecord data) LogRecordSharedPool.Current.Return(data); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs index 810c2f5afe2..d2a7149fe69 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderBase.cs @@ -94,4 +94,4 @@ internal LoggerProvider Build() return new LoggerProviderSdk(serviceProvider, ownsServiceProvider: true); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs index 962f407c9c9..4ea08a0ff93 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderExtensions.cs @@ -226,4 +226,4 @@ public static LoggerProvider Build(this LoggerProviderBuilder loggerProviderBuil throw new NotSupportedException($"Build is not supported on '{loggerProviderBuilder?.GetType().FullName ?? "null"}' instances."); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs index 20d4aed51c9..10ac03cd22b 100644 --- a/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs +++ b/src/OpenTelemetry/Logs/Builder/LoggerProviderBuilderSdk.cs @@ -114,4 +114,4 @@ internal InstrumentationRegistration(string name, string version, object? instan this.Instance = instance; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs index 3681b4b9c96..621a66de30c 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs @@ -254,4 +254,4 @@ private LoggerInstrumentationScope(string name, string version) public override void EmitLog(in LogRecordData data, in LogRecordAttributeList attributes) => throw new NotSupportedException(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs index 063109c3881..15575f1c71b 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs @@ -131,4 +131,4 @@ internal OpenTelemetryLoggerOptions Copy() IncludeTraceState = this.IncludeTraceState, }; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs index a85ca5c0d5e..79f4119be09 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerProvider.cs @@ -143,4 +143,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs index 7a3183490cb..a3512678bd4 100644 --- a/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs +++ b/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggingExtensions.cs @@ -224,4 +224,4 @@ static void RegisterLoggerProviderOptions(IServiceCollection services) LoggerProviderOptions.RegisterProviderOptions(services); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/LogRecord.cs b/src/OpenTelemetry/Logs/LogRecord.cs index 15bb26669f1..9344b56d09e 100644 --- a/src/OpenTelemetry/Logs/LogRecord.cs +++ b/src/OpenTelemetry/Logs/LogRecord.cs @@ -501,4 +501,4 @@ public ScopeForEachState(Action callback, TState state) this.UserState = state; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs b/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs index 88e1eb7ab87..95cdc830e35 100644 --- a/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs +++ b/src/OpenTelemetry/Logs/LogRecordExportProcessorOptions.cs @@ -46,4 +46,4 @@ public BatchExportLogRecordProcessorOptions BatchExportProcessorOptions this.batchExportProcessorOptions = value; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/LogRecordScope.cs b/src/OpenTelemetry/Logs/LogRecordScope.cs index 638492e2b23..b86230eaf32 100644 --- a/src/OpenTelemetry/Logs/LogRecordScope.cs +++ b/src/OpenTelemetry/Logs/LogRecordScope.cs @@ -87,4 +87,4 @@ public void Dispose() public void Reset() => throw new NotSupportedException(); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs b/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs index 8c6f1477977..98dcbbf0d54 100644 --- a/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs +++ b/src/OpenTelemetry/Logs/LoggerProviderExtensions.cs @@ -161,4 +161,4 @@ public static bool Shutdown(this LoggerProvider provider, int timeoutMillisecond return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/LoggerProviderSdk.cs b/src/OpenTelemetry/Logs/LoggerProviderSdk.cs index d5edf4221ed..f23308680e7 100644 --- a/src/OpenTelemetry/Logs/LoggerProviderSdk.cs +++ b/src/OpenTelemetry/Logs/LoggerProviderSdk.cs @@ -234,4 +234,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/LoggerSdk.cs b/src/OpenTelemetry/Logs/LoggerSdk.cs index af895277f24..85f48473690 100644 --- a/src/OpenTelemetry/Logs/LoggerSdk.cs +++ b/src/OpenTelemetry/Logs/LoggerSdk.cs @@ -47,4 +47,4 @@ public override void EmitLog(in LogRecordData data, in LogRecordAttributeList at pool.Return(logRecord); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs b/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs index 781a8b8da06..5caa7a47464 100644 --- a/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs +++ b/src/OpenTelemetry/Logs/Pool/ILogRecordPool.cs @@ -8,4 +8,4 @@ internal interface ILogRecordPool LogRecord Rent(); void Return(LogRecord logRecord); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs b/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs index a71ad3cc98a..c298bef4308 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordPoolHelper.cs @@ -42,4 +42,4 @@ underlying array (capacity). */ } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs b/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs index 9255a120f92..ccaa47678a9 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs @@ -130,4 +130,4 @@ private bool TryRentCoreRare(long rentSnapshot, [NotNullWhen(true)] out LogRecor } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs b/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs index 3b39e9961d0..eba6aad18a3 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs @@ -34,4 +34,4 @@ public void Return(LogRecord logRecord) Storage = logRecord; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs b/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs index 2509fd59392..654677d8702 100644 --- a/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs +++ b/src/OpenTelemetry/Logs/SimpleLogRecordExportProcessor.cs @@ -18,4 +18,4 @@ public SimpleLogRecordExportProcessor(BaseExporter exporter) : base(exporter) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/AggregationTemporality.cs b/src/OpenTelemetry/Metrics/AggregationTemporality.cs index 0ecb74f863d..2a9c036d3dc 100644 --- a/src/OpenTelemetry/Metrics/AggregationTemporality.cs +++ b/src/OpenTelemetry/Metrics/AggregationTemporality.cs @@ -18,4 +18,4 @@ public enum AggregationTemporality : byte /// Delta. /// Delta = 0b10, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/AggregationType.cs b/src/OpenTelemetry/Metrics/AggregationType.cs index 06637eab25f..13d3a03ad5c 100644 --- a/src/OpenTelemetry/Metrics/AggregationType.cs +++ b/src/OpenTelemetry/Metrics/AggregationType.cs @@ -69,4 +69,4 @@ internal enum AggregationType /// Exponential Histogram with sum, count, min, max. /// Base2ExponentialHistogramWithMinMax = 11, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/AggregatorStore.cs b/src/OpenTelemetry/Metrics/AggregatorStore.cs index e8e071e8a87..631c4fb01da 100644 --- a/src/OpenTelemetry/Metrics/AggregatorStore.cs +++ b/src/OpenTelemetry/Metrics/AggregatorStore.cs @@ -1145,4 +1145,4 @@ private int FindMetricAggregatorsCustomTag(ReadOnlySpan> metricsSuperList) index++; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs b/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs index 6bbcf0233c1..4f10f3e2527 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/AlignedHistogramBucketExemplarReservoir.cs @@ -96,4 +96,4 @@ private void OfferAtBoundary(double value, ReadOnlySpan public abstract bool ShouldSample(double value, ReadOnlySpan> tags); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs b/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs index 8c8353f68b2..d5b944ff656 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/ExemplarReservoir.cs @@ -37,4 +37,4 @@ internal abstract class ExemplarReservoir /// Flag to indicate if the reservoir should be reset after this call. /// Array of Exemplars. public abstract Exemplar[] Collect(ReadOnlyTagCollection actualTags, bool reset); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs b/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs index c02e9cdf477..2c93878f1ce 100644 --- a/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs +++ b/src/OpenTelemetry/Metrics/Exemplar/SimpleExemplarReservoir.cs @@ -133,4 +133,4 @@ private void StoreTags(ref Exemplar exemplar, ReadOnlySpan Pull = 0b10, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/ExportModesAttribute.cs b/src/OpenTelemetry/Metrics/ExportModesAttribute.cs index def778beadb..65b88ae3f34 100644 --- a/src/OpenTelemetry/Metrics/ExportModesAttribute.cs +++ b/src/OpenTelemetry/Metrics/ExportModesAttribute.cs @@ -24,4 +24,4 @@ public ExportModesAttribute(ExportModes supported) /// Gets the supported . /// public ExportModes Supported => this.supportedExportModes; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/HistogramBucket.cs b/src/OpenTelemetry/Metrics/HistogramBucket.cs index 190509fad24..b5c01697e8c 100644 --- a/src/OpenTelemetry/Metrics/HistogramBucket.cs +++ b/src/OpenTelemetry/Metrics/HistogramBucket.cs @@ -24,4 +24,4 @@ internal HistogramBucket(double explicitBound, long bucketCount) /// Gets the count of items in the bucket. /// public long BucketCount { get; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/HistogramBuckets.cs b/src/OpenTelemetry/Metrics/HistogramBuckets.cs index aa83ffe370c..78b47a35e1c 100644 --- a/src/OpenTelemetry/Metrics/HistogramBuckets.cs +++ b/src/OpenTelemetry/Metrics/HistogramBuckets.cs @@ -197,4 +197,4 @@ private sealed class BucketLookupNode public BucketLookupNode? Right { get; set; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/HistogramConfiguration.cs b/src/OpenTelemetry/Metrics/HistogramConfiguration.cs index 522ab31ab71..9d8ee472fcd 100644 --- a/src/OpenTelemetry/Metrics/HistogramConfiguration.cs +++ b/src/OpenTelemetry/Metrics/HistogramConfiguration.cs @@ -13,4 +13,4 @@ public class HistogramConfiguration : MetricStreamConfiguration /// should be collected. /// public bool RecordMinMax { get; set; } = true; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/IPullMetricExporter.cs b/src/OpenTelemetry/Metrics/IPullMetricExporter.cs index 8843158bebb..8f3e1bc0bd1 100644 --- a/src/OpenTelemetry/Metrics/IPullMetricExporter.cs +++ b/src/OpenTelemetry/Metrics/IPullMetricExporter.cs @@ -12,4 +12,4 @@ public interface IPullMetricExporter /// Gets or sets the Collect delegate. /// Func? Collect { get; set; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/LookupData.cs b/src/OpenTelemetry/Metrics/LookupData.cs index b2dbdd2bb8d..a77cf4d18be 100644 --- a/src/OpenTelemetry/Metrics/LookupData.cs +++ b/src/OpenTelemetry/Metrics/LookupData.cs @@ -15,4 +15,4 @@ public LookupData(int index, in Tags sortedTags, in Tags givenTags) this.SortedTags = sortedTags; this.GivenTags = givenTags; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs b/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs index 1f3e5b307a5..472e170d5f3 100644 --- a/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs +++ b/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs @@ -139,4 +139,4 @@ static bool TryFindExporter(MetricReader? reader, out T? exporter) return false; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MeterProviderSdk.cs b/src/OpenTelemetry/Metrics/MeterProviderSdk.cs index 7c14fd37513..5dc529cfbd9 100644 --- a/src/OpenTelemetry/Metrics/MeterProviderSdk.cs +++ b/src/OpenTelemetry/Metrics/MeterProviderSdk.cs @@ -617,4 +617,4 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/Metric.cs b/src/OpenTelemetry/Metrics/Metric.cs index f3f40970a14..60abe6051cc 100644 --- a/src/OpenTelemetry/Metrics/Metric.cs +++ b/src/OpenTelemetry/Metrics/Metric.cs @@ -221,4 +221,4 @@ internal void UpdateDouble(double value, ReadOnlySpan this.aggStore.Snapshot(); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricPoint.cs b/src/OpenTelemetry/Metrics/MetricPoint.cs index 3c783d027e8..d66ef5b309f 100644 --- a/src/OpenTelemetry/Metrics/MetricPoint.cs +++ b/src/OpenTelemetry/Metrics/MetricPoint.cs @@ -1548,4 +1548,4 @@ private readonly void ThrowNotSupportedMetricTypeException(string methodName) { throw new NotSupportedException($"{methodName} is not supported for this metric type."); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs b/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs index fafd5523a25..9b3221869c9 100644 --- a/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs +++ b/src/OpenTelemetry/Metrics/MetricPointOptionalComponents.cs @@ -38,4 +38,4 @@ internal MetricPointOptionalComponents Copy() return copy; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricPointStatus.cs b/src/OpenTelemetry/Metrics/MetricPointStatus.cs index 8986b711e4c..20667fb2575 100644 --- a/src/OpenTelemetry/Metrics/MetricPointStatus.cs +++ b/src/OpenTelemetry/Metrics/MetricPointStatus.cs @@ -16,4 +16,4 @@ internal enum MetricPointStatus /// Collect will move it to . /// CollectPending, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs b/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs index 4ad9083b61b..2e9ef64d95d 100644 --- a/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs +++ b/src/OpenTelemetry/Metrics/MetricPointValueStorage.cs @@ -13,4 +13,4 @@ internal struct MetricPointValueStorage [FieldOffset(0)] public double AsDouble; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs b/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs index 24d47601014..b79c1ac7096 100644 --- a/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs +++ b/src/OpenTelemetry/Metrics/MetricPointsAccessor.cs @@ -67,4 +67,4 @@ public readonly ref readonly MetricPoint Current public bool MoveNext() => ++this.index < this.targetCount; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricReader.cs b/src/OpenTelemetry/Metrics/MetricReader.cs index 0ed4f30d2fe..decbf8ad70d 100644 --- a/src/OpenTelemetry/Metrics/MetricReader.cs +++ b/src/OpenTelemetry/Metrics/MetricReader.cs @@ -342,4 +342,4 @@ protected virtual bool OnShutdown(int timeoutMilliseconds) protected virtual void Dispose(bool disposing) { } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricReaderExt.cs b/src/OpenTelemetry/Metrics/MetricReaderExt.cs index 94015cff129..a0575491378 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderExt.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderExt.cs @@ -318,4 +318,4 @@ private void RemoveMetric(ref Metric? metric) // this clears the metric out of the array. metric = null; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricReaderOptions.cs b/src/OpenTelemetry/Metrics/MetricReaderOptions.cs index 58c31baa58e..6123dc2c2cd 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderOptions.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderOptions.cs @@ -43,4 +43,4 @@ public PeriodicExportingMetricReaderOptions PeriodicExportingMetricReaderOptions this.periodicExportingMetricReaderOptions = value; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs b/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs index 04120341ff1..019fdd69027 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderTemporalityPreference.cs @@ -19,4 +19,4 @@ public enum MetricReaderTemporalityPreference /// Aggregations of non-monotonic measurements use cumulative temporality. /// Delta = 2, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs b/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs index d83dc91958c..dcf850cbacb 100644 --- a/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs +++ b/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs @@ -98,4 +98,4 @@ public string[]? TagKeys // TODO: MetricPoints caps can be configured here on // a per stream basis, when we add such a capability // in the future. -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs b/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs index d3b4a8fc016..9ff3a251792 100644 --- a/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs +++ b/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs @@ -171,4 +171,4 @@ private static bool HistogramBoundsEqual(double[]? bounds1, double[]? bounds2) return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricType.cs b/src/OpenTelemetry/Metrics/MetricType.cs index c74316b5f5d..526bdbb466f 100644 --- a/src/OpenTelemetry/Metrics/MetricType.cs +++ b/src/OpenTelemetry/Metrics/MetricType.cs @@ -72,4 +72,4 @@ public enum MetricType : byte /// Non-monotonic Sum of Double type. /// DoubleSumNonMonotonic = 0x8d, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs b/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs index de1b896bd6b..c21b1be3dd2 100644 --- a/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs +++ b/src/OpenTelemetry/Metrics/MetricTypeExtensions.cs @@ -95,4 +95,4 @@ public static bool IsLong(this MetricType self) { return (self & POINT_KIND_MASK) == POINT_KIND_I8; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs index 465c02f2fc4..8f994bbc83d 100644 --- a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs +++ b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs @@ -139,4 +139,4 @@ private void ExporterProc() } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs index 2db341905d3..a3dc1829801 100644 --- a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs +++ b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReaderOptions.cs @@ -52,4 +52,4 @@ internal PeriodicExportingMetricReaderOptions(IConfiguration configuration) /// associated with the metric reader. /// public int? ExportTimeoutMilliseconds { get; set; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/PullMetricScope.cs b/src/OpenTelemetry/Metrics/PullMetricScope.cs index b68e32adf41..89f624cca30 100644 --- a/src/OpenTelemetry/Metrics/PullMetricScope.cs +++ b/src/OpenTelemetry/Metrics/PullMetricScope.cs @@ -34,4 +34,4 @@ public void Dispose() this.disposed = true; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs b/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs index 9468ba302e9..696cd40c23d 100644 --- a/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs +++ b/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs @@ -64,4 +64,4 @@ public int GetHashCode(string[] strings) return hash; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/Tags.cs b/src/OpenTelemetry/Metrics/Tags.cs index cc0f4e5adbb..4084808e8a9 100644 --- a/src/OpenTelemetry/Metrics/Tags.cs +++ b/src/OpenTelemetry/Metrics/Tags.cs @@ -81,4 +81,4 @@ public readonly bool Equals(Tags other) } public override readonly int GetHashCode() => this.hashCode; -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs index 19e6b5e396e..09063a7dd04 100644 --- a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs +++ b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs @@ -153,4 +153,4 @@ internal TagStorage(int n) this.TagKeysAndValues = new KeyValuePair[n]; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/ProviderExtensions.cs b/src/OpenTelemetry/ProviderExtensions.cs index a4a78a7086d..8b79b1f998e 100644 --- a/src/OpenTelemetry/ProviderExtensions.cs +++ b/src/OpenTelemetry/ProviderExtensions.cs @@ -74,4 +74,4 @@ public static Resource GetDefaultResource([AllowNull] this BaseProvider baseProv return null; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/ReadOnlyTagCollection.cs b/src/OpenTelemetry/ReadOnlyTagCollection.cs index 23edd7bc1d9..3c7dc59d770 100644 --- a/src/OpenTelemetry/ReadOnlyTagCollection.cs +++ b/src/OpenTelemetry/ReadOnlyTagCollection.cs @@ -72,4 +72,4 @@ public bool MoveNext() return false; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Resources/IResourceDetector.cs b/src/OpenTelemetry/Resources/IResourceDetector.cs index 02f0f1121e4..a2ebc96bec4 100644 --- a/src/OpenTelemetry/Resources/IResourceDetector.cs +++ b/src/OpenTelemetry/Resources/IResourceDetector.cs @@ -13,4 +13,4 @@ public interface IResourceDetector /// /// An instance of . Resource Detect(); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs b/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs index 8e597b33416..a03aed36710 100644 --- a/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs +++ b/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs @@ -50,4 +50,4 @@ private static IEnumerable> ParseResourceAttributes return attributes; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs b/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs index 93175884750..1d1de001f94 100644 --- a/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs +++ b/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs @@ -31,4 +31,4 @@ public Resource Detect() return resource; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Resources/Resource.cs b/src/OpenTelemetry/Resources/Resource.cs index 3d4a39eb9a4..a911deddf2e 100644 --- a/src/OpenTelemetry/Resources/Resource.cs +++ b/src/OpenTelemetry/Resources/Resource.cs @@ -114,4 +114,4 @@ private static object SanitizeValue(object value, string keyName) _ => throw new ArgumentException("Attribute value type is not an accepted primitive", keyName), }; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Resources/ResourceBuilder.cs b/src/OpenTelemetry/Resources/ResourceBuilder.cs index 1e75af9002b..f85755d7d02 100644 --- a/src/OpenTelemetry/Resources/ResourceBuilder.cs +++ b/src/OpenTelemetry/Resources/ResourceBuilder.cs @@ -192,4 +192,4 @@ public Resource Detect() return detector?.Detect() ?? Resource.Empty; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs b/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs index 03193155d17..1f02b55381f 100644 --- a/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs +++ b/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs @@ -111,4 +111,4 @@ public static ResourceBuilder AddEnvironmentVariableDetector(this ResourceBuilde .AddDetectorInternal(sp => new OtelEnvResourceDetector(sp?.GetService() ?? configuration.Value)) .AddDetectorInternal(sp => new OtelServiceNameEnvVarDetector(sp?.GetService() ?? configuration.Value)); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Sdk.cs b/src/OpenTelemetry/Sdk.cs index b1a8df3bec2..7e2553e8cc4 100644 --- a/src/OpenTelemetry/Sdk.cs +++ b/src/OpenTelemetry/Sdk.cs @@ -129,4 +129,4 @@ internal static string ParseAssemblyInformationalVersion(string? informationalVe ? informationalVersion.Substring(0, indexOfPlusSign) : informationalVersion; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/SimpleExportProcessor.cs b/src/OpenTelemetry/SimpleExportProcessor.cs index 7c01a41ed2c..10951cd8533 100644 --- a/src/OpenTelemetry/SimpleExportProcessor.cs +++ b/src/OpenTelemetry/SimpleExportProcessor.cs @@ -38,4 +38,4 @@ protected override void OnExport(T data) } } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/SuppressInstrumentationScope.cs b/src/OpenTelemetry/SuppressInstrumentationScope.cs index ea7143c21ad..68168bc79d1 100644 --- a/src/OpenTelemetry/SuppressInstrumentationScope.cs +++ b/src/OpenTelemetry/SuppressInstrumentationScope.cs @@ -147,4 +147,4 @@ internal static int DecrementIfTriggered() return currentDepth; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/AlwaysOffSampler.cs b/src/OpenTelemetry/Trace/AlwaysOffSampler.cs index 8b71fa40f2a..68b68b81ac7 100644 --- a/src/OpenTelemetry/Trace/AlwaysOffSampler.cs +++ b/src/OpenTelemetry/Trace/AlwaysOffSampler.cs @@ -13,4 +13,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame { return new SamplingResult(SamplingDecision.Drop); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/AlwaysOnSampler.cs b/src/OpenTelemetry/Trace/AlwaysOnSampler.cs index 888f6b14a9b..3fce139f780 100644 --- a/src/OpenTelemetry/Trace/AlwaysOnSampler.cs +++ b/src/OpenTelemetry/Trace/AlwaysOnSampler.cs @@ -13,4 +13,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame { return new SamplingResult(SamplingDecision.RecordAndSample); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs b/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs index 5ee271d32d9..22b55f0e39f 100644 --- a/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs +++ b/src/OpenTelemetry/Trace/BatchActivityExportProcessor.cs @@ -43,4 +43,4 @@ public override void OnEnd(Activity data) this.OnExport(data); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs b/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs index affa45e87c6..cb4e7cec5f6 100644 --- a/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs +++ b/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs @@ -52,4 +52,4 @@ internal BatchExportActivityProcessorOptions(IConfiguration configuration) this.ScheduledDelayMilliseconds = value; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs index 4631d5f4846..062fea7faee 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs @@ -147,4 +147,4 @@ protected TracerProvider Build() return new TracerProviderSdk(serviceProvider, ownsServiceProvider: true); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs index 0078a87b344..76f23be65f4 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs @@ -245,4 +245,4 @@ public static TracerProvider Build(this TracerProviderBuilder tracerProviderBuil throw new NotSupportedException($"Build is not supported on '{tracerProviderBuilder?.GetType().FullName ?? "null"}' instances."); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs index 80b2a6f487b..3e26b5fa27c 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderSdk.cs @@ -193,4 +193,4 @@ internal InstrumentationRegistration(string name, string version, object? instan this.Instance = instance; } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/ExceptionProcessor.cs b/src/OpenTelemetry/Trace/ExceptionProcessor.cs index 436fc7c610c..815670792d1 100644 --- a/src/OpenTelemetry/Trace/ExceptionProcessor.cs +++ b/src/OpenTelemetry/Trace/ExceptionProcessor.cs @@ -75,4 +75,4 @@ public override void OnEnd(Activity activity) activity.SetStatus(ActivityStatusCode.Error); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/ParentBasedSampler.cs b/src/OpenTelemetry/Trace/ParentBasedSampler.cs index 2606f532c3b..c7665cc3f36 100644 --- a/src/OpenTelemetry/Trace/ParentBasedSampler.cs +++ b/src/OpenTelemetry/Trace/ParentBasedSampler.cs @@ -113,4 +113,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return this.localParentNotSampled.ShouldSample(samplingParameters); } } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/Sampler.cs b/src/OpenTelemetry/Trace/Sampler.cs index 0af29ad76ab..46d60c3734d 100644 --- a/src/OpenTelemetry/Trace/Sampler.cs +++ b/src/OpenTelemetry/Trace/Sampler.cs @@ -32,4 +32,4 @@ protected Sampler() /// /// Sampling decision on whether activity needs to be sampled or not. public abstract SamplingResult ShouldSample(in SamplingParameters samplingParameters); -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/SamplingDecision.cs b/src/OpenTelemetry/Trace/SamplingDecision.cs index c09b935bd7f..a45db221c00 100644 --- a/src/OpenTelemetry/Trace/SamplingDecision.cs +++ b/src/OpenTelemetry/Trace/SamplingDecision.cs @@ -27,4 +27,4 @@ public enum SamplingDecision /// Activity.Recorded will return true. /// RecordAndSample, -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/SamplingParameters.cs b/src/OpenTelemetry/Trace/SamplingParameters.cs index 2beee2faa20..6fe2725a4ff 100644 --- a/src/OpenTelemetry/Trace/SamplingParameters.cs +++ b/src/OpenTelemetry/Trace/SamplingParameters.cs @@ -77,4 +77,4 @@ public SamplingParameters( /// Gets the links to be added to the activity to be created. /// public IEnumerable? Links { get; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/SamplingResult.cs b/src/OpenTelemetry/Trace/SamplingResult.cs index 770d6b514d7..25120d4ee9a 100644 --- a/src/OpenTelemetry/Trace/SamplingResult.cs +++ b/src/OpenTelemetry/Trace/SamplingResult.cs @@ -128,4 +128,4 @@ public bool Equals(SamplingResult other) && this.Attributes.SequenceEqual(other.Attributes) && this.TraceStateString == other.TraceStateString; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs b/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs index f5c1cdd0970..463bc6d111f 100644 --- a/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs +++ b/src/OpenTelemetry/Trace/SimpleActivityExportProcessor.cs @@ -29,4 +29,4 @@ public override void OnEnd(Activity data) this.OnExport(data); } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs b/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs index a574f14f064..24b4df8af81 100644 --- a/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs +++ b/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs @@ -76,4 +76,4 @@ private static long GetLowerLong(ReadOnlySpan bytes) return result; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/TracerProviderExtensions.cs b/src/OpenTelemetry/Trace/TracerProviderExtensions.cs index dbfd144c4b4..864e36959b1 100644 --- a/src/OpenTelemetry/Trace/TracerProviderExtensions.cs +++ b/src/OpenTelemetry/Trace/TracerProviderExtensions.cs @@ -113,4 +113,4 @@ public static bool Shutdown(this TracerProvider provider, int timeoutMillisecond return true; } -} \ No newline at end of file +} diff --git a/src/OpenTelemetry/Trace/TracerProviderSdk.cs b/src/OpenTelemetry/Trace/TracerProviderSdk.cs index 88fba5d3d74..55507e87ff3 100644 --- a/src/OpenTelemetry/Trace/TracerProviderSdk.cs +++ b/src/OpenTelemetry/Trace/TracerProviderSdk.cs @@ -536,4 +536,4 @@ private void RunGetRequestedDataOtherSampler(Activity activity) } } } -} \ No newline at end of file +} diff --git a/src/Shared/ActivityHelperExtensions.cs b/src/Shared/ActivityHelperExtensions.cs index c05ab499316..b237ccd5457 100644 --- a/src/Shared/ActivityHelperExtensions.cs +++ b/src/Shared/ActivityHelperExtensions.cs @@ -112,4 +112,4 @@ public static bool TryCheckFirstTag(this Activity activity, string tagName, out tagValue = null; return false; } -} \ No newline at end of file +} diff --git a/src/Shared/ActivityInstrumentationHelper.cs b/src/Shared/ActivityInstrumentationHelper.cs index 5255f8720ea..b95c669bfb0 100644 --- a/src/Shared/ActivityInstrumentationHelper.cs +++ b/src/Shared/ActivityInstrumentationHelper.cs @@ -22,4 +22,4 @@ private static Action CreateActivityKindSetter() return (Action)typeof(Activity).GetProperty("Kind") .SetMethod.CreateDelegate(typeof(Action)); } -} \ No newline at end of file +} diff --git a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs index ac6853a7e49..51838533a86 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs @@ -44,4 +44,4 @@ public void OnNext(KeyValuePair value) this.logUnknownException?.Invoke(this.handler?.SourceName, value.Key, ex); } } -} \ No newline at end of file +} diff --git a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs index 030a72f6c50..3071617f8a1 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs @@ -100,4 +100,4 @@ private void Dispose(bool disposing) this.allSourcesSubscription?.Dispose(); this.allSourcesSubscription = null; } -} \ No newline at end of file +} diff --git a/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs b/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs index 53e35da636a..98c55107a67 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/ListenerHandler.cs @@ -37,4 +37,4 @@ public ListenerHandler(string sourceName) public virtual void OnEventWritten(string name, object payload) { } -} \ No newline at end of file +} diff --git a/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs b/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs index 98a022c4d95..a2ac797d8a3 100644 --- a/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs +++ b/src/Shared/DiagnosticSourceInstrumentation/PropertyFetcher.cs @@ -215,4 +215,4 @@ public override bool TryFetch( } } } -} \ No newline at end of file +} diff --git a/src/Shared/ExceptionExtensions.cs b/src/Shared/ExceptionExtensions.cs index c99060a810d..9070b59c206 100644 --- a/src/Shared/ExceptionExtensions.cs +++ b/src/Shared/ExceptionExtensions.cs @@ -29,4 +29,4 @@ public static string ToInvariantString(this Exception exception) Thread.CurrentThread.CurrentUICulture = originalUICulture; } } -} \ No newline at end of file +} diff --git a/src/Shared/Guard.cs b/src/Shared/Guard.cs index 7aca5572778..e768d676045 100644 --- a/src/Shared/Guard.cs +++ b/src/Shared/Guard.cs @@ -200,4 +200,4 @@ private static void Range(T value, string? paramName, T min, T max, string? m } } } -} \ No newline at end of file +} diff --git a/src/Shared/HttpSemanticConventionHelper.cs b/src/Shared/HttpSemanticConventionHelper.cs index c20ba34fd10..220f9874acd 100644 --- a/src/Shared/HttpSemanticConventionHelper.cs +++ b/src/Shared/HttpSemanticConventionHelper.cs @@ -82,4 +82,4 @@ private static bool TryGetConfiguredValues(IConfiguration configuration, [NotNul return false; } } -} \ No newline at end of file +} diff --git a/src/Shared/MathHelper.cs b/src/Shared/MathHelper.cs index db22508d1a6..6bf5b3ac6c5 100644 --- a/src/Shared/MathHelper.cs +++ b/src/Shared/MathHelper.cs @@ -129,4 +129,4 @@ public static bool IsFinite(double value) return !double.IsInfinity(value) && !double.IsNaN(value); #endif } -} \ No newline at end of file +} diff --git a/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs b/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs index df4f61e99c7..096eb51828d 100644 --- a/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs +++ b/src/Shared/Metrics/Base2ExponentialBucketHistogramHelper.cs @@ -115,4 +115,4 @@ private static double ScaleB(double x, int n) #pragma warning restore SA1203 // Constants should appear before fields #pragma warning restore SA1201 // Elements should appear in the correct order #endif -} \ No newline at end of file +} diff --git a/src/Shared/Options/ConfigurationExtensions.cs b/src/Shared/Options/ConfigurationExtensions.cs index 0c1b7daba72..82e06158810 100644 --- a/src/Shared/Options/ConfigurationExtensions.cs +++ b/src/Shared/Options/ConfigurationExtensions.cs @@ -167,4 +167,4 @@ public static IServiceCollection RegisterOptionsFactory( return services!; } -} \ No newline at end of file +} diff --git a/src/Shared/PeerServiceResolver.cs b/src/Shared/PeerServiceResolver.cs index 8b4f7429311..d4c0b8fcd13 100644 --- a/src/Shared/PeerServiceResolver.cs +++ b/src/Shared/PeerServiceResolver.cs @@ -92,4 +92,4 @@ public static void Resolve(ref T state, out string? peerServiceName, out bool } } } -} \ No newline at end of file +} diff --git a/src/Shared/PeriodicExportingMetricReaderHelper.cs b/src/Shared/PeriodicExportingMetricReaderHelper.cs index 3f3fc48369f..d24c74c8f9c 100644 --- a/src/Shared/PeriodicExportingMetricReaderHelper.cs +++ b/src/Shared/PeriodicExportingMetricReaderHelper.cs @@ -29,4 +29,4 @@ internal static PeriodicExportingMetricReader CreatePeriodicExportingMetricReade return metricReader; } -} \ No newline at end of file +} diff --git a/src/Shared/PooledList.cs b/src/Shared/PooledList.cs index 76a8d701a32..043cd0a4525 100644 --- a/src/Shared/PooledList.cs +++ b/src/Shared/PooledList.cs @@ -134,4 +134,4 @@ void IEnumerator.Reset() this.current = default; } } -} \ No newline at end of file +} diff --git a/src/Shared/RequestMethodHelper.cs b/src/Shared/RequestMethodHelper.cs index 521bf69fcf7..05a3f022511 100644 --- a/src/Shared/RequestMethodHelper.cs +++ b/src/Shared/RequestMethodHelper.cs @@ -69,4 +69,4 @@ public static void SetHttpClientActivityDisplayName(Activity activity, string me // https://github.com/open-telemetry/semantic-conventions/blob/v1.23.0/docs/http/http-spans.md#name activity.DisplayName = KnownMethods.TryGetValue(method, out var httpMethod) ? httpMethod : "HTTP"; } -} \ No newline at end of file +} diff --git a/src/Shared/ResourceSemanticConventions.cs b/src/Shared/ResourceSemanticConventions.cs index 140222b889e..e38218874c6 100644 --- a/src/Shared/ResourceSemanticConventions.cs +++ b/src/Shared/ResourceSemanticConventions.cs @@ -50,4 +50,4 @@ internal static class ResourceSemanticConventions public const string AttributeCloudRegion = "cloud.region"; public const string AttributeCloudZone = "cloud.zone"; public const string AttributeComponent = "component"; -} \ No newline at end of file +} diff --git a/src/Shared/SemanticConventions.cs b/src/Shared/SemanticConventions.cs index 8f208b718fa..8628b79d237 100644 --- a/src/Shared/SemanticConventions.cs +++ b/src/Shared/SemanticConventions.cs @@ -118,4 +118,4 @@ internal static class SemanticConventions public const string AttributeUrlQuery = "url.query"; public const string AttributeUserAgentOriginal = "user_agent.original"; // replaces: "http.user_agent" (AttributeHttpUserAgent) public const string AttributeHttpRequestMethodOriginal = "http.request.method_original"; -} \ No newline at end of file +} diff --git a/src/Shared/Shims/IsExternalInit.cs b/src/Shared/Shims/IsExternalInit.cs index 8f768f5c891..ec91c2662af 100644 --- a/src/Shared/Shims/IsExternalInit.cs +++ b/src/Shared/Shims/IsExternalInit.cs @@ -8,4 +8,4 @@ namespace System.Runtime.CompilerServices; internal sealed class IsExternalInit { } -#endif \ No newline at end of file +#endif diff --git a/src/Shared/Shims/NullableAttributes.cs b/src/Shared/Shims/NullableAttributes.cs index 4964dd19333..c471bbe6134 100644 --- a/src/Shared/Shims/NullableAttributes.cs +++ b/src/Shared/Shims/NullableAttributes.cs @@ -35,4 +35,4 @@ internal sealed class NotNullWhenAttribute : Attribute public bool ReturnValue { get; } } } -#endif \ No newline at end of file +#endif diff --git a/src/Shared/SpanAttributeConstants.cs b/src/Shared/SpanAttributeConstants.cs index 86122f3f5e8..ab0decfe0d6 100644 --- a/src/Shared/SpanAttributeConstants.cs +++ b/src/Shared/SpanAttributeConstants.cs @@ -13,4 +13,4 @@ internal static class SpanAttributeConstants public const string StatusCodeKey = "otel.status_code"; public const string StatusDescriptionKey = "otel.status_description"; public const string DatabaseStatementTypeKey = "db.statement_type"; -} \ No newline at end of file +} diff --git a/src/Shared/SpanHelper.cs b/src/Shared/SpanHelper.cs index 5e158387785..8f5aabc4a31 100644 --- a/src/Shared/SpanHelper.cs +++ b/src/Shared/SpanHelper.cs @@ -28,4 +28,4 @@ public static ActivityStatusCode ResolveSpanStatusForHttpStatusCode(ActivityKind return ActivityStatusCode.Unset; } -} \ No newline at end of file +} diff --git a/src/Shared/StatusHelper.cs b/src/Shared/StatusHelper.cs index c38f56dc464..5d9245010c9 100644 --- a/src/Shared/StatusHelper.cs +++ b/src/Shared/StatusHelper.cs @@ -57,4 +57,4 @@ public static bool TryGetStatusCodeForTagValue(string? statusCodeTagValue, out S return tempStatusCode.HasValue; } -} \ No newline at end of file +} diff --git a/src/Shared/TagAndValueTransformer.cs b/src/Shared/TagAndValueTransformer.cs index 46de328f73c..32ac24da674 100644 --- a/src/Shared/TagAndValueTransformer.cs +++ b/src/Shared/TagAndValueTransformer.cs @@ -44,4 +44,4 @@ protected TValue TransformValue(object value) protected abstract TValue TransformStringValue(string value); protected abstract TValue TransformArrayValue(Array value); -} \ No newline at end of file +} diff --git a/src/Shared/TagTransformer.cs b/src/Shared/TagTransformer.cs index 5b3fd3b7c52..0c778691599 100644 --- a/src/Shared/TagTransformer.cs +++ b/src/Shared/TagTransformer.cs @@ -136,4 +136,4 @@ private T ConvertToStringArrayThenTransformArrayTag(string key, Array array, int return this.TransformArrayTag(key, stringArray); } -} \ No newline at end of file +} diff --git a/src/Shared/TagTransformerJsonHelper.cs b/src/Shared/TagTransformerJsonHelper.cs index d0642cd7fbb..9934d33422e 100644 --- a/src/Shared/TagTransformerJsonHelper.cs +++ b/src/Shared/TagTransformerJsonHelper.cs @@ -50,4 +50,4 @@ internal static string JsonSerializeArrayTag(Array array) return JsonSerializer.Serialize(array); } #endif -} \ No newline at end of file +} diff --git a/test/Benchmarks/EventSourceBenchmarks.cs b/test/Benchmarks/EventSourceBenchmarks.cs index c980019e07a..f8304368632 100644 --- a/test/Benchmarks/EventSourceBenchmarks.cs +++ b/test/Benchmarks/EventSourceBenchmarks.cs @@ -30,4 +30,4 @@ public void EventWithCheck() OpenTelemetrySdkEventSource.Log.ActivityStarted(activity); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs index dde7e2d416b..b8cffdbdb71 100644 --- a/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs @@ -59,4 +59,4 @@ public void OtlpExporter_Batching() this.exporter.Export(new Batch(this.activityBatch, this.NumberOfSpans)); } } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs index 42632542a35..d4560579a92 100644 --- a/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs @@ -88,4 +88,4 @@ public void OtlpExporter_Batching() this.exporter.Export(new Batch(this.activityBatch, this.NumberOfSpans)); } } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs index 1342eea35d4..17bcf3dda49 100644 --- a/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpLogExporterBenchmarks.cs @@ -138,4 +138,4 @@ private sealed class MockLogService : OtlpCollector.LogsService.LogsServiceBase } } } -#endif \ No newline at end of file +#endif diff --git a/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs index 87b51f3f029..392e0612c0e 100644 --- a/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpTraceExporterBenchmarks.cs @@ -140,4 +140,4 @@ private sealed class MockTraceService : OtlpCollector.TraceService.TraceServiceB } } } -#endif \ No newline at end of file +#endif diff --git a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs index 324ede01644..347f9061254 100644 --- a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs +++ b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs @@ -72,4 +72,4 @@ private PrometheusMetric GetPrometheusMetric(Metric metric) return prometheusMetric; } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs b/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs index 2edf50ed5c0..fb0f802b55a 100644 --- a/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs @@ -84,4 +84,4 @@ public void ZipkinExporter_Batching() exporter.Shutdown(); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Helper/ActivityCreationScenarios.cs b/test/Benchmarks/Helper/ActivityCreationScenarios.cs index 6a720a60d26..6b1b9f2a1b4 100644 --- a/test/Benchmarks/Helper/ActivityCreationScenarios.cs +++ b/test/Benchmarks/Helper/ActivityCreationScenarios.cs @@ -39,4 +39,4 @@ public static void CreateActivityWithAttributes(ActivitySource source) activity?.SetTag("tag3", true); activity?.Stop(); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Helper/ActivityHelper.cs b/test/Benchmarks/Helper/ActivityHelper.cs index 30c971d7c94..33f55dafe57 100644 --- a/test/Benchmarks/Helper/ActivityHelper.cs +++ b/test/Benchmarks/Helper/ActivityHelper.cs @@ -83,4 +83,4 @@ public static Activity CreateTestActivity() return activity; } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Helper/LogRecordHelper.cs b/test/Benchmarks/Helper/LogRecordHelper.cs index 2236f2790df..0cfd5efde25 100644 --- a/test/Benchmarks/Helper/LogRecordHelper.cs +++ b/test/Benchmarks/Helper/LogRecordHelper.cs @@ -21,4 +21,4 @@ internal static LogRecord CreateTestLogRecord() logger.LogInformation("Hello from {Food} {Price}.", "artichoke", 3.99); return items[0]; } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Helper/SpanCreationScenarios.cs b/test/Benchmarks/Helper/SpanCreationScenarios.cs index 41b3f92f063..c92d60e6e35 100644 --- a/test/Benchmarks/Helper/SpanCreationScenarios.cs +++ b/test/Benchmarks/Helper/SpanCreationScenarios.cs @@ -55,4 +55,4 @@ public static void CreateSpan_Active_GetCurrent(Tracer tracer) span = Tracer.CurrentSpan; } } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Helper/TestExporter.cs b/test/Benchmarks/Helper/TestExporter.cs index 3fc07ae84c0..3d2b0038f8d 100644 --- a/test/Benchmarks/Helper/TestExporter.cs +++ b/test/Benchmarks/Helper/TestExporter.cs @@ -19,4 +19,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs index 0b8c61f95f5..85c1f5fa2d3 100644 --- a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs +++ b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationBenchmarks.cs @@ -186,4 +186,4 @@ private void StartWebApplication() this.app = app; } } -#endif \ No newline at end of file +#endif diff --git a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs index 1b4da6254ef..4ddc7b56018 100644 --- a/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs +++ b/test/Benchmarks/Instrumentation/AspNetCoreInstrumentationNewBenchmarks.cs @@ -207,4 +207,4 @@ private void StartWebApplication() this.app = app; } } -#endif \ No newline at end of file +#endif diff --git a/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs b/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs index 33d08c01ed1..2db79fa9d1f 100644 --- a/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs +++ b/test/Benchmarks/Instrumentation/HttpClientInstrumentationBenchmarks.cs @@ -157,4 +157,4 @@ private void StartWebApplication() this.app = app; } } -#endif \ No newline at end of file +#endif diff --git a/test/Benchmarks/Logs/Food.cs b/test/Benchmarks/Logs/Food.cs index 1e49128f6f3..235b3c333bd 100644 --- a/test/Benchmarks/Logs/Food.cs +++ b/test/Benchmarks/Logs/Food.cs @@ -13,4 +13,4 @@ public static partial class Food Message = "Hello from {food} {price}.")] public static partial void SayHello( ILogger logger, string food, double price); -} \ No newline at end of file +} diff --git a/test/Benchmarks/Logs/LogBenchmarks.cs b/test/Benchmarks/Logs/LogBenchmarks.cs index 50f66ecd005..b4139b302ea 100644 --- a/test/Benchmarks/Logs/LogBenchmarks.cs +++ b/test/Benchmarks/Logs/LogBenchmarks.cs @@ -102,4 +102,4 @@ public void ThreeProcessors() internal class DummyLogProcessor : BaseProcessor { } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Logs/LogScopeBenchmarks.cs b/test/Benchmarks/Logs/LogScopeBenchmarks.cs index 1123a2d7822..affa9f5f66c 100644 --- a/test/Benchmarks/Logs/LogScopeBenchmarks.cs +++ b/test/Benchmarks/Logs/LogScopeBenchmarks.cs @@ -77,4 +77,4 @@ public void ForEachScope() { this.logRecord.ForEachScope(this.callback, null); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs b/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs index 563a44eac09..aec8ba6fce5 100644 --- a/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs +++ b/test/Benchmarks/Metrics/Base2ExponentialHistogramBenchmarks.cs @@ -112,4 +112,4 @@ public void HistogramWith7LabelsHotPath() }; this.histogram.Record(this.random.Next(MaxValue), tags); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs b/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs index a597f7684eb..a7cc5edb5ca 100644 --- a/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs +++ b/test/Benchmarks/Metrics/Base2ExponentialHistogramMapToIndexBenchmarks.cs @@ -41,4 +41,4 @@ public void MapToIndex() { this.exponentialHistogram.MapToIndex(this.random.Next(MaxValue)); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs b/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs index 28f6a58052c..d11d8743ebf 100644 --- a/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs +++ b/test/Benchmarks/Metrics/Base2ExponentialHistogramScaleBenchmarks.cs @@ -74,4 +74,4 @@ public void HistogramHotPath() { this.histogram.Record(this.random.Next(MaxValue)); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/ExemplarBenchmarks.cs b/test/Benchmarks/Metrics/ExemplarBenchmarks.cs index 49ce78c8417..81d285ea8b4 100644 --- a/test/Benchmarks/Metrics/ExemplarBenchmarks.cs +++ b/test/Benchmarks/Metrics/ExemplarBenchmarks.cs @@ -130,4 +130,4 @@ public override bool ShouldSample(double value, ReadOnlySpan 800; } } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/HistogramBenchmarks.cs b/test/Benchmarks/Metrics/HistogramBenchmarks.cs index a358457740b..17bbad18c67 100644 --- a/test/Benchmarks/Metrics/HistogramBenchmarks.cs +++ b/test/Benchmarks/Metrics/HistogramBenchmarks.cs @@ -139,4 +139,4 @@ public void HistogramWith7LabelsHotPath() }; this.histogram.Record(this.random.Next(MaxValue), tags); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs b/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs index 6d2f4a6f265..c0e0bdebb42 100644 --- a/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs @@ -110,4 +110,4 @@ public void Collect() { this.reader.Collect(); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/MetricsBenchmarks.cs b/test/Benchmarks/Metrics/MetricsBenchmarks.cs index 436741f18b3..e9ddd996903 100644 --- a/test/Benchmarks/Metrics/MetricsBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsBenchmarks.cs @@ -136,4 +136,4 @@ public void CounterWith7LabelsHotPath() }; this.counter.Add(100, tags); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs b/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs index cea889c7745..359313ac9bf 100644 --- a/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs @@ -150,4 +150,4 @@ public void CounterHotPath() 100, tags); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Program.cs b/test/Benchmarks/Program.cs index 4f69785fa72..91a947733ca 100644 --- a/test/Benchmarks/Program.cs +++ b/test/Benchmarks/Program.cs @@ -11,4 +11,4 @@ public static void Main(string[] args) { BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs b/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs index 3aaea17c50d..b99b20c23d5 100644 --- a/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs +++ b/test/Benchmarks/SuppressInstrumentationScopeBenchmarks.cs @@ -28,4 +28,4 @@ public void Enter() SuppressInstrumentationScope.DecrementIfTriggered(); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/TestTraceServiceClient.cs b/test/Benchmarks/TestTraceServiceClient.cs index 6c0d00b7edf..968ddd75715 100644 --- a/test/Benchmarks/TestTraceServiceClient.cs +++ b/test/Benchmarks/TestTraceServiceClient.cs @@ -14,4 +14,4 @@ public override ExportTraceServiceResponse Export(ExportTraceServiceRequest requ { return new ExportTraceServiceResponse(); } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs b/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs index ddc80adda76..b7c30f1212a 100644 --- a/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs +++ b/test/Benchmarks/Trace/ActivityCreationBenchmarks.cs @@ -62,4 +62,4 @@ public void GlobalCleanup() [Benchmark] public void CreateActivity_WithKind_NoopProcessor() => ActivityCreationScenarios.CreateActivityWithKind(this.benchmarkSource); -} \ No newline at end of file +} diff --git a/test/Benchmarks/Trace/SamplerBenchmarks.cs b/test/Benchmarks/Trace/SamplerBenchmarks.cs index 5895351ea5d..440536f281e 100644 --- a/test/Benchmarks/Trace/SamplerBenchmarks.cs +++ b/test/Benchmarks/Trace/SamplerBenchmarks.cs @@ -99,4 +99,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame return this.SamplingAction?.Invoke(samplingParameters) ?? new SamplingResult(SamplingDecision.RecordAndSample); } } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Trace/SpanCreationBenchmarks.cs b/test/Benchmarks/Trace/SpanCreationBenchmarks.cs index e0f011f7e51..9ca218f2dc8 100644 --- a/test/Benchmarks/Trace/SpanCreationBenchmarks.cs +++ b/test/Benchmarks/Trace/SpanCreationBenchmarks.cs @@ -94,4 +94,4 @@ public void GlobalCleanup() [Benchmark] public void CreateSpan_Propagate_Noop() => SpanCreationScenarios.CreateSpan_Propagate(this.noopTracer); -} \ No newline at end of file +} diff --git a/test/Benchmarks/Trace/TraceBenchmarks.cs b/test/Benchmarks/Trace/TraceBenchmarks.cs index aec90c87c42..e85e52cbd5a 100644 --- a/test/Benchmarks/Trace/TraceBenchmarks.cs +++ b/test/Benchmarks/Trace/TraceBenchmarks.cs @@ -193,4 +193,4 @@ public void LegacyActivity_WildcardMatchMode() internal class DummyActivityProcessor : BaseProcessor { } -} \ No newline at end of file +} diff --git a/test/Benchmarks/Trace/TraceShimBenchmarks.cs b/test/Benchmarks/Trace/TraceShimBenchmarks.cs index 1ff86f7ea09..b9d11939936 100644 --- a/test/Benchmarks/Trace/TraceShimBenchmarks.cs +++ b/test/Benchmarks/Trace/TraceShimBenchmarks.cs @@ -85,4 +85,4 @@ public void ThreeProcessors() internal class DummyActivityProcessor : BaseProcessor { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs b/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs index e3edd714b1a..121d205046b 100644 --- a/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs +++ b/test/OpenTelemetry.AotCompatibility.TestApp/Program.cs @@ -14,4 +14,4 @@ } Console.WriteLine("Passed."); -return 0; \ No newline at end of file +return 0; diff --git a/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs b/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs index 546f2def52d..d79a00c9471 100644 --- a/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs +++ b/test/OpenTelemetry.AotCompatibility.TestApp/PropertyFetcherAotTest.cs @@ -53,4 +53,4 @@ private class PayloadTypeWithDerivedType { public DerivedType Property { get; set; } = new DerivedType(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs index f99678b1430..627513786b7 100644 --- a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs @@ -130,4 +130,4 @@ public void ConfigureBuilderTest() private sealed class TestInstrumentation { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs index ee7b6cc6362..f79d26bf1ea 100644 --- a/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs +++ b/test/OpenTelemetry.Api.ProviderBuilderExtensions.Tests/Logs/TestLoggerProviderBuilder.cs @@ -109,4 +109,4 @@ LoggerProviderBuilder IDeferredLoggerProviderBuilder.Configure(Action expr; } #endif -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs index 2120766f650..c09c728cd55 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LogRecordAttributeListTests.cs @@ -129,4 +129,4 @@ public void ExportTest(int numberOfItems) index++; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs index 57b66e43d34..89d32795d6f 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LogRecordDataTests.cs @@ -125,4 +125,4 @@ public void SetActivityContextTest() Assert.Equal(default, record.SpanId); Assert.Equal(default, record.TraceFlags); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs index 95e3a267bdb..9035898cc66 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LogRecordSeverityExtensionsTests.cs @@ -43,4 +43,4 @@ public void ToShortNameTest(int logRecordSeverityValue, string expectedName) Assert.Equal(expectedName, logRecordSeverity.ToShortName()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs b/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs index 147907ff6d1..e26443707d2 100644 --- a/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs +++ b/test/OpenTelemetry.Api.Tests/Logs/LoggerProviderTests.cs @@ -85,4 +85,4 @@ public override void EmitLog(in LogRecordData data, in LogRecordAttributeList at { } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs b/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs index 0ab7e17ab8d..31fbf806725 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/ActivityExtensionsTest.cs @@ -221,4 +221,4 @@ public void TryCheckFirstTagReturnsFalseForActivityWithNoTags() Assert.False(result); Assert.Null(tagValue); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs b/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs index ff884a73d3e..8cc20c6ff5e 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/Propagation/B3PropagatorTest.cs @@ -380,4 +380,4 @@ private void ContainsExactly(IDictionary dict, IDictionary(PropagationContext context, T carrier, Action(() => new SpanAttributes(null)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs b/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs index 0ebcca6e9ad..f3898d06891 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/StatusTest.cs @@ -103,4 +103,4 @@ public void TestGetHashCode() var status = new Status(StatusCode.Ok); Assert.NotEqual(0, status.GetHashCode()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs b/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs index 09120dffeab..6434569e1d9 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/TelemetrySpanTest.cs @@ -68,4 +68,4 @@ public void ParentIds() Assert.Equal(parentSpan.Context.SpanId, childSpan.ParentSpanId); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs b/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs index a9a92ce2f69..7c71f41cda0 100644 --- a/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs +++ b/test/OpenTelemetry.Api.Tests/Trace/TracerTest.cs @@ -403,4 +403,4 @@ private sealed class TestTracerProvider : TracerProvider public int NumberOfThreads; public EventWaitHandle StartHandle = new ManualResetEvent(false); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs b/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs index fa6f29e9ea6..e3305513d1d 100644 --- a/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs +++ b/test/OpenTelemetry.Exporter.Console.Tests/ConsoleActivityExporterTest.cs @@ -45,4 +45,4 @@ public void VerifyConsoleActivityExporterDoesntFailWithoutActivityLinkTags() using var consoleExporter = new ConsoleActivityExporter(new ConsoleExporterOptions()); Assert.Equal(ExportResult.Success, consoleExporter.Export(new Batch(new[] { activity }, 1))); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs index 132a39c5b76..68011107b7f 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs @@ -51,4 +51,4 @@ protected override HttpContent CreateHttpContent(string exportRequest) throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs index 51eb3853e73..2f4903d5596 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/EventSourceTest.cs @@ -14,4 +14,4 @@ public void EventSourceTest_OpenTelemetryProtocolExporterEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(OpenTelemetryProtocolExporterEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs index 184f44bf818..e7c1a0b2d7a 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ExporterClientValidationTests.cs @@ -59,4 +59,4 @@ public void ExporterClientValidation_FlagIsNotEnabledForHttpsEndpoint() var exception = Record.Exception(() => ExporterClientValidation.EnsureUnencryptedSupportIsEnabled(options)); Assert.Null(exception); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs index 568e1b303ac..673260f281d 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Http2UnencryptedSupportTests.cs @@ -27,4 +27,4 @@ private static bool DetermineInitialFlagStatus() return false; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs index 2c5b1a38313..a952490ca7b 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs @@ -168,4 +168,4 @@ void RunTest(Batch batch) } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs index 7007a0cd6c6..0fc08270cdf 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs @@ -334,4 +334,4 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData) this.outputHelper.WriteLine(message); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs index e41981351ce..51536cfd477 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/MockCollectorIntegrationTests.cs @@ -131,4 +131,4 @@ public override Task Export(ExportTraceServiceReques } } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs index fbc12d8a747..7d5fce165e5 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpAttributeTests.cs @@ -233,4 +233,4 @@ public override string ToString() throw new Exception("Nope."); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs index de6baaf2f02..07d7a92612c 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExportProtocolParserTests.cs @@ -18,4 +18,4 @@ public void TryParse_Protocol_MapsToCorrectValue(string protocol, bool expectedR Assert.Equal(expectedExportProtocol, exportProtocol); Assert.Equal(expectedResult, result); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs index 543dfc1d2ea..db92c0c65dd 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsExtensionsTests.cs @@ -155,4 +155,4 @@ public void AppendPathIfNotPresent_TracesPath_AppendsCorrectly(string inputUri, Assert.Equal(expectedUri, resultUri.AbsoluteUri); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs index 343e48b4cae..619dd7999e9 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpExporterOptionsTests.cs @@ -154,4 +154,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable(OtlpExporterOptions.TimeoutEnvVarName, null); Environment.SetEnvironmentVariable(OtlpExporterOptions.ProtocolEnvVarName, null); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs index 9b32f3ddd08..80df9effcdb 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs @@ -1417,4 +1417,4 @@ public IDisposable OnChange(Action listener) throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs index 6aa3f0eaa10..85713222ea6 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpMetricsExporterTests.cs @@ -747,4 +747,4 @@ private static IEnumerable> ToAttributes(object[] k yield return new KeyValuePair(keys[i].ToString(), values[i]); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs index e734e5aafa6..4a82310103f 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpResourceTests.cs @@ -34,4 +34,4 @@ public void ToOtlpResourceTest(bool includeServiceNameInResource) Assert.Contains(otlpResource.Attributes, (kvp) => kvp.Key == ResourceSemanticConventions.AttributeServiceName && kvp.Value.ToString().Contains("unknown_service:")); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs index dc479e3e3d7..f8815ed5665 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpRetryTests.cs @@ -200,4 +200,4 @@ public GrpcRetryAttempt( } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs index 5be8adb83dd..63b90f04c28 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTestHelpers.cs @@ -99,4 +99,4 @@ private static void AssertOtlpAttributeValue(object expected, OtlpCommon.AnyValu break; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs index ab6d64f948b..95f61d41297 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs @@ -740,4 +740,4 @@ public void NamedOptionsMutateSeparateInstancesTest() Assert.Equal("http://localhost/traces", tracerOptions.Endpoint.OriginalString); Assert.Equal("http://localhost/metrics", meterOptions.Endpoint.OriginalString); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs index 2d8f02cb690..dc36def4665 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/SdkLimitOptionsTests.cs @@ -180,4 +180,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT", null); Environment.SetEnvironmentVariable("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT", null); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs index d300a854945..e9b538c8f41 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestExportClient.cs @@ -29,4 +29,4 @@ public bool Shutdown(int timeoutMilliseconds) this.ShutdownCalled = true; return true; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs index 4878e0506d4..a15775cb1ac 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestHttpMessageHandler.cs @@ -31,4 +31,4 @@ protected override Task SendAsync(HttpRequestMessage reques { return Task.FromResult(this.InternalSend(request, cancellationToken)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs index 6e1a63926bf..726b0820d04 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMeterProviderBuilderExtensionsTests.cs @@ -29,4 +29,4 @@ public void TestAddPrometheusExporter_NamedOptions() Assert.Equal(1, defaultExporterOptionsConfigureOptionsInvocations); Assert.Equal(1, namedExporterOptionsConfigureOptionsInvocations); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs index 8ded7022a95..8f71478088d 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.AspNetCore.Tests/PrometheusExporterMiddlewareTests.cs @@ -345,4 +345,4 @@ private static async Task RunPrometheusExporterMiddlewareIntegrationTest( await host.StopAsync(); } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs index cc1e9e2d649..baf8dc43377 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/EventSourceTest.cs @@ -13,4 +13,4 @@ public void EventSourceTest_PrometheusExporterEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(PrometheusExporterEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs index 838f61b6de1..f4cadff53b5 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusCollectionManagerTests.cs @@ -158,4 +158,4 @@ private class Response public byte[] ViewPayload; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs index f39afc83fb8..aa4a1be9bc8 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHeadersParserTests.cs @@ -32,4 +32,4 @@ public void ParseHeader_AcceptHeaders_OtherHeadersInvalid(string header) Assert.False(result); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs index 4197e48ec18..882bbb7d024 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerMeterProviderBuilderExtensionsTests.cs @@ -29,4 +29,4 @@ public void TestAddPrometheusHttpListener_NamedOptions() Assert.Equal(1, defaultExporterOptionsConfigureOptionsInvocations); Assert.Equal(1, namedExporterOptionsConfigureOptionsInvocations); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs index cb40aeb352a..fc0f7d0fb74 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusHttpListenerTests.cs @@ -181,4 +181,4 @@ private async Task RunPrometheusExporterHttpServerIntegrationTest(bool skipMetri provider.Dispose(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs index 110a58e5e5c..362356d4a22 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusMetricTests.cs @@ -204,4 +204,4 @@ private static void AssertSanitizeMetricName(string name, string expected) var sanatizedName = PrometheusMetric.SanitizeMetricName(name); Assert.Equal(expected, sanatizedName); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs index 604da57cd21..4c221e0a557 100644 --- a/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs +++ b/test/OpenTelemetry.Exporter.Prometheus.HttpListener.Tests/PrometheusSerializerTests.cs @@ -574,4 +574,4 @@ private static int WriteMetric(byte[] buffer, int cursor, Metric metric, bool us { return PrometheusSerializer.WriteMetric(buffer, cursor, metric, PrometheusMetric.Create(metric), useOpenMetrics); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs index 4e1d23e31b5..0394d1a142d 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/EventSourceTest.cs @@ -14,4 +14,4 @@ public void EventSourceTest_ZipkinExporterEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(ZipkinExporterEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs index 9a0839068b3..6e28b18d88c 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs @@ -50,4 +50,4 @@ public void CheckNullValueProcessTag(string key, object value) Assert.Empty(attributeEnumerationState.Tags); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs index 22548688e1b..da6cdcbfcbb 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs @@ -252,4 +252,4 @@ public void ActivityStatus_Takes_precedence_Over_Status_Tags_ActivityStatusCodeI // Ensure additional Activity tags were being converted. Assert.Contains(zipkinSpan.Tags, t => t.Key == "myCustomTag" && (string)t.Value == "myCustomTagValue"); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs index 63abde15c29..ddbd059c0cf 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs @@ -179,4 +179,4 @@ public override string ToString() return this.Name; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs index 1ee80e2d112..9ed6a4d3dfc 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs @@ -527,4 +527,4 @@ internal static Activity CreateTestActivity( return activity; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs index 41782da2d6f..83d475bfec0 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/EventSourceTest.cs @@ -14,4 +14,4 @@ public void EventSourceTest_HostingExtensionsEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(HostingExtensionsEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs index 8fa3ea03135..99db85423b4 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/InMemoryExporterMetricsExtensionsTests.cs @@ -92,4 +92,4 @@ private static async Task RunMetricsTest(Action configure, await host.StopAsync(); } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs index c9d9f2b7454..e5160e3b79e 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryBuilderTests.cs @@ -99,4 +99,4 @@ public Resource Detect() => ResourceBuilder.CreateEmpty().AddAttributes( ["key1"] = "value1", }).Build(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs index b2fc2d10cce..d34dc060f1e 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryMetricsBuilderExtensionsTests.cs @@ -243,4 +243,4 @@ private static void AssertMetricWithLongSum(Metric metric, long expectedValue = var metricPoint = metricPoints[0]; Assert.Equal(expectedValue, metricPoint.GetSumLong()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs index 850c03f54f1..0753220b6cc 100644 --- a/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Hosting.Tests/OpenTelemetryServicesExtensionsTests.cs @@ -476,4 +476,4 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken) return Task.CompletedTask; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs b/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs index 3ca97a65339..5373573ad6c 100644 --- a/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs +++ b/test/OpenTelemetry.Extensions.Propagators.Tests/B3PropagatorTest.cs @@ -381,4 +381,4 @@ private void ContainsExactly(IDictionary dict, IDictionary> att { return attributes.FirstOrDefault(kvp => kvp.Key == key).Value; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs index df0fbd46ff1..9888ab9a172 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/BasicTests.cs @@ -1167,4 +1167,4 @@ public override void PostProcess(HttpContext context) this.activity?.Stop(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs index 783a1a0fbab..766a81b40dd 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs @@ -51,4 +51,4 @@ void ConfigureTestServices(IServiceCollection services) Assert.True(optionsPickedFromDI); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs index 5f2379f175f..5bae1e25f4d 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/EventSourceTest.cs @@ -14,4 +14,4 @@ public void EventSourceTest_AspNetCoreInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(AspNetCoreInstrumentationEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs index 160ae3e7ebe..ee2195c6a4c 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/IncomingRequestsCollectionsIsAccordingToTheSpecTests.cs @@ -165,4 +165,4 @@ public override async Task ProcessAsync(HttpContext context) return false; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs index bceb4fccb71..ddec198dc4c 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs @@ -416,4 +416,4 @@ private static void AssertMetricPoint( Assert.True(histogramBoundsMatchCorrectly); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs index 735819ed961..a3ec3818886 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs @@ -66,4 +66,4 @@ public override string ToString() return $"{this.TestApplicationScenario}: {this.Name}"; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs index 015c73017f4..d22093f0158 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestFixture.cs @@ -103,4 +103,4 @@ static string MakeAnchorTag(TestApplicationScenario scenario, string name) return $"#{scenario.ToString().ToLower()}-{new string(chars)}"; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs index 5d9a21e809a..8217fa09872 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestResult.cs @@ -30,4 +30,4 @@ public override string ToString() { return JsonSerializer.Serialize(this, JsonSerializerOptions); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs index 25cc453dc22..b62bee47a67 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs @@ -138,4 +138,4 @@ private static void GetTagsFromMetricPoint(bool useLegacyConventions, MetricPoin } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs index abda44b9618..7754255edfd 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/AnotherArea/Controllers/AnotherAreaController.cs @@ -11,4 +11,4 @@ namespace RouteTests.Controllers; public class AnotherAreaController : Controller { public IActionResult Index() => this.Ok(); -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs index 5d5ec07d7f4..762f4a95e82 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Areas/MyArea/Controllers/ControllerForMyAreaController.cs @@ -13,4 +13,4 @@ public class ControllerForMyAreaController : Controller public IActionResult Default() => this.Ok(); public IActionResult NonDefault() => this.Ok(); -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs index 9e8e5cbe2b8..b1e5783b0af 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/AttributeRouteController.cs @@ -20,4 +20,4 @@ public class AttributeRouteController : ControllerBase [HttpGet("{id}/[action]")] public IActionResult GetWithActionNameInDifferentSpotInTemplate(int id) => this.Ok(); -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs index 420567630e5..977ee36a136 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/Controllers/ConventionalRouteController.cs @@ -14,4 +14,4 @@ public class ConventionalRouteController : Controller public IActionResult ActionWithParameter(int id) => this.Ok(); public IActionResult ActionWithStringParameter(string id, int num) => this.Ok(); -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs index 938ea922383..78587210394 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfo.cs @@ -135,4 +135,4 @@ public PageActionDescriptorInfo(string relativePath, string viewEnginePath) [JsonPropertyName("ViewEnginePath")] public string PageActionDescriptorViewEnginePath { get; set; } = string.Empty; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs index 9eb4f81c429..3b3feb59e15 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/RouteInfoDiagnosticObserver.cs @@ -107,4 +107,4 @@ private void Dispose(bool disposing) this.allSourcesSubscription?.Dispose(); this.allSourcesSubscription = null; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs index 3847fee78e4..87f79f21e96 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/TestApplication/TestApplicationFactory.cs @@ -154,4 +154,4 @@ private static WebApplication CreateRazorPagesApplication() return app; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs index 5724282782c..66db1766771 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/EventSourceTest.cs @@ -14,4 +14,4 @@ public void EventSourceTest_GrpcInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(GrpcInstrumentationEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs index ba83836259a..08fa9e8c7b9 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcServer.cs @@ -87,4 +87,4 @@ public void Configure(IApplicationBuilder app) } } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs index f67ca94f82b..fbb1928117d 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTagHelperTests.cs @@ -63,4 +63,4 @@ public void GrpcTagHelper_GetGrpcStatusCodeFromEmptyActivity() Assert.Equal(-1, status); Assert.Null(activity.GetTagValue(SemanticConventions.AttributeRpcGrpcStatusCode)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs index a115aad1ed6..27c8b5a374a 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ClientTestHelpers.cs @@ -73,4 +73,4 @@ private static async Task CreateResponseContentCore(TR streamContent.Headers.ContentType = new MediaTypeHeaderValue("application/grpc"); return streamContent; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs index 66f47cc3890..01180ebf54a 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/ResponseUtils.cs @@ -73,4 +73,4 @@ private class ResponseTrailers : HttpHeaders { } #endif -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs index 1531156560b..4f1837ce700 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TestHttpMessageHandler.cs @@ -38,4 +38,4 @@ protected override Task SendAsync(HttpRequestMessage reques { return this.sendAsync(request, cancellationToken); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs index 9066f4de67e..b54f0be65bc 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTestHelpers/TrailingHeadersHelpers.cs @@ -44,4 +44,4 @@ private class ResponseTrailers : HttpHeaders public static readonly ResponseTrailers Empty = new ResponseTrailers(); } #endif -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs index 143317f952a..2d7227f3482 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.client.cs @@ -636,4 +636,4 @@ private static void ValidateGrpcActivity(Activity activityToValidate) Assert.Equal(GrpcClientDiagnosticListener.Version.ToString(), activityToValidate.Source.Version); Assert.Equal(ActivityKind.Client, activityToValidate.Kind); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs index 2588726c737..6b16c081d13 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs @@ -204,4 +204,4 @@ private static void WaitForExporterToReceiveItems(List itemsReceived, TimeSpan.FromSeconds(1))); } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs index 4785d6879a2..f2f7b4c1aac 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs @@ -36,4 +36,4 @@ public override async Task SayHellos(HelloRequest request, IServerStreamWriter SpanAttributes { get; set; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs index 58ef43e5108..33708c34d10 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs @@ -873,4 +873,4 @@ private void Record(string eventName, Activity activity) } } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs index be4dcc3d53e..b7f70add10b 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.Basic.cs @@ -360,4 +360,4 @@ public async Task ReportsExceptionEventOnErrorResponse() Assert.DoesNotContain(exportedItems[0].Events, evt => evt.Name.Equals("exception")); #endif } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs index d75ec949334..19de685bc41 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs @@ -183,4 +183,4 @@ private static void ValidateHttpWebRequestActivity(Activity activityToValidate) { Assert.Equal(ActivityKind.Client, activityToValidate.Kind); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs index 151c97e6469..d1a977b7e84 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/RetryHandler.cs @@ -37,4 +37,4 @@ protected override async Task SendAsync( return response; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs index 86e0dba207e..27a48869679 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/EventSourceTest.cs @@ -14,4 +14,4 @@ public void EventSourceTest_SqlClientInstrumentationEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(SqlClientInstrumentationEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs index 207c85a8df0..0e64fe4d130 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientInstrumentationOptionsTests.cs @@ -196,4 +196,4 @@ public void SqlClientInstrumentationOptions_EnableConnectionLevelAttributes_Dupe Assert.Equal(expectedInstanceName, activity.GetTagValue(SemanticConventions.AttributeDbMsSqlInstanceName)); Assert.Equal(expectedPort, activity.GetTagValue(SemanticConventions.AttributeNetPeerPort)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs index a6e73483fc7..93e04926434 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientIntegrationTests.cs @@ -114,4 +114,4 @@ private string GetConnectionString() throw new InvalidOperationException($"Container type ${this.databaseContainer.GetType().Name} not supported."); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs index b4a7393520b..01e1c3eaf73 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs @@ -463,4 +463,4 @@ public void Dispose() this.listener.Dispose(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs index 3a553e17c32..f931abb864c 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlEventSourceTests.netfx.cs @@ -368,4 +368,4 @@ public void WriteUnknownEventWithNullPayload() } } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs b/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs index 9e2efd197c8..3ab1d5d178c 100644 --- a/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs +++ b/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs @@ -142,4 +142,4 @@ public class Data [JsonPropertyName("arguments")] public Data[] Arguments { get; set; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs index 1eda433e9f8..d8f93b2df0c 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/IntegrationTests.cs @@ -131,4 +131,4 @@ public static TracerProviderBuilder When( return builder; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs index 3164ee02f89..eccc55b95eb 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/ListenAndSampleAllActivitySources.cs @@ -32,4 +32,4 @@ public void Dispose() this.listener.Dispose(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs index 79c696b6dcc..6f4ca876c55 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/ScopeManagerShimTests.cs @@ -66,4 +66,4 @@ public void Activate() spanShim.Finish(); Assert.NotEqual(default, spanShim.Span.Activity.Duration); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs index dc2ec91bcf7..ce546c868bf 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanBuilderShimTests.cs @@ -325,4 +325,4 @@ public void Start_UnderAspNetCoreInstrumentation() Assert.Same(parentSpan, Activity.Current); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs index 13b29ccf504..4bd5896a69f 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanContextShimTests.cs @@ -37,4 +37,4 @@ internal static SpanContextShim GetSpanContextShim() { return new SpanContextShim(new SpanContext(ActivityTraceId.CreateRandom(), ActivitySpanId.CreateRandom(), ActivityTraceFlags.None)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs index 7b52ce3c2ac..80178f405be 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/SpanShimTests.cs @@ -315,4 +315,4 @@ public void SetTagIntOrStringTagValue() Assert.Equal("bar", shim.Span.Activity.TagObjects.Last().Key); Assert.Equal("baz", shim.Span.Activity.TagObjects.Last().Value); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs index 2a1cc153d0f..83d04095313 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestFormatTextMap.cs @@ -7,4 +7,4 @@ namespace OpenTelemetry.Shims.OpenTracing.Tests; internal class TestFormatTextMap : IFormat { -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs index b81d3fa7df7..f1e836f76b7 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpan.cs @@ -94,4 +94,4 @@ public ISpan SetTag(StringTag tag, string value) { throw new NotImplementedException(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs index f8ea14d07a9..d0b5af69991 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestSpanContext.cs @@ -15,4 +15,4 @@ public IEnumerable> GetBaggageItems() { throw new NotImplementedException(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs index 3ab913959d0..7396b5543e6 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TestTextMap.cs @@ -31,4 +31,4 @@ IEnumerator IEnumerable.GetEnumerator() { throw new NotImplementedException(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs b/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs index c381af25953..578ed8ccbf3 100644 --- a/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs +++ b/test/OpenTelemetry.Shims.OpenTracing.Tests/TracerShimTests.cs @@ -177,4 +177,4 @@ public void Set(MemoryStream stream) stream.CopyTo(this.carrierStream, (int)this.carrierStream.Length); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs b/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs index be8facb1799..aeb1963ec74 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs @@ -10,4 +10,4 @@ internal class DummyProcessor : BaseProcessor public override void OnEnd(LogRecord record) { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs b/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs index b95324ef776..fa8041eeb56 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/Payload.cs @@ -104,4 +104,4 @@ internal class Payload public int Field097 = 97; public int Field098 = 98; public int Field099 = 99; -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress.Logs/Program.cs b/test/OpenTelemetry.Tests.Stress.Logs/Program.cs index c29291df6e7..6d2cb88fad0 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/Program.cs @@ -36,4 +36,4 @@ protected static void Run() exception: null, formatter: (state, ex) => string.Empty); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs b/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs index c7fd7c638d4..102ad6d1df8 100644 --- a/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs @@ -63,4 +63,4 @@ protected static void Run() new("DimName2", DimensionValues[random.Next(0, ArraySize)]), new("DimName3", DimensionValues[random.Next(0, ArraySize)])); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress.Traces/Program.cs b/test/OpenTelemetry.Tests.Stress.Traces/Program.cs index 9e62d6cee9a..743da46b638 100644 --- a/test/OpenTelemetry.Tests.Stress.Traces/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Traces/Program.cs @@ -29,4 +29,4 @@ protected static void Run() activity?.SetTag("foo", "value"); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress/Meat.cs b/test/OpenTelemetry.Tests.Stress/Meat.cs index 9019cddfe1c..65e66535349 100644 --- a/test/OpenTelemetry.Tests.Stress/Meat.cs +++ b/test/OpenTelemetry.Tests.Stress/Meat.cs @@ -16,4 +16,4 @@ public static void Main() protected static void Run() { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests.Stress/Skeleton.cs b/test/OpenTelemetry.Tests.Stress/Skeleton.cs index 12c15000d33..cd3e5af7a8a 100644 --- a/test/OpenTelemetry.Tests.Stress/Skeleton.cs +++ b/test/OpenTelemetry.Tests.Stress/Skeleton.cs @@ -169,4 +169,4 @@ private static ulong GetCpuCycles() return cycles; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/BaseExporterTest.cs b/test/OpenTelemetry.Tests/BaseExporterTest.cs index 83ac4a6c4bd..39095636996 100644 --- a/test/OpenTelemetry.Tests/BaseExporterTest.cs +++ b/test/OpenTelemetry.Tests/BaseExporterTest.cs @@ -43,4 +43,4 @@ public void Verify_Shutdown_HandlesException() }; Assert.False(exceptionTestExporter.Shutdown()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/BaseProcessorTest.cs b/test/OpenTelemetry.Tests/BaseProcessorTest.cs index 1bd3fbdd19d..61516290135 100644 --- a/test/OpenTelemetry.Tests/BaseProcessorTest.cs +++ b/test/OpenTelemetry.Tests/BaseProcessorTest.cs @@ -50,4 +50,4 @@ public void NoOp() testProcessor.OnStart(new object()); testProcessor.OnEnd(new object()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs b/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs index a609c455c44..e20be44ee87 100644 --- a/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs +++ b/test/OpenTelemetry.Tests/Concurrency/MetricsConcurrencyTests.cs @@ -54,4 +54,4 @@ public void MultithreadedLongHistogramTestConcurrencyTest() Assert.Equal(0, test.TestReport.NumOfFoundBugs); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/EventSourceTest.cs b/test/OpenTelemetry.Tests/EventSourceTest.cs index d1bee7ddd8d..5e7d3e2f258 100644 --- a/test/OpenTelemetry.Tests/EventSourceTest.cs +++ b/test/OpenTelemetry.Tests/EventSourceTest.cs @@ -13,4 +13,4 @@ public void EventSourceTest_OpenTelemetrySdkEventSource() { EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(OpenTelemetrySdkEventSource.Log); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs b/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs index 4fc4b91f9e0..e5841f53e64 100644 --- a/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs +++ b/test/OpenTelemetry.Tests/Instrumentation/ActivityInstrumentationHelperTest.cs @@ -36,4 +36,4 @@ public void SetActivityKind(ActivityKind activityKind) ActivityInstrumentationHelper.SetKindProperty(activity, activityKind); Assert.Equal(activityKind, activity.Kind); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs b/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs index 6a9c4bf1137..9acf58b3128 100644 --- a/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs +++ b/test/OpenTelemetry.Tests/Instrumentation/PropertyFetcherTest.cs @@ -152,4 +152,4 @@ private class PayloadTypeWithDerivedType { public DerivedType Property { get; set; } = new DerivedType(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs b/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs index 89a9c89289d..2e0e4225526 100644 --- a/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs +++ b/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs @@ -156,4 +156,4 @@ public async Task CpuPressureTest() await Task.WhenAll(tasks); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs b/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs index 490be2024af..a0d1c6fa9fc 100644 --- a/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs +++ b/test/OpenTelemetry.Tests/Internal/MathHelperTest.cs @@ -91,4 +91,4 @@ public void PositiveModulo64(long value, long divisor, long expectedRemainder) { Assert.Equal(expectedRemainder, MathHelper.PositiveModulo64(value: value, divisor: divisor)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs b/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs index 3d059f72906..4b8847a17c3 100644 --- a/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs +++ b/test/OpenTelemetry.Tests/Internal/PeriodicExportingMetricReaderHelperTests.cs @@ -136,4 +136,4 @@ private static PeriodicExportingMetricReader CreatePeriodicExportingMetricReader var dummyMetricExporter = new InMemoryExporter(Array.Empty()); return PeriodicExportingMetricReaderHelper.CreatePeriodicExportingMetricReader(dummyMetricExporter, options); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/PooledListTest.cs b/test/OpenTelemetry.Tests/Internal/PooledListTest.cs index 7d888d69d58..eccbef450ad 100644 --- a/test/OpenTelemetry.Tests/Internal/PooledListTest.cs +++ b/test/OpenTelemetry.Tests/Internal/PooledListTest.cs @@ -95,4 +95,4 @@ public void Verify_Enumerator() ienumerator.Reset(); Assert.Equal(default, enumerator.Current); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs index 27868e360f4..9249728690d 100644 --- a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs +++ b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigParserTest.cs @@ -72,4 +72,4 @@ public void SelfDiagnosticsConfigParser_TryParseLogLevel() Assert.True(SelfDiagnosticsConfigParser.TryParseLogLevel(configJson, out string logLevelString)); Assert.Equal("Error", logLevelString); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs index c393da2e144..10c0be18fa2 100644 --- a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs +++ b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsConfigRefresherTest.cs @@ -121,4 +121,4 @@ private static void CleanupConfigFile() // ignore any exceptions while removing files } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs index 7614f100436..58777971b5d 100644 --- a/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs +++ b/test/OpenTelemetry.Tests/Internal/SelfDiagnosticsEventListenerTest.cs @@ -277,4 +277,4 @@ private static void AssertBufferOutput(byte[] expected, byte[] buffer, int start Assert.Equal(expected[i], buffer[j]); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs b/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs index b3bd7ece166..9b079580b87 100644 --- a/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs +++ b/test/OpenTelemetry.Tests/Internal/WildcardHelperTests.cs @@ -34,4 +34,4 @@ public void Verify_ContainsWildcard(string pattern, bool expected) { Assert.Equal(expected, WildcardHelper.ContainsWildcard(pattern)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs b/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs index 68da5f57850..2030e402c24 100644 --- a/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs +++ b/test/OpenTelemetry.Tests/Logs/BatchExportLogRecordProcessorOptionsTest.cs @@ -100,4 +100,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable(BatchExportLogRecordProcessorOptions.MaxQueueSizeEnvVarKey, null); Environment.SetEnvironmentVariable(BatchExportLogRecordProcessorOptions.ScheduledDelayEnvVarKey, null); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs b/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs index 7b5a7b30dd1..c19997c5761 100644 --- a/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs +++ b/test/OpenTelemetry.Tests/Logs/BatchLogRecordExportProcessorTests.cs @@ -94,4 +94,4 @@ public void StateBufferingTest() }); } } -#endif \ No newline at end of file +#endif diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs b/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs index dd10bd5cd8a..69aa4a958be 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordSharedPoolTests.cs @@ -258,4 +258,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs b/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs index 2db3f33cd7b..e77f476ce2c 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs @@ -1159,4 +1159,4 @@ public override void OnEnd(LogRecord data) } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs b/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs index 0fdcb67a4b6..ff337bccd4f 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordThreadStaticPoolTests.cs @@ -72,4 +72,4 @@ public void ClearTests() Assert.Null(logRecord1.AttributeStorage); Assert.Null(logRecord1.ScopeStorage); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs index 8507251debc..073160b6e5c 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerFactoryAndResourceBuilderTests.cs @@ -62,4 +62,4 @@ private static void VerifyResourceBuilder( // Verify assert.Invoke(resource); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs index 5f5b2019e6f..e8a40af4f1b 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerProviderBuilderExtensionsTests.cs @@ -212,4 +212,4 @@ public override LoggerProviderBuilder AddInstrumentation(Func< throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs index b42aa8a81f9..7bdbfc678fe 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerProviderExtensionsTests.cs @@ -96,4 +96,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs b/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs index 9a91a74f107..7122dd089e1 100644 --- a/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs +++ b/test/OpenTelemetry.Tests/Logs/LoggerProviderSdkTests.cs @@ -167,4 +167,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs index 544b7bc636b..e40d8d8b60a 100644 --- a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs +++ b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggerProviderTests.cs @@ -71,4 +71,4 @@ public void VerifyOptionsCannotBeChangedAfterInit(bool initialValue) Assert.Equal(initialValue, provider.Options.IncludeScopes); Assert.Equal(initialValue, provider.Options.ParseStateValues); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs index 8a6f3e4ef0a..ddf0c27a6ec 100644 --- a/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Logs/OpenTelemetryLoggingExtensionsTests.cs @@ -269,4 +269,4 @@ public void VerifyExceptionIsThrownWhenImplementationFactoryIsNull() private class TestLogProcessor : BaseProcessor { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs index dc6ebe84810..bb9f1489b9f 100644 --- a/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/AggregatorTestsBase.cs @@ -547,4 +547,4 @@ public AggregatorTestsWithBothReclaimAndOverflowAttributes() : base(emitOverflowAttribute: true, shouldReclaimUnusedMetricPoints: true) { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs index 1d681676ffc..0af08fffc11 100644 --- a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramHelperTests.cs @@ -231,4 +231,4 @@ private void DisplayMarginOfError(bool displayDebugInfo, int scale, int index) var marginOfError = lowerBoundDelta / lowerBound; this.output.WriteLine($"{scale},{index},{unusedIndex},{lowerBound},{roundTrip},{preciseLowerBound},{lowerBoundDelta},{marginOfError},{increments}"); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs index 23bac6fa1da..a40beac0aa2 100644 --- a/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs +++ b/test/OpenTelemetry.Tests/Metrics/Base2ExponentialBucketHistogramTest.cs @@ -564,4 +564,4 @@ are mapped to an index off by one. The range of these incorrectly mapped this.output.WriteLine($"Average number of values near a bucket boundary that are off by one: {numValuesOffByOne.Average()}"); this.output.WriteLine($"Average range of values near a bucket boundary that are off by one: {diffs.Average()}"); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs b/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs index 0da994e8436..7666ab1a5df 100644 --- a/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs +++ b/test/OpenTelemetry.Tests/Metrics/CircularBufferBucketsTest.cs @@ -398,4 +398,4 @@ public void ScaleDownCapacity4() Assert.Equal(12, buckets[buckets.Offset + 1]); Assert.Equal(16, buckets[buckets.Offset + 2]); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs b/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs index c6edde60cb6..bb44505bd9c 100644 --- a/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/InMemoryExporterTests.cs @@ -51,4 +51,4 @@ public void InMemoryExporterShouldDeepCopyMetricPoints() // MetricPoint.LongValue for the first exported metric should still be 10 Assert.Equal(10, metric1.MetricPoints[0].GetSumLong()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs b/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs index 76898c5f735..b63b4c2651b 100644 --- a/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs +++ b/test/OpenTelemetry.Tests/Metrics/KnownHistogramBuckets.cs @@ -19,4 +19,4 @@ public enum KnownHistogramBuckets /// Buckets for up to 300 seconds. /// DefaultLongSeconds, -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs b/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs index af909f99305..3965aa0599c 100644 --- a/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MemoryEfficiencyTests.cs @@ -43,4 +43,4 @@ public void ExportOnlyWhenPointChanged(MetricReaderTemporalityPreference tempora Assert.Empty(exportedItems); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs b/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs index f52c8ff58b1..5ddd39fee0d 100644 --- a/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MeterProviderBuilderExtensionsTests.cs @@ -391,4 +391,4 @@ public override MeterProviderBuilder AddMeter(params string[] names) throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs b/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs index 2cb5e381af1..bce959764f2 100644 --- a/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs +++ b/test/OpenTelemetry.Tests/Metrics/MeterProviderSdkTest.cs @@ -104,4 +104,4 @@ void RunTest() } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs b/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs index 2f1f1e5782f..d179363c035 100644 --- a/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MeterProviderTests.cs @@ -27,4 +27,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs index d7ed742fa58..1e0c8a59dd1 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricApiTestsBase.cs @@ -1819,4 +1819,4 @@ public MetricApiTestWithBothOverflowAndReclaimAttributes(ITestOutputHelper outpu : base(output, emitOverflowAttribute: true, shouldReclaimUnusedMetricPoints: true) { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs index f83100efc96..98200c22e00 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricExemplarTests.cs @@ -197,4 +197,4 @@ private static void ValidateExemplars(Exemplar[] exemplars, DateTimeOffset start } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs index 158c2591400..185679acac9 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricExporterTests.cs @@ -85,4 +85,4 @@ public override ExportResult Export(in Batch batch) return ExportResult.Success; } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs index b3fc01272ae..4726b38043f 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricOverflowAttributeTestsBase.cs @@ -471,4 +471,4 @@ public MetricOverflowAttributeTestsWithReclaimAttribute() : base(true) { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs index c6c6d216ed1..6b8505a611a 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricPointReclaimTestsBase.cs @@ -354,4 +354,4 @@ public MetricPointReclaimTestsWithEmitOverflowAttribute() : base(emitOverflowAttribute: true) { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs index 64fa6536cf1..070c7d57754 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricPointTests.cs @@ -81,4 +81,4 @@ public void VerifyHistogramBucketsCopy() Assert.Equal(copy.SnapshotBucketCounts, histogramBuckets.SnapshotBucketCounts); Assert.Equal(copy.SnapshotSum, histogramBuckets.SnapshotSum); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs index ef2982611a6..08ce90ffe44 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricSnapshotTestsBase.cs @@ -325,4 +325,4 @@ public MetricSnapshotTestsWithBothAttributes() : base(emitOverflowAttribute: true, shouldReclaimUnusedMetricPoints: true) { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs b/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs index 13679edcc95..669212a103a 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricTestData.cs @@ -56,4 +56,4 @@ public static IEnumerable InvalidHistogramMinMax new object[] { new double[] { 1 }, new ExplicitBucketHistogramConfiguration() { Boundaries = new double[] { 10, 20 }, RecordMinMax = false } }, new object[] { new double[] { 1 }, new Base2ExponentialBucketHistogramConfiguration() { RecordMinMax = false } }, }; -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs b/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs index 00a3a2bfff1..0e5c1e1e53f 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricTestsBase.cs @@ -297,4 +297,4 @@ public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask; } #endif -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs index aa35b1618ca..588c15bb277 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs @@ -1236,4 +1236,4 @@ public void ViewConflict_TwoInstruments_ConflictAvoidedBecauseSecondInstrumentIs Assert.Equal("othername", exportedItems[0].Name); Assert.Equal(10, GetLongSum(metric1)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs b/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs index 49319c90fb9..16309219654 100644 --- a/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MultipleReadersTests.cs @@ -217,4 +217,4 @@ private static void AssertLongSumValueForMetric(Metric metric, long value) Assert.Equal(value, metricPointForFirstExport.GetGaugeLastValueLong()); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs b/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs index 671c18f85f1..a6180b7a4cd 100644 --- a/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs +++ b/test/OpenTelemetry.Tests/Resources/OtelEnvResourceDetectorTest.cs @@ -86,4 +86,4 @@ public void OtelEnvResource_UsingIConfiguration() Assert.Contains(new KeyValuePair("Key1", "Val1"), resource.Attributes); Assert.Contains(new KeyValuePair("Key2", "Val2"), resource.Attributes); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs b/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs index 212f5913bba..9b3bf437cc8 100644 --- a/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs +++ b/test/OpenTelemetry.Tests/Resources/OtelServiceNameEnvVarDetectorTests.cs @@ -71,4 +71,4 @@ public void OtelServiceNameEnvVar_UsingIConfiguration() Assert.NotEqual(Resource.Empty, resource); Assert.Contains(new KeyValuePair(ResourceSemanticConventions.AttributeServiceName, "my-service"), resource.Attributes); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs b/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs index 05c76fac36b..15ecdeedc88 100644 --- a/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs +++ b/test/OpenTelemetry.Tests/Resources/ResourceBuilderTests.cs @@ -84,4 +84,4 @@ public void ClearTest() Assert.Single(resource.Attributes); Assert.Contains(new KeyValuePair(ResourceSemanticConventions.AttributeServiceName, "my-service"), resource.Attributes); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Resources/ResourceTest.cs b/test/OpenTelemetry.Tests/Resources/ResourceTest.cs index 7fd14649537..337870a8a11 100644 --- a/test/OpenTelemetry.Tests/Resources/ResourceTest.cs +++ b/test/OpenTelemetry.Tests/Resources/ResourceTest.cs @@ -615,4 +615,4 @@ private sealed class NoopResourceDetector : IResourceDetector { public Resource Detect() => Resource.Empty; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/SdkTests.cs b/test/OpenTelemetry.Tests/SdkTests.cs index 5064b2c5653..f4d4908fc4b 100644 --- a/test/OpenTelemetry.Tests/SdkTests.cs +++ b/test/OpenTelemetry.Tests/SdkTests.cs @@ -25,4 +25,4 @@ public void ParseAssemblyInformationalVersionTests(string? informationalVersion, Assert.Equal(expectedVersion, actualVersion); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs b/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs index 6784e895ee3..a3524f17cbf 100644 --- a/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs +++ b/test/OpenTelemetry.Tests/Shared/CustomTextMapPropagator.cs @@ -48,4 +48,4 @@ public override void Inject(PropagationContext context, T carrier, Action : BaseExporter protected override bool OnForceFlush(int timeoutMilliseconds) => this.OnForceFlushFunc(timeoutMilliseconds); protected override bool OnShutdown(int timeoutMilliseconds) => this.OnShutdownFunc(timeoutMilliseconds); -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs b/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs index f48deaf788e..db5148a5ab6 100644 --- a/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs +++ b/test/OpenTelemetry.Tests/Shared/DelegatingProcessor.cs @@ -13,4 +13,4 @@ public class DelegatingProcessor : BaseProcessor protected override bool OnForceFlush(int timeoutMilliseconds) => this.OnForceFlushFunc(timeoutMilliseconds); protected override bool OnShutdown(int timeoutMilliseconds) => this.OnShutdownFunc(timeoutMilliseconds); -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs b/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs index bc6cf1e13c7..4fda3e1a9bc 100644 --- a/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs +++ b/test/OpenTelemetry.Tests/Shared/EnabledOnDockerPlatformTheoryAttribute.cs @@ -70,4 +70,4 @@ public enum DockerPlatform /// Windows, } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs b/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs index 2ca2b4c70d8..c0f5055d490 100644 --- a/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs +++ b/test/OpenTelemetry.Tests/Shared/EventSourceTestHelper.cs @@ -129,4 +129,4 @@ private static IEnumerable GetEventMethods(EventSource eventSource) MethodInfo[] methods = eventSource.GetType().GetMethods(); return methods.Where(m => m.GetCustomAttributes(typeof(EventAttribute), false).Any()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs b/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs index 65e3f5d633d..a7fb0224bff 100644 --- a/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs +++ b/test/OpenTelemetry.Tests/Shared/HttpSemanticConventionHelperTest.cs @@ -76,4 +76,4 @@ public void VerifyGetSemanticConventionOptIn_UsingIConfiguration(string input, s var expected = Enum.Parse(typeof(HttpSemanticConvention), expectedValue); Assert.Equal(expected, GetSemanticConventionOptIn(configuration)); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs b/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs index c9e1bd8f1ab..e897b09b29d 100644 --- a/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs +++ b/test/OpenTelemetry.Tests/Shared/IEEE754Double.cs @@ -86,4 +86,4 @@ public override string ToString() return chars.ToString(); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs b/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs index 3b36cdee06f..9768d619643 100644 --- a/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs +++ b/test/OpenTelemetry.Tests/Shared/InMemoryEventListener.cs @@ -19,4 +19,4 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData) { this.Events.Enqueue(eventData); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/MathHelper.cs b/test/OpenTelemetry.Tests/Shared/MathHelper.cs index 54c5cf5322c..11a7573700e 100644 --- a/test/OpenTelemetry.Tests/Shared/MathHelper.cs +++ b/test/OpenTelemetry.Tests/Shared/MathHelper.cs @@ -68,4 +68,4 @@ public static double BitDecrement(double x) return BitConverter.Int64BitsToDouble(bits); #endif } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs b/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs index 83cc9a5d13f..eb03f764e62 100644 --- a/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs +++ b/test/OpenTelemetry.Tests/Shared/RecordOnlySampler.cs @@ -11,4 +11,4 @@ public override SamplingResult ShouldSample(in SamplingParameters param) { return new SamplingResult(SamplingDecision.RecordOnly); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs index 6a98da7dd2f..adfebcaf184 100644 --- a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs +++ b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundFactAttribute.cs @@ -26,4 +26,4 @@ public static string GetEnvironmentVariable(string environmentVariableName) return environmentVariableValue; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs index a80ee07963e..dc5ce2ca66f 100644 --- a/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs +++ b/test/OpenTelemetry.Tests/Shared/SkipUnlessEnvVarFoundTheoryAttribute.cs @@ -26,4 +26,4 @@ public static string GetEnvironmentVariable(string environmentVariableName) return environmentVariableValue; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs b/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs index e1520ca470e..14a310d2248 100644 --- a/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs +++ b/test/OpenTelemetry.Tests/Shared/TagTransformerJsonHelperTest.cs @@ -137,4 +137,4 @@ private static void VerifySerialization(Array data) Assert.Equal(reflectionBasedResult, rawResult); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs b/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs index ad59f41ac7f..092ce859c67 100644 --- a/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs +++ b/test/OpenTelemetry.Tests/Shared/TestActivityExportProcessor.cs @@ -18,4 +18,4 @@ protected override void OnExport(Activity data) { this.ExportedItems.Add(data); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs b/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs index e586453aec6..36d47b7b8fa 100644 --- a/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs +++ b/test/OpenTelemetry.Tests/Shared/TestActivityProcessor.cs @@ -52,4 +52,4 @@ protected override void Dispose(bool disposing) { this.DisposedCalled = true; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/TestEventListener.cs b/test/OpenTelemetry.Tests/Shared/TestEventListener.cs index 285542b059e..b0cf1d0b120 100644 --- a/test/OpenTelemetry.Tests/Shared/TestEventListener.cs +++ b/test/OpenTelemetry.Tests/Shared/TestEventListener.cs @@ -84,4 +84,4 @@ protected override void OnEventSourceCreated(EventSource eventSource) Action callback = this.OnOnEventSourceCreated; callback?.Invoke(eventSource); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs b/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs index 361dc5b3444..5965e5fecf4 100644 --- a/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs +++ b/test/OpenTelemetry.Tests/Shared/TestHttpServer.cs @@ -101,4 +101,4 @@ public void Dispose() } } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/TestSampler.cs b/test/OpenTelemetry.Tests/Shared/TestSampler.cs index 323836277f1..7bc39ba454c 100644 --- a/test/OpenTelemetry.Tests/Shared/TestSampler.cs +++ b/test/OpenTelemetry.Tests/Shared/TestSampler.cs @@ -16,4 +16,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame this.LatestSamplingParameters = samplingParameters; return this.SamplingAction?.Invoke(samplingParameters) ?? new SamplingResult(SamplingDecision.RecordAndSample); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Shared/Utils.cs b/test/OpenTelemetry.Tests/Shared/Utils.cs index 3a7ceb8b7f9..d85c8c74e47 100644 --- a/test/OpenTelemetry.Tests/Shared/Utils.cs +++ b/test/OpenTelemetry.Tests/Shared/Utils.cs @@ -18,4 +18,4 @@ public static string GetCurrentMethodName() return $"{method.DeclaringType!.FullName}.{method.Name}"; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs b/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs index 2a642a7c595..3e5b92c5b52 100644 --- a/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs +++ b/test/OpenTelemetry.Tests/SimpleExportProcessorTest.cs @@ -41,4 +41,4 @@ public TestSimpleExportProcessor(BaseExporter exporter) { } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs b/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs index 22d21c0f5b2..d562699fec8 100644 --- a/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs +++ b/test/OpenTelemetry.Tests/SuppressInstrumentationTest.cs @@ -98,4 +98,4 @@ public void IncrementIfTriggeredOnlyWorksInReferenceCountingMode() Assert.Equal(0, SuppressInstrumentationScope.DecrementIfTriggered()); Assert.False(Sdk.SuppressInstrumentation); // Instrumentation is not suppressed anymore } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs b/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs index 1dda6d8b648..faee6e8f287 100644 --- a/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs +++ b/test/OpenTelemetry.Tests/TestSelfDiagnosticsConfigRefresher.cs @@ -19,4 +19,4 @@ public override bool TryGetLogStream(int byteCount, [NotNullWhen(true)] out Stre availableByteCount = 0; return true; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs b/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs index 115e7183e3b..deb5e383b5b 100644 --- a/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs +++ b/test/OpenTelemetry.Tests/Trace/AttributesExtensions.cs @@ -25,4 +25,4 @@ public static void AssertAreSame( Assert.Contains(attr, expectedKeyValuePairs); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs index d9736380f2f..27f1e3de92f 100644 --- a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs +++ b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorOptionsTest.cs @@ -114,4 +114,4 @@ private static void ClearEnvVars() Environment.SetEnvironmentVariable(BatchExportActivityProcessorOptions.MaxQueueSizeEnvVarKey, null); Environment.SetEnvironmentVariable(BatchExportActivityProcessorOptions.ScheduledDelayEnvVarKey, null); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs index 429383188ec..14a97e39c91 100644 --- a/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/BatchExportActivityProcessorTest.cs @@ -197,4 +197,4 @@ private class FailureExporter : BaseExporter { public override ExportResult Export(in Batch batch) => ExportResult.Failure; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/BatchTest.cs b/test/OpenTelemetry.Tests/Trace/BatchTest.cs index d7ae1812583..b1d5b170d52 100644 --- a/test/OpenTelemetry.Tests/Trace/BatchTest.cs +++ b/test/OpenTelemetry.Tests/Trace/BatchTest.cs @@ -158,4 +158,4 @@ private static void ValidateEnumerator(Batch.Enumerator enumerator, stri Assert.Equal(expected, enumerator.Current); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs b/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs index 68578f5734b..8f8bccb8e29 100644 --- a/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs +++ b/test/OpenTelemetry.Tests/Trace/CompositeActivityProcessorTests.cs @@ -109,4 +109,4 @@ public void CompositeActivityProcessor_ForwardsParentProvider() private sealed class TestProvider : TracerProvider { } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs b/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs index 0337205c958..e9b76794625 100644 --- a/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs +++ b/test/OpenTelemetry.Tests/Trace/CurrentSpanTests.cs @@ -36,4 +36,4 @@ public void Dispose() Activity.Current = null; GC.SuppressFinalize(this); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs index f0061f34ae5..98d8d01a034 100644 --- a/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/ExceptionProcessorTest.cs @@ -134,4 +134,4 @@ private static object GetTagValue(Activity activity, string tagName) return null; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs index 619a4675d4f..9c4768bc251 100644 --- a/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/ExportProcessorTest.cs @@ -78,4 +78,4 @@ public void ExportProcessorExportsActivityMarkedAsRecordAndSample() Assert.Single(processor.ExportedItems); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/LinkTest.cs b/test/OpenTelemetry.Tests/Trace/LinkTest.cs index d81e74133e5..fbfd543da1c 100644 --- a/test/OpenTelemetry.Tests/Trace/LinkTest.cs +++ b/test/OpenTelemetry.Tests/Trace/LinkTest.cs @@ -114,4 +114,4 @@ public void Dispose() Activity.Current = null; GC.SuppressFinalize(this); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs b/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs index 402fa36507f..0861a224ca9 100644 --- a/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs +++ b/test/OpenTelemetry.Tests/Trace/ParentBasedSamplerTests.cs @@ -135,4 +135,4 @@ private static SamplingParameters MakeTestParameters(bool parentIsRemote, bool p name: "Span", kind: ActivityKind.Client); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs b/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs index 53c54ee1018..728d3884e45 100644 --- a/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/Propagation/TraceContextPropagatorTest.cs @@ -317,4 +317,4 @@ private static string CallTraceContextPropagator(string[] tracestate) var ctx = f.Extract(default, headers, ArrayGetter); return ctx.ActivityContext.TraceState; } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/SamplersTest.cs b/test/OpenTelemetry.Tests/Trace/SamplersTest.cs index b4b985db7c1..94f158e910c 100644 --- a/test/OpenTelemetry.Tests/Trace/SamplersTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SamplersTest.cs @@ -265,4 +265,4 @@ public override SamplingResult ShouldSample(in SamplingParameters samplingParame throw new InvalidOperationException("ThrowingSampler"); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs b/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs index 55799b37116..16b52b97ec2 100644 --- a/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SamplingResultTest.cs @@ -115,4 +115,4 @@ public void Verify_GetHashCode(SamplingDecision decision) Assert.NotEqual(samplingResult1.GetHashCode(), samplingResult2.GetHashCode()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs b/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs index 94441566985..5cc52c6eee8 100644 --- a/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SimpleExportActivityProcessorTest.cs @@ -109,4 +109,4 @@ public void CheckExportForRecordingButNotSampledActivity() processor.OnEnd(activity); Assert.Empty(exportedItems); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs b/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs index e9010e6f5dd..18b4bd8c73a 100644 --- a/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs +++ b/test/OpenTelemetry.Tests/Trace/SpanContextTest.cs @@ -192,4 +192,4 @@ public void TestGetHashCode() Assert.NotEqual(0, context1.GetHashCode()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs b/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs index 42ce13b450c..bfcdb21a3b9 100644 --- a/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TraceIdRatioBasedSamplerTest.cs @@ -89,4 +89,4 @@ public void GetDescription() var expectedDescription = "TraceIdRatioBasedSampler{0.500000}"; Assert.Equal(expectedDescription, new TraceIdRatioBasedSampler(0.5).Description); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs index 4e5ae54e473..6c0da445af6 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderBaseTests.cs @@ -67,4 +67,4 @@ public void AddInstrumentationViaProtectedMethod(string? name, string? version, this.AddInstrumentation(name!, version!, factory!); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs index 7cb5e8ee942..2d582402f62 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderBuilderExtensionsTest.cs @@ -524,4 +524,4 @@ public override TracerProviderBuilder AddSource(params string[] names) throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs index 5aff7de585a..5722284db99 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderExtensionsTest.cs @@ -53,4 +53,4 @@ public void Verify_Shutdown_HandlesException() Assert.False(tracerProvider.Shutdown()); } -} \ No newline at end of file +} diff --git a/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs b/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs index b874430c879..b78744b49b5 100644 --- a/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs +++ b/test/OpenTelemetry.Tests/Trace/TracerProviderSdkTest.cs @@ -1264,4 +1264,4 @@ public void Dispose() this.IsDisposed = true; } } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/ActivityMiddleware.cs b/test/TestApp.AspNetCore/ActivityMiddleware.cs index b653e7f1276..591bc388f34 100644 --- a/test/TestApp.AspNetCore/ActivityMiddleware.cs +++ b/test/TestApp.AspNetCore/ActivityMiddleware.cs @@ -41,4 +41,4 @@ public virtual void PostProcess(HttpContext context) // Do nothing } } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/CallbackMiddleware.cs b/test/TestApp.AspNetCore/CallbackMiddleware.cs index c6b0aa7ee4a..fee8569d5d0 100644 --- a/test/TestApp.AspNetCore/CallbackMiddleware.cs +++ b/test/TestApp.AspNetCore/CallbackMiddleware.cs @@ -29,4 +29,4 @@ public virtual async Task ProcessAsync(HttpContext context) return await Task.FromResult(true); } } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs b/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs index 55dcd49b247..edfa4d853cf 100644 --- a/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs +++ b/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs @@ -34,4 +34,4 @@ public IReadOnlyDictionary GetChildActivityBaggageContext() var result = Baggage.Current.GetBaggage(); return result; } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/Controllers/ErrorController.cs b/test/TestApp.AspNetCore/Controllers/ErrorController.cs index 97e985134c0..24c904cfe9f 100644 --- a/test/TestApp.AspNetCore/Controllers/ErrorController.cs +++ b/test/TestApp.AspNetCore/Controllers/ErrorController.cs @@ -14,4 +14,4 @@ public string Get() { throw new Exception("something's wrong!"); } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/Controllers/ValuesController.cs b/test/TestApp.AspNetCore/Controllers/ValuesController.cs index 9dcbf9ac960..27a9ab0d2d3 100644 --- a/test/TestApp.AspNetCore/Controllers/ValuesController.cs +++ b/test/TestApp.AspNetCore/Controllers/ValuesController.cs @@ -39,4 +39,4 @@ public void Put(int id, [FromBody] string value) public void Delete(int id) { } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs b/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs index 9b25ccb6085..1f058860693 100644 --- a/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs +++ b/test/TestApp.AspNetCore/Filters/ExceptionFilter1.cs @@ -11,4 +11,4 @@ public void OnException(ExceptionContext context) { // test the behaviour when an application has two ExceptionFilters defined } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs b/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs index cd76796a8d1..fc81905c650 100644 --- a/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs +++ b/test/TestApp.AspNetCore/Filters/ExceptionFilter2.cs @@ -11,4 +11,4 @@ public void OnException(ExceptionContext context) { // test the behaviour when an application has two ExceptionFilters defined } -} \ No newline at end of file +} diff --git a/test/TestApp.AspNetCore/Program.cs b/test/TestApp.AspNetCore/Program.cs index 7391c139408..49b801fb6c3 100644 --- a/test/TestApp.AspNetCore/Program.cs +++ b/test/TestApp.AspNetCore/Program.cs @@ -49,4 +49,4 @@ public static void Main(string[] args) app.Run(); } -} \ No newline at end of file +}