Skip to content
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
* Use 1.12.0-beta.1 of OpenTelemetry.Resources.OperatingSystem ([#145](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/145))
* Use 1.12.0-beta.1 of OpenTelemetry.Resources.Process ([#145](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/145))
* Use 1.12.0-beta.1 of OpenTelemetry.Resources.ProcessRuntime ([#145](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/145))
* Use 3.22.0 of CassandraCSharpDriver
([#202](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/202))
* Enable tracing for Cassandra instrumentation (requires the
`CassandraCSharpDriver.OpenTelemetry` NuGet package to be installed in your application)
([#202](https://github.com/grafana/grafana-opentelemetry-dotnet/pull/202))

### Bug Fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//

using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;

namespace Grafana.OpenTelemetry
{
Expand All @@ -19,5 +20,10 @@ protected override void InitializeMetrics(MeterProviderBuilder builder)
"AddCassandraInstrumentation",
new object[] { builder });
}

protected override void InitializeTracing(TracerProviderBuilder builder)
{
builder.AddSource("CassandraCSharpDriver.OpenTelemetry");
}
}
}
6 changes: 2 additions & 4 deletions src/Grafana.OpenTelemetry/Grafana.OpenTelemetry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@
</ItemGroup>

<!-- This dependency is pulled in by `OpenTelemetry.Instrumentation.Cassandra` with a minimum
version of 3.16.0. We change this to 3.17.0, as the previous versions have dependency
requirements that conflict with recent .NET package versions. -->
version of 3.16.0. We change this to 3.22.0 to add support for tracing. -->
<ItemGroup>
<!-- TODO Bump to 3.22.0? -->
<PackageReference Include="CassandraCSharpDriver" Version="[3.17.0,)" />
<PackageReference Include="CassandraCSharpDriver" Version="[3.22.0,)" />
</ItemGroup>

<ItemGroup Label="Stable instrumentation packages with dependencies">
Expand Down
Loading