File tree 8 files changed +7
-50
lines changed
OpenTelemetry.Api.ProviderBuilderExtensions
OpenTelemetry.Exporter.Console
OpenTelemetry.Exporter.InMemory
OpenTelemetry.Exporter.OpenTelemetryProtocol
OpenTelemetry.Extensions.Hosting
8 files changed +7
-50
lines changed Original file line number Diff line number Diff line change 72
72
<DefineConstants >$(DefineConstants);EXPOSE_EXPERIMENTAL_FEATURES</DefineConstants >
73
73
</PropertyGroup >
74
74
75
- <ItemGroup Condition =" '$(ExposeExperimentalFeatures)' != 'true'" >
76
- <Compile Remove =" @(Compile)" Condition =" '%(Compile.RequiresExposedExperimentalFeatures)' == 'true'" />
77
- </ItemGroup >
78
-
79
75
<!-- Note: This selects the correct PublicApiAnalyzers files based on $(ExposeExperimentalFeatures) -->
80
76
<ItemGroup >
81
77
<AdditionalFiles Include =" .publicApi\Stable\PublicAPI.*.txt" />
Original file line number Diff line number Diff line change 4
4
using System . Runtime . CompilerServices ;
5
5
6
6
[ assembly: InternalsVisibleTo ( "OpenTelemetry" + AssemblyInfo . PublicKey ) ]
7
- [ assembly: InternalsVisibleTo ( "OpenTelemetry.Tests" + AssemblyInfo . PublicKey ) ]
8
7
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo . PublicKey ) ]
9
-
10
- #if ! EXPOSE_EXPERIMENTAL_FEATURES
11
8
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.Console" + AssemblyInfo . PublicKey ) ]
12
9
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo . PublicKey ) ]
13
10
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo . PublicKey ) ]
14
11
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Extensions.Hosting" + AssemblyInfo . PublicKey ) ]
15
- #endif
12
+ [ assembly : InternalsVisibleTo ( "OpenTelemetry.Tests" + AssemblyInfo . PublicKey ) ]
16
13
17
14
#if SIGNED
18
15
file static class AssemblyInfo
Original file line number Diff line number Diff line change 5
5
6
6
[ assembly: InternalsVisibleTo ( "OpenTelemetry" + AssemblyInfo . PublicKey ) ]
7
7
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Api.ProviderBuilderExtensions" + AssemblyInfo . PublicKey ) ]
8
- [ assembly: InternalsVisibleTo ( "OpenTelemetry.Api.Tests" + AssemblyInfo . PublicKey ) ]
9
- [ assembly: InternalsVisibleTo ( "OpenTelemetry.Shims.OpenTracing.Tests" + AssemblyInfo . PublicKey ) ]
10
- [ assembly: InternalsVisibleTo ( "OpenTelemetry.Tests" + AssemblyInfo . PublicKey ) ]
11
-
12
- #if ! EXPOSE_EXPERIMENTAL_FEATURES
13
8
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Api.ProviderBuilderExtensions.Tests" + AssemblyInfo . PublicKey ) ]
9
+ [ assembly: InternalsVisibleTo ( "OpenTelemetry.Api.Tests" + AssemblyInfo . PublicKey ) ]
14
10
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.Console" + AssemblyInfo . PublicKey ) ]
15
11
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.InMemory" + AssemblyInfo . PublicKey ) ]
16
12
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo . PublicKey ) ]
17
13
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo . PublicKey ) ]
18
14
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Extensions.Hosting" + AssemblyInfo . PublicKey ) ]
19
15
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo . PublicKey ) ]
20
- #endif
16
+ [ assembly: InternalsVisibleTo ( "OpenTelemetry.Shims.OpenTracing.Tests" + AssemblyInfo . PublicKey ) ]
17
+ [ assembly: InternalsVisibleTo ( "OpenTelemetry.Tests" + AssemblyInfo . PublicKey ) ]
21
18
22
19
#if SIGNED
23
20
file static class AssemblyInfo
Original file line number Diff line number Diff line change 28
28
<Compile Include =" $(RepoRoot)\src\Shared\PeriodicExportingMetricReaderHelper.cs" Link =" Includes\PeriodicExportingMetricReaderHelper.cs" />
29
29
<Compile Include =" $(RepoRoot)\src\Shared\TagTransformer.cs" Link =" Includes\TagTransformer.cs" />
30
30
<Compile Include =" $(RepoRoot)\src\Shared\TagTransformerJsonHelper.cs" Link =" Includes\TagTransformerJsonHelper.cs" />
31
-
32
- <!-- Note: When '$(ExposeExperimentalFeatures)' == 'false' these links are
33
- NOT required because this project sees API + SDK internals -->
34
- <Compile Include =" $(RepoRoot)\src\Shared\Guard.cs" Link =" Includes\Guard.cs" RequiresExposedExperimentalFeatures =" true" />
35
- <Compile Include =" $(RepoRoot)\src\Shared\DiagnosticDefinitions.cs" Link =" Includes\DiagnosticDefinitions.cs" RequiresExposedExperimentalFeatures =" true" />
36
- <Compile Include =" $(RepoRoot)\src\Shared\ExceptionExtensions.cs" Link =" Includes\ExceptionExtensions.cs" RequiresExposedExperimentalFeatures =" true" />
37
- <Compile Include =" $(RepoRoot)\src\Shared\Shims\NullableAttributes.cs" Link =" Includes\Shims\NullableAttributes.cs" RequiresExposedExperimentalFeatures =" true" />
38
- <Compile Include =" $(RepoRoot)\src\Shared\SpanAttributeConstants.cs" Link =" Includes\SpanAttributeConstants.cs" RequiresExposedExperimentalFeatures =" true" />
39
31
</ItemGroup >
40
32
41
33
</Project >
Original file line number Diff line number Diff line change 20
20
21
21
<ItemGroup >
22
22
<Compile Include =" $(RepoRoot)\src\Shared\PeriodicExportingMetricReaderHelper.cs" Link =" Includes\PeriodicExportingMetricReaderHelper.cs" />
23
-
24
- <!-- Note: When '$(ExposeExperimentalFeatures)' == 'false' these links are
25
- NOT required because this project sees API internals -->
26
- <Compile Include =" $(RepoRoot)\src\Shared\Guard.cs" Link =" Includes\Guard.cs" RequiresExposedExperimentalFeatures =" true" />
27
- <Compile Include =" $(RepoRoot)\src\Shared\DiagnosticDefinitions.cs" Link =" Includes\DiagnosticDefinitions.cs" RequiresExposedExperimentalFeatures =" true" />
28
23
</ItemGroup >
29
24
30
25
</Project >
Original file line number Diff line number Diff line change 40
40
<Compile Include =" $(RepoRoot)\src\Shared\PeriodicExportingMetricReaderHelper.cs" Link =" Includes\PeriodicExportingMetricReaderHelper.cs" />
41
41
<Compile Include =" $(RepoRoot)\src\Shared\PeerServiceResolver.cs" Link =" Includes\PeerServiceResolver.cs" />
42
42
<Compile Include =" $(RepoRoot)\src\Shared\TagTransformer.cs" Link =" Includes\TagTransformer.cs" />
43
-
44
- <!-- Note: When '$(ExposeExperimentalFeatures)' == 'false' these links are
45
- NOT required because this project sees API + SDK internals -->
46
- <Compile Include =" $(RepoRoot)\src\Shared\Guard.cs" Link =" Includes\Guard.cs" RequiresExposedExperimentalFeatures =" true" />
47
- <Compile Include =" $(RepoRoot)\src\Shared\DiagnosticDefinitions.cs" Link =" Includes\DiagnosticDefinitions.cs" RequiresExposedExperimentalFeatures =" true" />
48
- <Compile Include =" $(RepoRoot)\src\Shared\ExceptionExtensions.cs" Link =" Includes\ExceptionExtensions.cs" RequiresExposedExperimentalFeatures =" true" />
49
- <Compile Include =" $(RepoRoot)\src\Shared\SemanticConventions.cs" Link =" Includes\SemanticConventions.cs" RequiresExposedExperimentalFeatures =" true" />
50
- <Compile Include =" $(RepoRoot)\src\Shared\SpanAttributeConstants.cs" Link =" Includes\SpanAttributeConstants.cs" RequiresExposedExperimentalFeatures =" true" />
51
- <Compile Include =" $(RepoRoot)\src\Shared\StatusHelper.cs" Link =" Includes\StatusHelper.cs" RequiresExposedExperimentalFeatures =" true" />
52
43
</ItemGroup >
53
44
54
45
<ItemGroup >
Original file line number Diff line number Diff line change 16
16
<ProjectReference Include =" $(RepoRoot)\src\OpenTelemetry\OpenTelemetry.csproj" />
17
17
</ItemGroup >
18
18
19
- <ItemGroup >
20
- <!-- Note: When '$(ExposeExperimentalFeatures)' == 'false' these links are
21
- NOT required because this project sees API internals -->
22
- <Compile Include =" $(RepoRoot)\src\Shared\Guard.cs" Link =" Includes\Guard.cs" RequiresExposedExperimentalFeatures =" true" />
23
- <Compile Include =" $(RepoRoot)\src\Shared\DiagnosticDefinitions.cs" Link =" Includes\DiagnosticDefinitions.cs" RequiresExposedExperimentalFeatures =" true" />
24
- <Compile Include =" $(RepoRoot)\src\Shared\ExceptionExtensions.cs" Link =" Includes\ExceptionExtensions.cs" RequiresExposedExperimentalFeatures =" true" />
25
- </ItemGroup >
26
-
27
19
</Project >
Original file line number Diff line number Diff line change 3
3
4
4
using System . Runtime . CompilerServices ;
5
5
6
- [ assembly: InternalsVisibleTo ( "OpenTelemetry.Tests " + AssemblyInfo . PublicKey ) ]
6
+ [ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.Console " + AssemblyInfo . PublicKey ) ]
7
7
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.InMemory" + AssemblyInfo . PublicKey ) ]
8
8
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.OpenTelemetryProtocol" + AssemblyInfo . PublicKey ) ]
9
9
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests" + AssemblyInfo . PublicKey ) ]
12
12
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.Prometheus.HttpListener.Tests" + AssemblyInfo . PublicKey ) ]
13
13
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Extensions.Hosting" + AssemblyInfo . PublicKey ) ]
14
14
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Extensions.Hosting.Tests" + AssemblyInfo . PublicKey ) ]
15
- [ assembly: InternalsVisibleTo ( "Benchmarks" + AssemblyInfo . PublicKey ) ]
16
-
17
- #if ! EXPOSE_EXPERIMENTAL_FEATURES
18
- [ assembly: InternalsVisibleTo ( "OpenTelemetry.Exporter.Console" + AssemblyInfo . PublicKey ) ]
15
+ [ assembly: InternalsVisibleTo ( "OpenTelemetry.Tests" + AssemblyInfo . PublicKey ) ]
19
16
[ assembly: InternalsVisibleTo ( "OpenTelemetry.Tests.Stress.Metrics" + AssemblyInfo . PublicKey ) ]
20
- #endif
17
+ [ assembly : InternalsVisibleTo ( "Benchmarks" + AssemblyInfo . PublicKey ) ]
21
18
22
19
#if SIGNED
23
20
file static class AssemblyInfo
You can’t perform that action at this time.
0 commit comments