1 write to OperationName
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
465OperationName = operationName ?? string.Empty;
53 references to OperationName
Aspire.Elastic.Clients.Elasticsearch.Tests (1)
AspireElasticClientExtensionsTest.cs (1)
164Assert.Equal("ping", activity.OperationName);
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (1)
82SqlClientInstrumentationEventSource.Log.CommandIsFilteredOut(activity.OperationName);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (1)
82SqlClientInstrumentationEventSource.Log.CommandIsFilteredOut(activity.OperationName);
Aspire.NATS.Net.Tests (1)
AspireNatsClientExtensionsTests.cs (1)
230Assert.Equal("test publish", activity.OperationName);
Aspire.StackExchange.Redis.DistributedCaching.Tests (3)
DistributedCacheConformanceTests.cs (3)
72Assert.Equal("CLIENT", activity.OperationName); 77Assert.Equal("CLIENT", activity.OperationName); 82Assert.Equal("HMGET", activity.OperationName);
Aspire.StackExchange.Redis.OutputCaching.Tests (3)
OutputCacheConformanceTests.cs (3)
72Assert.Equal("CLIENT", activity.OperationName); 77Assert.Equal("CLIENT", activity.OperationName); 82Assert.Equal("GET", activity.OperationName);
Aspire.StackExchange.Redis.Tests (1)
AspireRedisExtensionsTests.cs (1)
294Assert.Equal("GET", activity.OperationName);
Microsoft.AspNetCore.Hosting.Tests (14)
HostingApplicationDiagnosticsTests.cs (14)
213Assert.Equal(HostingApplicationDiagnostics.ActivityName, measurementActivity.OperationName); 616Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 641Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 665Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 688Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 716Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 744Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 774Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 804Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 835Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 865Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 902Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 932Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", Activity.Current.OperationName); 1000Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", activity.OperationName);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (16)
HubConnectionTests.Tracing.cs (16)
143Assert.Equal(SignalRServerActivitySource.OnConnected, a.OperationName); 145Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 153Assert.Equal(SignalRServerActivitySource.InvocationIn, a.OperationName); 165Assert.Equal(SignalRServerActivitySource.InvocationIn, a.OperationName); 177Assert.Equal(SignalRServerActivitySource.OnDisconnected, a.OperationName); 179Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 187Assert.Equal(HubConnection.ActivityName, clientActivity1.OperationName); 204Assert.Equal(HubConnection.ActivityName, clientActivity2.OperationName); 315Assert.Equal(SignalRServerActivitySource.OnConnected, a.OperationName); 318Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 325Assert.Equal(SignalRServerActivitySource.InvocationIn, a.OperationName); 338Assert.Equal(SignalRServerActivitySource.OnDisconnected, a.OperationName); 341Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 347Assert.Equal(HubConnection.ActivityName, clientActivity.OperationName); 646Assert.Equal(HubConnection.ActivityName, clientActivity.OperationName); 742Assert.Equal(HubConnection.ActivityName, clientActivity.OperationName);
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
79Assert.Equal("inner", userCodeActivity.OperationName); 496Assert.Equal(activityName ?? SignalRServerActivitySource.InvocationIn, activity.OperationName);
System.Diagnostics.DiagnosticSource (10)
System\Diagnostics\Activity.cs (4)
186get => _displayName ?? OperationName; 453/// <param name="operationName">Operation's name <see cref="OperationName"/></param> 1133/// <param name="propertyName"> The name to associate the value with.<see cref="OperationName"/></param> 1378suffix = OperationName.Replace('.', '-') + "-" + suffix;
System\Diagnostics\DiagnosticSourceActivity.cs (2)
32Write(activity.OperationName + ".Start", args); 59Write(activity.OperationName + ".Stop", args);
System\Diagnostics\DsesActivitySourceListener.cs (4)
174if (TryFindSpecForActivity(activity.Source.Name, activity.OperationName, out var spec) 177_eventSource.ActivityStart(activity.Source.Name, activity.OperationName, spec.Morph(activity)); 185if (TryFindSpecForActivity(activity.Source.Name, activity.OperationName, out var spec) 188_eventSource.ActivityStop(activity.Source.Name, activity.OperationName, spec.Morph(activity));