Skip to content

Commit

Permalink
Otel Updates (#2144)
Browse files Browse the repository at this point in the history
* Bump OTEL packages

* Moved spawn trace activity metadata from name to tags

* Bump grpc / protobuf versions
  • Loading branch information
mhelleborg authored Nov 26, 2024
1 parent b01daea commit 2a2d747
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<PackageVersion Include="DotNet.Testcontainers" Version="1.6.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageVersion Include="Google.Protobuf" Version="3.28.1" />
<PackageVersion Include="Grpc.AspNetCore" Version="2.65.0" />
<PackageVersion Include="Grpc.Core.Api" Version="2.65.0" />
<PackageVersion Include="Grpc.HealthCheck" Version="2.65.0" />
<PackageVersion Include="Grpc.Net.Common" Version="2.65.0" />
<PackageVersion Include="Grpc.Tools" Version="2.66.0" />
<PackageVersion Include="Google.Protobuf" Version="3.28.3" />
<PackageVersion Include="Grpc.AspNetCore" Version="2.67.0" />
<PackageVersion Include="Grpc.Core.Api" Version="2.67.0" />
<PackageVersion Include="Grpc.HealthCheck" Version="2.67.0" />
<PackageVersion Include="Grpc.Net.Common" Version="2.67.0" />
<PackageVersion Include="Grpc.Tools" Version="2.67.0" />
<PackageVersion Include="Handlebars.Net" Version="2.0.9" />
<PackageVersion Include="IsExternalInit.System.Runtime.CompilerServices" Version="1.0.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2024.2.0" />
Expand Down Expand Up @@ -56,12 +56,12 @@
<PackageVersion Include="MudBlazor" Version="6.21.0" />
<PackageVersion Include="Neovolve.Logging.Xunit" Version="6.1.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="OpenTelemetry" Version="1.9.0" />
<PackageVersion Include="OpenTelemetry.Api" Version="1.9.0" />
<PackageVersion Include="OpenTelemetry" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Api" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Exporter.Jaeger" Version="1.5.1" />
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.9.0" />
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Exporter.Prometheus" Version="1.3.0-rc.2" />
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.9.0" />
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.9.0" />
<PackageVersion Include="prometheus-net" Version="8.2.1" />
<PackageVersion Include="Proto.Cluster.CodeGen" Version="1.7.0" />
Expand Down
3 changes: 2 additions & 1 deletion src/Proto.Actor/Context/ActorContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ private ActorContext(ActorSystem system, Props props, PID? parent, PID self, IMa
Self = self;

Actor = IncarnateActor();
using var publishActivity = ActorSystem.ActivitySource.StartActivity($"Spawn {self} {Actor.GetType().Name}");
using var publishActivity = ActorSystem.ActivitySource.StartActivity($"Spawn {Actor.GetType().Name}");
publishActivity?.AddTag(ProtoTags.ActorType, Actor.GetType().Name);
publishActivity?.AddTag(ProtoTags.ActorPID, self);
publishActivity?.AddTag(ProtoTags.ActionType, "Spawn");

if (System.Metrics.Enabled)
Expand Down

0 comments on commit 2a2d747

Please sign in to comment.