Skip to content

Commit

Permalink
fix activity name
Browse files Browse the repository at this point in the history
  • Loading branch information
nenoNaninu committed Dec 8, 2023
1 parent d980a27 commit b183ae5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ internal static class HubActivitySource

internal static Activity? StartInvocationActivity(string hubName, string methodName)
{
var activity = ActivitySource.CreateActivity($"{hubName}.{methodName}", ActivityKind.Internal);
//https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/#span-name
var activity = ActivitySource.CreateActivity($"{hubName}/{methodName}", ActivityKind.Internal);

activity?.SetTag("signalr.hub", hubName);
activity?.SetTag("signalr.method", methodName);
Expand Down

0 comments on commit b183ae5

Please sign in to comment.