From 688c33069bf6a51f339a5470207516d85f8b0cd0 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 23 Jan 2025 17:00:42 +1100 Subject: [PATCH] move SemanticConventions from shared to API project --- OpenTelemetry.sln | 1 - build/Common.props | 1 - src/OpenTelemetry.Api/AssemblyInfo.cs | 2 ++ src/OpenTelemetry.Api/OpenTelemetry.Api.csproj | 1 - src/{Shared => OpenTelemetry.Api}/SemanticConventions.cs | 0 .../OpenTelemetry.Exporter.Zipkin.csproj | 5 ----- 6 files changed, 2 insertions(+), 8 deletions(-) rename src/{Shared => OpenTelemetry.Api}/SemanticConventions.cs (100%) diff --git a/OpenTelemetry.sln b/OpenTelemetry.sln index a072b792a9..c5ba10272d 100644 --- a/OpenTelemetry.sln +++ b/OpenTelemetry.sln @@ -258,7 +258,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{A49299 src\Shared\PeriodicExportingMetricReaderHelper.cs = src\Shared\PeriodicExportingMetricReaderHelper.cs src\Shared\PooledList.cs = src\Shared\PooledList.cs src\Shared\ResourceSemanticConventions.cs = src\Shared\ResourceSemanticConventions.cs - src\Shared\SemanticConventions.cs = src\Shared\SemanticConventions.cs src\Shared\SpanAttributeConstants.cs = src\Shared\SpanAttributeConstants.cs src\Shared\StatusHelper.cs = src\Shared\StatusHelper.cs src\Shared\ThreadSafeRandom.cs = src\Shared\ThreadSafeRandom.cs diff --git a/build/Common.props b/build/Common.props index c1a4874c57..be6ce2431e 100644 --- a/build/Common.props +++ b/build/Common.props @@ -68,7 +68,6 @@ - diff --git a/src/OpenTelemetry.Api/AssemblyInfo.cs b/src/OpenTelemetry.Api/AssemblyInfo.cs index b1e95ff67e..4ecf57a29c 100644 --- a/src/OpenTelemetry.Api/AssemblyInfo.cs +++ b/src/OpenTelemetry.Api/AssemblyInfo.cs @@ -11,6 +11,8 @@ [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.InMemory" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Zipkin" + AssemblyInfo.PublicKey)] +[assembly: InternalsVisibleTo("OpenTelemetry.Exporter.Zipkin.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo.PublicKey)] [assembly: InternalsVisibleTo("OpenTelemetry.Shims.OpenTracing.Tests" + AssemblyInfo.PublicKey)] diff --git a/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj b/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj index 0e6d270b40..7d6b91bfb9 100644 --- a/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj +++ b/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj @@ -15,7 +15,6 @@ - diff --git a/src/Shared/SemanticConventions.cs b/src/OpenTelemetry.Api/SemanticConventions.cs similarity index 100% rename from src/Shared/SemanticConventions.cs rename to src/OpenTelemetry.Api/SemanticConventions.cs diff --git a/src/OpenTelemetry.Exporter.Zipkin/OpenTelemetry.Exporter.Zipkin.csproj b/src/OpenTelemetry.Exporter.Zipkin/OpenTelemetry.Exporter.Zipkin.csproj index 78d44fd3ee..3a6310b485 100644 --- a/src/OpenTelemetry.Exporter.Zipkin/OpenTelemetry.Exporter.Zipkin.csproj +++ b/src/OpenTelemetry.Exporter.Zipkin/OpenTelemetry.Exporter.Zipkin.csproj @@ -10,18 +10,13 @@ - - - - -