Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,90 @@

## Unreleased version

### BREAKING CHANGES

* Use 1.12.0-beta.2 of OpenTelemetry.Instrumentation.AspNet ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Renamed `MeterProviderBuilderExtensions` and
`TracerProviderBuilderExtensions` to
`AspNetInstrumentationMeterProviderBuilderExtensions`
and `AspNetInstrumentationTracerProviderBuilderExtensions` respectively.
([#2910](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2910))
* Made metrics generation independent from traces.
Tracing must no longer be enabled to calculate metrics. A compatible version
of `OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule` is required.
([#2970](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2970))
* Metrics related option renamed:
* delegate `AspNetMetricsInstrumentationOptions.EnrichFunc` to
`AspNetMetricsInstrumentationOptions.EnrichWithHttpContextAction`,
* property `AspNetMetricsInstrumentationOptions.Enrich` to
`AspNetMetricsInstrumentationOptions.EnrichWithHttpContext`.
([#3070](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3070))
* Change in public API contract.
All usages of `HttpRequest`, `HttpResponse` and `HttpContext` replaced by
`HttpRequestBase`, `HttpResponseBase` and `HttpContextBase` respectively.
([#3110](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3110))
* Use 1.12.0-beta.3 of OpenTelemetry.Instrumentation.SqlClient ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* The `SetDbStatementForText` property has been removed.
Behaviors related to this option are now always enabled.
([#3072](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3072))
* The `Enrich`, `Filter` and `RecordException` properties
have been removed for .NET Framework where they were non-functional.
([#3079](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3079))
* The `Enrich` property has been renamed to
`EnrichWithSqlCommand` and no longer passes an event name to the delegate.
([#3080](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3080))

### New features

* Use 1.13.0 of OpenTelemetry ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Added a verification to ensure that a `MetricReader` can only be registered
to a single `MeterProvider`, as required by the OpenTelemetry specification.
([#6458](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6458))
* Added `FormatMessage` configuration option to self-diagnostics feature. When
set to `true` (default is false), log messages will be formatted by replacing
placeholders with actual parameter values for improved readability.
* Use 1.13.0 of OpenTelemetry.Exporter.OpenTelemetryProtocol ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* If `EventName` is specified either through `ILogger` or the experimental
log bridge API, it is exported as `EventName` by default instead of
`logrecord.event.name` which was previously behind the
`OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES` feature flag.
Note that exporting `logrecord.event.id` is still behind that same feature
flag. ([#6306](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6306))
* Use 1.12.1 of OpenTelemetry.Instrumentation.AWS ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Use 1.12.1 of OpenTelemetry.Instrumentation.AWSLambda ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Add `faas.instance` and `faas.max_memory` resource/span attributes.
([#2928](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2928))
* Use 1.13.0 of OpenTelemetry.Extensions.Hosting ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Use 1.12.0-beta.3 of OpenTelemetry.Instrumentation.SqlClient ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Add `db.query.parameter.<key>` attribute(s) to query spans if opted into using
the `OTEL_DOTNET_EXPERIMENTAL_SQLCLIENT_ENABLE_TRACE_DB_QUERY_PARAMETERS`
environment variable. Not supported on .NET Framework.
([#3015](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3015),
[#3081](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3081))

### Bug Fixes

* Use 1.13.0 of OpenTelemetry ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Fixed parsing of `OTEL_TRACES_SAMPLER_ARG` decimal values to always use `.`
as the delimiter when using the `traceidratio` sampler, preventing
locale-specific parsing issues.
([#6444](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6444))
* Use 1.13.0 of OpenTelemetry.Exporter.OpenTelemetryProtocol ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Fixed an issue in .NET Framework where OTLP export of traces, logs, and
metrics using `OtlpExportProtocol.Grpc` did not correctly set the initial
write position, resulting in gRPC protocol errors.
([#6280](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6280))
* gRPC calls to export traces, logs, and metrics using `OtlpExportProtocol.Grpc`
now set the `TE=trailers` HTTP request header to improve interoperability.
([#6449](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6449))
* Improved performance exporting `byte[]` attributes as native binary format
instead of arrays.
([#6534](https://github.com/open-telemetry/opentelemetry-dotnet/pull/6534))
* Use 1.12.0-beta.3 of OpenTelemetry.Instrumentation.SqlClient ([#273](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/273))
* Fix activities not being stopped on .NET Framework when using a global activity
listener.
([#3041](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3041))

## 1.3.0

### BREAKING CHANGES
Expand Down
2 changes: 1 addition & 1 deletion examples/net8.0/aspnetcore/aspnetcore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.20" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.22.1" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.13.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="OpenTelemetry" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.12.0" />
<PackageReference Include="OpenTelemetry" Version="1.13.0" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.13.0" />
</ItemGroup>

<ItemGroup Label="Stable Instrumentation Packages">
Expand All @@ -25,7 +25,7 @@
<ItemGroup Label="Non-stable instrumentation packages">
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Process" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.12.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.12.0-beta.3" />
<PackageReference Include="OpenTelemetry.Resources.Container" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.Host" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.OperatingSystem" Version="1.12.0-beta.1" />
Expand Down
8 changes: 4 additions & 4 deletions src/Grafana.OpenTelemetry/Grafana.OpenTelemetry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
</ItemGroup>

<ItemGroup Label="Stable instrumentation packages with dependencies">
<PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.12.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.12.1" />
</ItemGroup>

<ItemGroup Label="Non-stable instrumentation packages with dependencies, only .NET" Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' != '.NETFramework' ">
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" /> <!-- Needed for ASP.NET Core -->
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.13.0" /> <!-- Needed for ASP.NET Core -->
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.12.0" />
</ItemGroup>

Expand All @@ -46,7 +46,7 @@
</ItemGroup>

<ItemGroup Label="Non-stable instrumentation packages with dependencies, only .NET Framework" Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' == '.NETFramework' ">
<PackageReference Include="OpenTelemetry.Instrumentation.AspNet" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNet" Version="1.12.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.Owin" Version="1.12.0-beta.1" />
</ItemGroup>

Expand Down
Loading