Skip to content

Commit be32b40

Browse files
authored
Upgrade core packages to 1.7.0 (#70)
* upgrade to 1.7.0 * update to stable ASP.NET Core and HTTP instrumentations * remove OTEL_SEMCONV_STABILITY_OPT_IN default * enable OTEL_DOTNET_EXPERIMENTAL_ASPNETCORE_ENABLE_GRPC_INSTRUMENTATION by default
1 parent a15fcfb commit be32b40

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 0.7.0-beta.1
4+
5+
### BREAKING CHANGES
6+
7+
* Use 1.7.0 of ASP.NET Core instrumentation.
8+
* Removes support for `OTEL_SEMCONV_STABILITY_OPT_IN`.
9+
[Instrumentation will only emit stable conventions](https://github.com/open-telemetry/semantic-conventions/tree/v1.23.0/docs/http).
10+
* Defaults `OTEL_DOTNET_EXPERIMENTAL_ASPNETCORE_ENABLE_GRPC_INSTRUMENTATION`
11+
to `true`. [gRPC instrumentation is experimental](https://github.com/open-telemetry/opentelemetry-dotnet/releases/tag/Instrumentation.AspNetCore-1.6.0),
12+
while HTTP is stable.
13+
* Use 1.7.0 of HTTP instrumentation.
14+
* [`http.user_agent` Activity tag removed from HTTP instrumentation](https://github.com/open-telemetry/opentelemetry-dotnet/releases/tag/1.6.0-rc.1).
15+
* Removes support for `OTEL_SEMCONV_STABILITY_OPT_IN`.
16+
[Instrumentation will only emit stable conventions](https://github.com/open-telemetry/semantic-conventions/tree/v1.23.0/docs/http).
17+
18+
### New features
19+
20+
* [Use 1.7.0 of upstream SDK](https://github.com/open-telemetry/opentelemetry-dotnet/releases/tag/Instrumentation.AspNetCore-1.7.0).
21+
322
## 0.6.0-beta.3
423

524
### Bug fixes

examples/net6.0/aspnetcore/aspnetcore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" />
1414
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.4" />
15-
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.6.0" />
15+
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0" />
1616
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
1717
</ItemGroup>
1818

src/Grafana.OpenTelemetry.Base/Grafana.OpenTelemetry.Base.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>
30-
<PackageReference Include="OpenTelemetry" Version="1.6.0" />
31-
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.6.0" />
30+
<PackageReference Include="OpenTelemetry" Version="1.7.0" />
31+
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0" />
3232
</ItemGroup>
3333

3434
<!-- Stable instrumentation packages -->
@@ -40,7 +40,7 @@
4040
<!-- Non-stable instrumentation packages with no dependencies -->
4141
<ItemGroup>
4242
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.6.0-beta.3" />
43-
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.6.0-beta.3" />
43+
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.7.0" />
4444
<PackageReference Include="OpenTelemetry.Instrumentation.Process" Version="0.5.0-beta.3" />
4545
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.6.0-beta.3" />
4646
</ItemGroup>

src/Grafana.OpenTelemetry.Base/TracerProviderBuilderExtensions.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public static TracerProviderBuilder UseGrafana(this TracerProviderBuilder builde
3131

3232
GrafanaOpenTelemetryEventSource.Log.InitializeDistribution(settings);
3333

34-
// Default to using stable HTTP semantic conventions
35-
if (Environment.GetEnvironmentVariable("OTEL_SEMCONV_STABILITY_OPT_IN") == null)
34+
// Default to using experimental gRPC instrumentation
35+
if (Environment.GetEnvironmentVariable("OTEL_DOTNET_EXPERIMENTAL_ASPNETCORE_ENABLE_GRPC_INSTRUMENTATION") == null)
3636
{
37-
Environment.SetEnvironmentVariable("OTEL_SEMCONV_STABILITY_OPT_IN", "http");
37+
Environment.SetEnvironmentVariable("OTEL_DOTNET_EXPERIMENTAL_ASPNETCORE_ENABLE_GRPC_INSTRUMENTATION", "true");
3838
}
3939

4040
return builder

src/Grafana.OpenTelemetry/Grafana.OpenTelemetry.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<!-- Stable instrumentation packages with dependencies, only .NET -->
4545
<ItemGroup Condition=" '$(TargetFramework)' != 'net462' ">
46-
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.6.0" /> <!-- needed for AspNetCore -->
46+
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0" /> <!-- needed for AspNetCore -->
4747
</ItemGroup>
4848

4949
<!-- Non-stable instrumentation packages with dependencies, both .NET framework and .NET -->
@@ -62,7 +62,7 @@
6262

6363
<!-- Non-stable instrumentation packages with dependencies, only .NET -->
6464
<ItemGroup Condition=" '$(TargetFramework)' != 'net462' ">
65-
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.6.0-beta.3" />
65+
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.7.0" />
6666
</ItemGroup>
6767

6868
<!-- Non-stable instrumentation packages with dependencies, only .NET framework -->

0 commit comments

Comments
 (0)