File tree Expand file tree Collapse file tree
src/OpenTelemetry.Instrumentation.Wcf Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55* Updated OTel SDK package version to 1.3.0
66 ([ #569 ] ( https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/569 ) )
7+ * Changed activity source name from ` OpenTelemetry.WCF `
8+ to ` OpenTelemetry.Instrumentation.Wcf `
9+ ([ #570 ] ( https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/570 ) )
710
811## 1.0.0-rc.6
912
Original file line number Diff line number Diff line change 1717using System ;
1818using System . Collections . Generic ;
1919using System . Diagnostics ;
20+ using System . Reflection ;
2021using System . ServiceModel . Channels ;
2122
2223namespace OpenTelemetry . Instrumentation . Wcf ;
@@ -26,11 +27,12 @@ namespace OpenTelemetry.Instrumentation.Wcf;
2627/// </summary>
2728internal static class WcfInstrumentationActivitySource
2829{
29- public const string ActivitySourceName = "OpenTelemetry.WCF" ;
30- public const string IncomingRequestActivityName = ActivitySourceName + ".IncomingRequest" ;
31- public const string OutgoingRequestActivityName = ActivitySourceName + ".OutgoingRequest" ;
30+ internal static readonly AssemblyName AssemblyName = typeof ( WcfInstrumentationActivitySource ) . Assembly . GetName ( ) ;
31+ internal static readonly string ActivitySourceName = AssemblyName . Name ;
32+ internal static readonly string IncomingRequestActivityName = ActivitySourceName + ".IncomingRequest" ;
33+ internal static readonly string OutgoingRequestActivityName = ActivitySourceName + ".OutgoingRequest" ;
3234
33- private static readonly Version Version = typeof ( WcfInstrumentationActivitySource ) . Assembly . GetName ( ) . Version ;
35+ private static readonly Version Version = AssemblyName . Version ;
3436
3537 public static ActivitySource ActivitySource { get ; } = new ActivitySource ( ActivitySourceName , Version . ToString ( ) ) ;
3638
You can’t perform that action at this time.
0 commit comments