Skip to content

Commit

Permalink
Add MT version to ActivitySource
Browse files Browse the repository at this point in the history
  • Loading branch information
danspark authored and phatboyg committed Sep 1, 2023
1 parent 3cc2173 commit 50d3e34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace MassTransit.Logging
using System.Collections.Generic;
using System.Diagnostics;
using Courier.Contracts;
using Metadata;
using Middleware;
using Transports;

Expand Down Expand Up @@ -266,7 +267,7 @@ static ActivityContext GetParentActivityContext(Headers headers)

static class Cached
{
internal static readonly Lazy<ActivitySource> Source = new Lazy<ActivitySource>(() => new ActivitySource(DiagnosticHeaders.DefaultListenerName));
internal static readonly Lazy<ActivitySource> Source = new Lazy<ActivitySource>(() => new ActivitySource(DiagnosticHeaders.DefaultListenerName, HostMetadataCache.Host.MassTransitVersion));
internal static readonly ConcurrentDictionary<string, string> OperationNames = new ConcurrentDictionary<string, string>(StringComparer.Ordinal);
}
}
Expand Down

0 comments on commit 50d3e34

Please sign in to comment.