diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AfterReceiveRequestIntegration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AfterReceiveRequestIntegration.cs index 70c270e60e40..58c1e131e7c6 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AfterReceiveRequestIntegration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AfterReceiveRequestIntegration.cs @@ -70,7 +70,7 @@ internal static CallTargetState OnMethodBegin(TTarget inst /// Exception instance in case the original code threw an exception. /// Calltarget state value /// A response value, in an async scenario will be T of Task of T - internal static CallTargetReturn OnMethodEnd(TTarget instance, Exception exception, in CallTargetState state) + internal static CallTargetReturn OnMethodEnd(TTarget instance, Exception? exception, in CallTargetState state) { // Add an exception and close the span only if there was an uncaught exception, // which should only happen if one of the IClientMessageInspector's has thrown an exception. @@ -80,17 +80,10 @@ internal static CallTargetReturn OnMethodEnd(TTarget instance, Exceptio state.Scope.DisposeWithException(exception); } - if (state.Scope != null) - { - // OnMethodBegin started an active span that can be accessed by IDispatchMessageInspector's and the actual WCF endpoint - // Before returning, we must reset the scope to the previous active scope, so that callers of this method do not see this scope - // Don't worry, this will be accessed and closed by the BeforeSendReplyIntegration - if (Tracer.Instance.ScopeManager is IScopeRawAccess rawAccess) - { - rawAccess.Active = state.PreviousScope; - DistributedTracer.Instance.SetSpanContext(state.PreviousDistributedSpanContext); - } - } + // OnMethodBegin started an active span that can be accessed by IDispatchMessageInspector's and the actual WCF endpoint + // Before returning, we must reset the scope to the previous active scope, so that callers of this method do not see this scope + // Don't worry, this will be accessed and closed by the BeforeSendReplyIntegration + WcfCommon.RestorePreviousScope(in state); return CallTargetReturn.GetDefault(); } diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeBegin_Integration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeBegin_Integration.cs index 0ae54692abf4..e77ae6375314 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeBegin_Integration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeBegin_Integration.cs @@ -9,7 +9,6 @@ using System; using System.ComponentModel; using Datadog.Trace.ClrProfiler.CallTarget; -using Datadog.Trace.DuckTyping; namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf { @@ -29,27 +28,27 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf [EditorBrowsable(EditorBrowsableState.Never)] public class AsyncMethodInvoker_InvokeBegin_Integration { - internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception exception, in CallTargetState state) + internal static CallTargetState OnMethodBegin(TTarget instance, object? instanceArg, object[]? inputs, ref AsyncCallback? callback, object? state) { - if (exception is not null) + var tracer = Tracer.Instance; + if (!tracer.CurrentTraceSettings.Settings.IsIntegrationEnabled(WcfCommon.IntegrationId) || !tracer.Settings.DelayWcfInstrumentationEnabled || WcfCommon.GetCurrentOperationContext is null) { - var operationContext = WcfCommon.GetCurrentOperationContext?.Invoke(); + return CallTargetState.GetDefault(); + } - if (operationContext != null && operationContext.TryDuckCast(out var operationContextProxy)) - { - var requestContext = operationContextProxy.RequestContext; + return WcfCommon.ActivateScopeFromContext(); + } - // Retrieve the scope that we saved during InvokeBegin - if (((IDuckType?)requestContext)?.Instance is object requestContextInstance - && WcfCommon.Scopes.TryGetValue(requestContextInstance, out var scope)) - { - // Add the exception but do not dispose the span. - // BeforeSendReplyIntegration is responsible for closing the span. - scope.Span?.SetException(exception); - } - } + internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception? exception, in CallTargetState state) + { + if (state.Scope is not null && exception is not null) + { + // Add the exception but do not dispose the scope. + // BeforeSendReplyIntegration is responsible for closing the span. + state.Scope.Span.SetException(exception); } + WcfCommon.RestorePreviousScope(in state); return new CallTargetReturn(returnValue); } } diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeEnd_Integration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeEnd_Integration.cs index 283efc5aa108..10cde67d480c 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeEnd_Integration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/AsyncMethodInvoker_InvokeEnd_Integration.cs @@ -9,7 +9,6 @@ using System; using System.ComponentModel; using Datadog.Trace.ClrProfiler.CallTarget; -using Datadog.Trace.DuckTyping; namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf { @@ -29,6 +28,17 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf [EditorBrowsable(EditorBrowsableState.Never)] public class AsyncMethodInvoker_InvokeEnd_Integration { + internal static CallTargetState OnMethodBegin(TTarget instance, object? instanceArg, object[]? outputs, IAsyncResult? result) + { + var tracer = Tracer.Instance; + if (!tracer.CurrentTraceSettings.Settings.IsIntegrationEnabled(WcfCommon.IntegrationId) || !tracer.Settings.DelayWcfInstrumentationEnabled || WcfCommon.GetCurrentOperationContext is null) + { + return CallTargetState.GetDefault(); + } + + return WcfCommon.ActivateScopeFromContext(); + } + /// /// OnMethodEnd callback /// @@ -39,27 +49,16 @@ public class AsyncMethodInvoker_InvokeEnd_Integration /// Exception instance in case the original code threw an exception. /// Calltarget state value /// A response value, in an async scenario will be T of Task of T - internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception exception, in CallTargetState state) + internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception? exception, in CallTargetState state) { - if (exception is not null) + if (state.Scope is not null && exception is not null) { - var operationContext = WcfCommon.GetCurrentOperationContext?.Invoke(); - - if (operationContext != null && operationContext.TryDuckCast(out var operationContextProxy)) - { - var requestContext = operationContextProxy.RequestContext; - - // Retrieve the scope that we saved during InvokeBegin - if (((IDuckType?)requestContext)?.Instance is object requestContextInstance - && WcfCommon.Scopes.TryGetValue(requestContextInstance, out var scope)) - { - // Add the exception but do not dispose the span. - // BeforeSendReplyIntegration is responsible for closing the span. - scope.Span?.SetException(exception); - } - } + // Add the exception but do not dispose the scope. + // BeforeSendReplyIntegration is responsible for closing the span. + state.Scope.Span.SetException(exception); } + WcfCommon.RestorePreviousScope(in state); return new CallTargetReturn(returnValue); } } diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/BeforeSendReplyIntegration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/BeforeSendReplyIntegration.cs index ceb9c421eca3..7ff770be73d1 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/BeforeSendReplyIntegration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/BeforeSendReplyIntegration.cs @@ -48,7 +48,7 @@ internal static CallTargetState OnMethodBegin(TTarget inst } var rpcProxy = rpc.DuckCast(); - if (((IDuckType?)rpcProxy.OperationContext.RequestContext)?.Instance is object requestContextInstance + if (rpcProxy.OperationContext.RequestContext?.Instance is { } requestContextInstance && WcfCommon.Scopes.TryGetValue(requestContextInstance, out var scope)) { return new CallTargetState(scope); @@ -65,7 +65,7 @@ internal static CallTargetState OnMethodBegin(TTarget inst /// Exception instance in case the original code threw an exception. /// Calltarget state value /// A response value, in an async scenario will be T of Task of T - internal static CallTargetReturn OnMethodEnd(TTarget instance, Exception exception, in CallTargetState state) + internal static CallTargetReturn OnMethodEnd(TTarget instance, Exception? exception, in CallTargetState state) { state.Scope.DisposeWithException(exception); return CallTargetReturn.GetDefault(); diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/ChannelHandlerIntegration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/ChannelHandlerIntegration.cs index bcd28b3ed011..b44d16722c92 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/ChannelHandlerIntegration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/ChannelHandlerIntegration.cs @@ -63,7 +63,7 @@ internal static CallTargetState OnMethodBeginException instance in case the original code threw an exception. /// Calltarget state value /// A response value, in an async scenario will be T of Task of T - internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception exception, in CallTargetState state) + internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception? exception, in CallTargetState state) { state.Scope.DisposeWithException(exception); return new CallTargetReturn(returnValue); diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/IRequestContext.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/IRequestContext.cs index 073690f294a3..aa4e6d6b47e0 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/IRequestContext.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/IRequestContext.cs @@ -5,12 +5,14 @@ #nullable enable +using Datadog.Trace.DuckTyping; + namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf { /// /// System.ServiceModel.Channels.RequestContext interface for duck-typing /// - internal interface IRequestContext + internal interface IRequestContext : IDuckType { /// /// Gets the request message diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/SyncMethodInvokerIntegration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/SyncMethodInvokerIntegration.cs index 2f1694816b57..cbe4710f248e 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/SyncMethodInvokerIntegration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/SyncMethodInvokerIntegration.cs @@ -9,7 +9,6 @@ using System; using System.ComponentModel; using Datadog.Trace.ClrProfiler.CallTarget; -using Datadog.Trace.DuckTyping; namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf { @@ -40,12 +39,13 @@ public class SyncMethodInvokerIntegration /// Calltarget state value internal static CallTargetState OnMethodBegin(TTarget instance, object instanceArg, object[] inputs, ref object[] outputs) { - if (!Tracer.Instance.CurrentTraceSettings.Settings.IsIntegrationEnabled(WcfCommon.IntegrationId) || !Tracer.Instance.Settings.DelayWcfInstrumentationEnabled || WcfCommon.GetCurrentOperationContext is null) + var tracer = Tracer.Instance; + if (!tracer.CurrentTraceSettings.Settings.IsIntegrationEnabled(WcfCommon.IntegrationId) || !tracer.Settings.DelayWcfInstrumentationEnabled || WcfCommon.GetCurrentOperationContext is null) { return CallTargetState.GetDefault(); } - return new CallTargetState(Tracer.Instance.ActiveScope as Scope); + return WcfCommon.ActivateScopeFromContext(); } /// @@ -58,15 +58,16 @@ internal static CallTargetState OnMethodBegin(TTarget instance, object /// Exception instance in case the original code threw an exception. /// Calltarget state value /// A response value, in an async scenario will be T of Task of T - internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception exception, in CallTargetState state) + internal static CallTargetReturn OnMethodEnd(TTarget instance, TReturn returnValue, Exception? exception, in CallTargetState state) { if (state.Scope is not null && exception is not null) { // Add the exception but do not dispose the scope. // BeforeSendReplyIntegration is responsible for closing the span. - state.Scope.Span?.SetException(exception); + state.Scope.Span.SetException(exception); } + WcfCommon.RestorePreviousScope(in state); return new CallTargetReturn(returnValue); } } diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/TaskMethodInvokerIntegration.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/TaskMethodInvokerIntegration.cs index 14c34114c56f..b786da49c6ba 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/TaskMethodInvokerIntegration.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/TaskMethodInvokerIntegration.cs @@ -9,8 +9,6 @@ using System; using System.ComponentModel; using Datadog.Trace.ClrProfiler.CallTarget; -using Datadog.Trace.Configuration; -using Datadog.Trace.DuckTyping; namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Wcf { @@ -40,12 +38,13 @@ public class TaskMethodInvokerIntegration /// Calltarget state value internal static CallTargetState OnMethodBegin(TTarget instance, object instanceArg, object[] inputs) { - if (!Tracer.Instance.CurrentTraceSettings.Settings.IsIntegrationEnabled(WcfCommon.IntegrationId) || !Tracer.Instance.Settings.DelayWcfInstrumentationEnabled || WcfCommon.GetCurrentOperationContext is null) + var tracer = Tracer.Instance; + if (!tracer.CurrentTraceSettings.Settings.IsIntegrationEnabled(WcfCommon.IntegrationId) || !tracer.Settings.DelayWcfInstrumentationEnabled || WcfCommon.GetCurrentOperationContext is null) { return CallTargetState.GetDefault(); } - return new CallTargetState(Tracer.Instance.ActiveScope as Scope); + return WcfCommon.ActivateScopeFromContext(); } /// @@ -58,15 +57,16 @@ internal static CallTargetState OnMethodBegin(TTarget instance, object /// Exception instance in case the original code threw an exception. /// Calltarget state value /// A response value, in an async scenario will be T of Task of T - internal static TResponse OnAsyncMethodEnd(TTarget instance, TResponse returnValue, Exception exception, in CallTargetState state) + internal static TResponse OnAsyncMethodEnd(TTarget instance, TResponse returnValue, Exception? exception, in CallTargetState state) { if (state.Scope is not null && exception is not null) { // Add the exception but do not dispose the scope. // BeforeSendReplyIntegration is responsible for closing the span. - state.Scope.Span?.SetException(exception); + state.Scope.Span.SetException(exception); } + WcfCommon.RestorePreviousScope(in state); return returnValue; } } diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/WcfCommon.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/WcfCommon.cs index 4dc8ce148d2a..e860f2b1a2fe 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/WcfCommon.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/WcfCommon.cs @@ -12,6 +12,7 @@ using System.Net; using System.Reflection; using System.Runtime.CompilerServices; +using Datadog.Trace.ClrProfiler.CallTarget; using Datadog.Trace.Configuration; using Datadog.Trace.DuckTyping; using Datadog.Trace.ExtensionMethods; @@ -77,7 +78,11 @@ internal class WcfCommon httpMethod = httpRequestPropertyProxy.Method?.ToUpperInvariant(); // try to extract propagated context values from http headers - if (tracer.ActiveScope == null) + if (tracer.ActiveScope is { } activeScope) + { + Log.Warning("Skipped extracting headers due to existing scope: {ActiveScope}", activeScope.Span); + } + else { try { @@ -216,6 +221,49 @@ internal class WcfCommon return null; } + + public static CallTargetState ActivateScopeFromContext() + { + // First, capture the active scope + var tracer = Tracer.Instance; + var activeScope = tracer.InternalActiveScope; + + var operationContext = WcfCommon.GetCurrentOperationContext?.Invoke(); + if (operationContext != null && operationContext.TryDuckCast(out var operationContextProxy)) + { + var requestContext = operationContextProxy.RequestContext; + + // Retrieve the scope that we saved during InvokeBegin + if (requestContext?.Instance is { } requestContextInstance + && Scopes.TryGetValue(requestContextInstance, out var scope) + && scope is not null + && scope.Span.SpanId != activeScope?.Span.SpanId) + { + // capture the raw context for later activation + var spanContextRaw = DistributedTracer.Instance.GetSpanContextRaw() ?? activeScope?.Span.Context; + Log.Debug("Activating scope from operation context {ActivatedSpan}", scope.Span); + + tracer.ActivateSpan(scope.Span); + // Add the exception but do not dispose the span. + // BeforeSendReplyIntegration is responsible for closing the span. + return new CallTargetState(scope, activeScope, spanContextRaw); + } + } + + return CallTargetState.GetDefault(); + } + + public static void RestorePreviousScope(in CallTargetState state) + { + // Reset the scope to the previous active scope, so that callers of this method do not see this scope + // Don't worry, this will be accessed and closed by the BeforeSendReplyIntegration + if (state.Scope is not null && Tracer.Instance.ScopeManager is IScopeRawAccess rawAccess) + { + Log.Debug("Restoring previous scope from {Previous} to {Restored}", state.Scope.Span, state.PreviousScope?.Span); + rawAccess.Active = state.PreviousScope; + DistributedTracer.Instance.SetSpanContext(state.PreviousDistributedSpanContext); + } + } } } #endif diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/WcfTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/WcfTests.cs index 29932ddd47eb..c0ff107ed1ff 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/WcfTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/WcfTests.cs @@ -5,6 +5,7 @@ #if NETFRAMEWORK +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -21,25 +22,22 @@ namespace Datadog.Trace.ClrProfiler.IntegrationTests public class WcfTests : TracingIntegrationTest { private const string ServiceVersion = "1.0.0"; - - private static readonly HashSet ExcludeTags = new HashSet - { - "custom-tag", - }; + private static readonly HashSet ExcludeTags = ["custom-tag"]; public WcfTests(ITestOutputHelper output) : base("Wcf", output) { SetServiceVersion(ServiceVersion); + EnvironmentHelper.DebugModeEnabled = true; } - public static string[] Bindings => new string[] - { + public static string[] Bindings => + [ "WSHttpBinding", "BasicHttpBinding", "NetTcpBinding", - "Custom", - }; + "Custom" + ]; public static IEnumerable GetData() { @@ -98,8 +96,11 @@ public async Task SubmitsTraces(string metadataSchemaVersion, string binding, bo var expectedSpanCount = binding switch { - "Custom" => 1, - _ => 14, + "Custom" => 26, + "NetTcpBinding" => 44, + "BasicHttpBinding" => 57, + "WSHttpBinding" => 64, + _ => throw new InvalidOperationException("Unknown binding " + binding), }; using var telemetry = this.ConfigureTelemetry(); @@ -108,12 +109,6 @@ public async Task SubmitsTraces(string metadataSchemaVersion, string binding, bo using (var agent = EnvironmentHelper.GetMockAgent()) using (await RunSampleAndWaitForExit(agent, arguments: $"{binding} Port={wcfPort}")) { - // Filter out WCF spans unrelated to the actual request handling, and filter them before returning spans - // so we can wait on the exact number of spans we expect. - agent.SpanFilters.Add(s => !s.Resource.Contains("schemas.xmlsoap.org") && !s.Resource.Contains("www.w3.org")); - - // The test adds a custom span to show that propagation works with WCF headers - agent.SpanFilters.Add(s => s.Type == SpanTypes.Web || s.Type == SpanTypes.Custom); var spans = await agent.WaitForSpansAsync(expectedSpanCount); ValidateIntegrationSpans(spans.Where(s => s.Type == SpanTypes.Web), metadataSchemaVersion, expectedServiceName: "Samples.Wcf", isExternalSpan: false); @@ -143,7 +138,7 @@ public async Task WebHttp(string metadataSchemaVersion, bool enableNewWcfInstrum Output.WriteLine("Starting WcfTests.SubmitsTraces. Starting the Samples.Wcf requires ADMIN privileges"); - var expectedSpanCount = 5; + var expectedSpanCount = 16; using var telemetry = this.ConfigureTelemetry(); int wcfPort = 8585; @@ -151,11 +146,6 @@ public async Task WebHttp(string metadataSchemaVersion, bool enableNewWcfInstrum using var agent = EnvironmentHelper.GetMockAgent(); using (await RunSampleAndWaitForExit(agent, arguments: $"WebHttpBinding Port={wcfPort}")) { - // Filter out WCF spans unrelated to the actual request handling, and filter them before returning spans - // so we can wait on the exact number of spans we expect. - agent.SpanFilters.Add(s => !s.Resource.Contains("schemas.xmlsoap.org") && !s.Resource.Contains("www.w3.org")); - // The test adds a custom span to show that propagation works with WCF headers - agent.SpanFilters.Add(s => s.Type == SpanTypes.Web || s.Type == SpanTypes.Custom); var spans = await agent.WaitForSpansAsync(expectedSpanCount); ValidateIntegrationSpans(spans.Where(s => s.Type == SpanTypes.Web), metadataSchemaVersion, expectedServiceName: "Samples.Wcf", isExternalSpan: false); diff --git a/tracer/test/snapshots/WcfTests.WebHttp_v0.disabled.verified.txt b/tracer/test/snapshots/WcfTests.WebHttp_v0.disabled.verified.txt index c789eb9a30ca..256ad4a53788 100644 --- a/tracer/test/snapshots/WcfTests.WebHttp_v0.disabled.verified.txt +++ b/tracer/test/snapshots/WcfTests.WebHttp_v0.disabled.verified.txt @@ -2,6 +2,54 @@ { TraceId: Id_1, SpanId: Id_2, + Name: internal, + Resource: ServerSyncAddJson, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_1, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: GET localhost:00000/ServerSyncAddJson/?/n2=2, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_4, Name: wcf.request, Resource: /ServerSyncAddJson/?/n2=2, Service: Samples.Wcf, @@ -15,7 +63,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -28,12 +76,73 @@ }, { TraceId: Id_1, - SpanId: Id_4, + SpanId: Id_5, + Name: ServerSyncAddJson, + Resource: ServerSyncAddJson, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: internal, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_3, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, + Name: http.request, + Resource: POST localhost:00000/ServerSyncAddWrapped, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddWrapped, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: wcf.request, Resource: /ServerSyncAddWrapped, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -42,7 +151,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddWrapped, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -54,13 +163,74 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_6, + SpanId: Id_10, + Name: ServerSyncAddWrapped, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: internal, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_4, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, + Name: http.request, + Resource: GET localhost:00000/ServerSyncAddXml/?/n2=2, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_12, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_14, Name: wcf.request, Resource: /ServerSyncAddXml/?/n2=2, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_13, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -69,7 +239,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -81,13 +251,74 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_11, + SpanId: Id_15, + Name: ServerSyncAddXml, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + ParentId: Id_14, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: internal, + Resource: ServerTaskAddPost, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_5, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, + Name: http.request, + Resource: POST localhost:00000/ServerTaskAddPost, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_17, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerTaskAddPost, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_19, Name: wcf.request, Resource: /ServerTaskAddPost, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_18, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -96,7 +327,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerTaskAddPost, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -108,27 +339,16 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: internal, - Resource: WebClient, + TraceId: Id_16, + SpanId: Id_20, + Name: ServerTaskAddPost, + Resource: ServerTaskAddPost, Service: Samples.Wcf, - Type: custom, + ParentId: Id_19, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.WebHttp_v0.webHttp.verified.txt b/tracer/test/snapshots/WcfTests.WebHttp_v0.webHttp.verified.txt index ea5642f7d705..a00de0629159 100644 --- a/tracer/test/snapshots/WcfTests.WebHttp_v0.webHttp.verified.txt +++ b/tracer/test/snapshots/WcfTests.WebHttp_v0.webHttp.verified.txt @@ -2,6 +2,54 @@ { TraceId: Id_1, SpanId: Id_2, + Name: internal, + Resource: ServerSyncAddJson, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_1, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: GET localhost:00000/ServerSyncAddJson/?/n2=2, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_4, Name: wcf.request, Resource: GET /ServerSyncAddJson/{n1}/n2={n2}, Service: Samples.Wcf, @@ -15,7 +63,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -28,22 +76,32 @@ }, { TraceId: Id_1, - SpanId: Id_4, - Name: wcf.request, - Resource: GET /ServerSyncAddXml/{n1}/n2={n2}, + SpanId: Id_5, + Name: ServerSyncAddJson, + Resource: ServerSyncAddJson, Service: Samples.Wcf, - Type: web, - ParentId: Id_5, + ParentId: Id_4, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, language: dotnet, - runtime-id: Guid_1, - span.kind: server, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: internal, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_3, + runtime-id: Guid_2, + span.kind: internal, version: 1.0.0 }, Metrics: { @@ -54,13 +112,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_6, + SpanId: Id_8, + Name: http.request, + Resource: POST localhost:00000/ServerSyncAddWrapped, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddWrapped, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: wcf.request, Resource: POST /ServerSyncAddWrapped, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -69,7 +151,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddWrapped, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -81,22 +163,83 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_6, + SpanId: Id_10, + Name: ServerSyncAddWrapped, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: internal, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_4, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, + Name: http.request, + Resource: GET localhost:00000/ServerSyncAddXml/?/n2=2, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_12, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_14, Name: wcf.request, - Resource: POST /ServerTaskAddPost, + Resource: GET /ServerSyncAddXml/{n1}/n2={n2}, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_13, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, + http.method: GET, http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/ServerTaskAddPost, + http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -108,10 +251,23 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_11, + SpanId: Id_15, + Name: ServerSyncAddXml, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + ParentId: Id_14, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, Name: internal, - Resource: WebClient, + Resource: ServerTaskAddPost, Service: Samples.Wcf, Type: custom, Tags: { @@ -119,8 +275,8 @@ language: dotnet, otel.library.name: Samples.Wcf, otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, + otel.trace_id: Guid_5, + runtime-id: Guid_2, span.kind: internal, version: 1.0.0 }, @@ -130,5 +286,69 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_16, + SpanId: Id_18, + Name: http.request, + Resource: POST localhost:00000/ServerTaskAddPost, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_17, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerTaskAddPost, + language: dotnet, + out.host: localhost, + runtime-id: Guid_2, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_19, + Name: wcf.request, + Resource: POST /ServerTaskAddPost, + Service: Samples.Wcf, + Type: web, + ParentId: Id_18, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/ServerTaskAddPost, + language: dotnet, + runtime-id: Guid_2, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_20, + Name: ServerTaskAddPost, + Resource: ServerTaskAddPost, + Service: Samples.Wcf, + ParentId: Id_19, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.WebHttp_v1.disabled.verified.txt b/tracer/test/snapshots/WcfTests.WebHttp_v1.disabled.verified.txt index 83d9d2a29a6e..373a2d9f59e0 100644 --- a/tracer/test/snapshots/WcfTests.WebHttp_v1.disabled.verified.txt +++ b/tracer/test/snapshots/WcfTests.WebHttp_v1.disabled.verified.txt @@ -2,6 +2,52 @@ { TraceId: Id_1, SpanId: Id_2, + Name: internal, + Resource: ServerSyncAddJson, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_1, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: GET localhost:00000/ServerSyncAddJson/?/n2=2, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_1, + SpanId: Id_4, Name: http.server.request, Resource: /ServerSyncAddJson/?/n2=2, Service: Samples.Wcf, @@ -15,7 +61,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -28,12 +74,71 @@ }, { TraceId: Id_1, - SpanId: Id_4, + SpanId: Id_5, + Name: ServerSyncAddJson, + Resource: ServerSyncAddJson, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: internal, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_3, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, + Name: http.client.request, + Resource: POST localhost:00000/ServerSyncAddWrapped, + Service: Samples.Wcf, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddWrapped, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: http.server.request, Resource: /ServerSyncAddWrapped, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -42,7 +147,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddWrapped, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -54,13 +159,72 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_6, + SpanId: Id_10, + Name: ServerSyncAddWrapped, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: internal, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_4, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, + Name: http.client.request, + Resource: GET localhost:00000/ServerSyncAddXml/?/n2=2, + Service: Samples.Wcf, + Type: http, + ParentId: Id_12, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_11, + SpanId: Id_14, Name: http.server.request, Resource: /ServerSyncAddXml/?/n2=2, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_13, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -69,7 +233,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -81,13 +245,72 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_11, + SpanId: Id_15, + Name: ServerSyncAddXml, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + ParentId: Id_14, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: internal, + Resource: ServerTaskAddPost, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_5, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, + Name: http.client.request, + Resource: POST localhost:00000/ServerTaskAddPost, + Service: Samples.Wcf, + Type: http, + ParentId: Id_17, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerTaskAddPost, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_16, + SpanId: Id_19, Name: http.server.request, Resource: /ServerTaskAddPost, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_18, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -96,7 +319,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerTaskAddPost, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -108,27 +331,16 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: internal, - Resource: WebClient, + TraceId: Id_16, + SpanId: Id_20, + Name: ServerTaskAddPost, + Resource: ServerTaskAddPost, Service: Samples.Wcf, - Type: custom, + ParentId: Id_19, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.WebHttp_v1.webHttp.verified.txt b/tracer/test/snapshots/WcfTests.WebHttp_v1.webHttp.verified.txt index a8071f327a45..6bd97337f882 100644 --- a/tracer/test/snapshots/WcfTests.WebHttp_v1.webHttp.verified.txt +++ b/tracer/test/snapshots/WcfTests.WebHttp_v1.webHttp.verified.txt @@ -2,6 +2,52 @@ { TraceId: Id_1, SpanId: Id_2, + Name: internal, + Resource: ServerSyncAddJson, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_1, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: GET localhost:00000/ServerSyncAddJson/?/n2=2, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_1, + SpanId: Id_4, Name: http.server.request, Resource: GET /ServerSyncAddJson/{n1}/n2={n2}, Service: Samples.Wcf, @@ -15,7 +61,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddJson/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -28,22 +74,32 @@ }, { TraceId: Id_1, - SpanId: Id_4, - Name: http.server.request, - Resource: GET /ServerSyncAddXml/{n1}/n2={n2}, + SpanId: Id_5, + Name: ServerSyncAddJson, + Resource: ServerSyncAddJson, Service: Samples.Wcf, - Type: web, - ParentId: Id_5, + ParentId: Id_4, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, language: dotnet, - runtime-id: Guid_1, - span.kind: server, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: internal, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_3, + runtime-id: Guid_2, + span.kind: internal, version: 1.0.0 }, Metrics: { @@ -54,13 +110,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_6, + SpanId: Id_8, + Name: http.client.request, + Resource: POST localhost:00000/ServerSyncAddWrapped, + Service: Samples.Wcf, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddWrapped, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: http.server.request, Resource: POST /ServerSyncAddWrapped, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -69,7 +147,7 @@ http.request.headers.host: localhost:00000, http.url: http://localhost:00000/ServerSyncAddWrapped, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -81,22 +159,81 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_6, + SpanId: Id_10, + Name: ServerSyncAddWrapped, + Resource: ServerSyncAddWrapped, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: internal, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + Type: custom, + Tags: { + env: integration_tests, + language: dotnet, + otel.library.name: Samples.Wcf, + otel.status_code: STATUS_CODE_UNSET, + otel.trace_id: Guid_4, + runtime-id: Guid_2, + span.kind: internal, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, + Name: http.client.request, + Resource: GET localhost:00000/ServerSyncAddXml/?/n2=2, + Service: Samples.Wcf, + Type: http, + ParentId: Id_12, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: GET, + http.status_code: 200, + http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_11, + SpanId: Id_14, Name: http.server.request, - Resource: POST /ServerTaskAddPost, + Resource: GET /ServerSyncAddXml/{n1}/n2={n2}, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_13, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, + http.method: GET, http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/ServerTaskAddPost, + http.url: http://localhost:00000/ServerSyncAddXml/1/n2=2, language: dotnet, - runtime-id: Guid_1, + runtime-id: Guid_2, span.kind: server, version: 1.0.0 }, @@ -108,10 +245,23 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_11, + SpanId: Id_15, + Name: ServerSyncAddXml, + Resource: ServerSyncAddXml, + Service: Samples.Wcf, + ParentId: Id_14, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, Name: internal, - Resource: WebClient, + Resource: ServerTaskAddPost, Service: Samples.Wcf, Type: custom, Tags: { @@ -119,8 +269,8 @@ language: dotnet, otel.library.name: Samples.Wcf, otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, + otel.trace_id: Guid_5, + runtime-id: Guid_2, span.kind: internal, version: 1.0.0 }, @@ -130,5 +280,67 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_16, + SpanId: Id_18, + Name: http.client.request, + Resource: POST localhost:00000/ServerTaskAddPost, + Service: Samples.Wcf, + Type: http, + ParentId: Id_17, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/ServerTaskAddPost, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_16, + SpanId: Id_19, + Name: http.server.request, + Resource: POST /ServerTaskAddPost, + Service: Samples.Wcf, + Type: web, + ParentId: Id_18, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/ServerTaskAddPost, + language: dotnet, + runtime-id: Guid_2, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_20, + Name: ServerTaskAddPost, + Resource: ServerTaskAddPost, + Service: Samples.Wcf, + ParentId: Id_19, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt index b610c39170cd..c9f88536349e 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: wcf.request, - Resource: /WcfSample/123,123/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,30 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +49,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -55,22 +71,27 @@ }, { TraceId: Id_1, - SpanId: Id_6, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,13 +102,37 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_8, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +153,41 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +198,42 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_12, + SpanId: Id_14, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_15, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_14, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +254,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, Service: Samples.Wcf, - Type: web, ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +286,42 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_17, + SpanId: Id_19, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_20, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +342,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +374,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_22, + SpanId: Id_24, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_25, Name: wcf.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_24, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,23 +425,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -297,13 +457,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_27, + SpanId: Id_29, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_30, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,23 +508,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_27, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -351,20 +540,34 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -373,5 +576,605 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_42, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_41, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_43, + Name: wcf.request, + Resource: /WcfSample/123,123/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_42, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_44, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_61, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_62, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_61, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_63, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_62, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_64, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_63, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_66, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_67, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_66, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_68, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_67, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_69, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_68, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_71, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_72, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_71, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_73, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_72, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_74, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_73, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt index 17ca3a160490..8142b5da8003 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: wcf.request, - Resource: /WcfSample/?/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,30 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +49,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -55,22 +71,27 @@ }, { TraceId: Id_1, - SpanId: Id_6, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,13 +102,37 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_8, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +153,41 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +198,42 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_12, + SpanId: Id_14, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_15, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_14, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +254,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, Service: Samples.Wcf, - Type: web, ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +286,42 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_17, + SpanId: Id_19, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_20, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +342,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +374,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_22, + SpanId: Id_24, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_25, Name: wcf.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_24, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,23 +425,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -297,13 +457,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_27, + SpanId: Id_29, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_30, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,23 +508,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_27, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -351,20 +540,34 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -373,5 +576,605 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_42, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_41, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_43, + Name: wcf.request, + Resource: /WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_42, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_44, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_61, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_62, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_61, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_63, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_62, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_64, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_63, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_66, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_67, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_66, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_68, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_67, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_69, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_68, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_71, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_72, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_71, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_73, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_72, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_74, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_73, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt index c64be63395b9..abfdd23e36e9 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: wcf.request, - Resource: /WcfSample/123,123/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,30 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +49,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -53,24 +69,42 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, { TraceId: Id_1, SpanId: Id_6, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,23 +115,41 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_7, + SpanId: Id_9, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_10, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_9, - Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +166,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,13 +211,42 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_13, + SpanId: Id_15, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_16, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_15, Error: 1, Tags: { component: Wcf, @@ -156,7 +255,7 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu error.msg: Something happened, error.stack: System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, @@ -174,23 +273,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,17 +318,52 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_19, + SpanId: Id_21, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_22, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_21, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -228,23 +380,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +412,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_24, + SpanId: Id_26, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_27, Name: wcf.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_26, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,23 +463,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -309,40 +495,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, - Service: Samples.Wcf, - Type: web, - ParentId: Id_25, + TraceId: Id_29, + SpanId: Id_31, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_30, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, + component: WebRequest, env: integration_tests, http.method: POST, - http.request.headers.host: localhost:00000, + http.status_code: 200, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, + out.host: localhost, runtime-id: Guid_1, - span.kind: server, - version: 1.0.0 + span.kind: client, + _dd.base_service: Samples.Wcf }, Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 + _dd.top_level: 1.0 } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_29, + SpanId: Id_32, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_31, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,20 +546,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -385,5 +576,593 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_34, + SpanId: Id_36, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_35, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_37, + Name: wcf.request, + Resource: /WcfSample/123,123/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_36, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_38, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_37, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_40, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_41, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_40, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_42, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_41, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_43, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_44, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_60, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_62, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_63, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_62, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_64, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_63, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_65, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_64, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_67, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_68, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_67, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_69, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_68, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_70, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_69, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 02234e8fdad0..d089fdef0286 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: wcf.request, - Resource: /WcfSample/?/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,30 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +49,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -53,24 +69,42 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, { TraceId: Id_1, SpanId: Id_6, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,23 +115,41 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_7, + SpanId: Id_9, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_10, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_9, - Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +166,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,13 +211,42 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_13, + SpanId: Id_15, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_16, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_15, Error: 1, Tags: { component: Wcf, @@ -156,7 +255,7 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu error.msg: Something happened, error.stack: System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, @@ -174,23 +273,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,17 +318,52 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_19, + SpanId: Id_21, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_22, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_21, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -228,23 +380,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +412,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_24, + SpanId: Id_26, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_27, Name: wcf.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_26, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,23 +463,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -309,40 +495,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, - Service: Samples.Wcf, - Type: web, - ParentId: Id_25, + TraceId: Id_29, + SpanId: Id_31, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_30, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, + component: WebRequest, env: integration_tests, http.method: POST, - http.request.headers.host: localhost:00000, + http.status_code: 200, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, + out.host: localhost, runtime-id: Guid_1, - span.kind: server, - version: 1.0.0 + span.kind: client, + _dd.base_service: Samples.Wcf }, Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 + _dd.top_level: 1.0 } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_29, + SpanId: Id_32, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_31, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,20 +546,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -385,5 +576,593 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_34, + SpanId: Id_36, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_35, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_37, + Name: wcf.request, + Resource: /WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_36, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_38, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_37, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_40, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_41, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_40, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_42, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_41, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_43, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_44, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_60, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_62, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_63, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_62, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_64, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_63, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_65, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_64, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_67, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_68, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_67, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_69, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_68, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_70, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_69, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 29afb5ef8336..69ef4d8e094a 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -22,5 +17,610 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_4, + SpanId: Id_5, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_4, + SpanId: Id_6, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_5, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_9, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_11, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_12, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_11, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_15, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_17, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_21, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_25, + SpanId: Id_26, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_25, + SpanId: Id_27, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_26, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_30, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_29, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_31, + SpanId: Id_32, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_31, + SpanId: Id_33, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_32, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_36, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_35, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_38, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_39, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_38, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt index dd0ba85a410b..f1e933e4d475 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: wcf.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,50 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_6, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_7, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_6, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +101,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_5, + SpanId: Id_8, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_9, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_11, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_12, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_11, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +171,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_10, + SpanId: Id_13, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_12, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_15, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_16, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_15, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +228,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_14, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_19, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_20, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +285,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_18, + SpanId: Id_21, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_23, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +342,128 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_22, + SpanId: Id_25, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_24, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_26, + SpanId: Id_27, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_30, + SpanId: Id_31, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_36, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_35, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +475,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_34, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_36, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_40, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_39, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +532,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_38, + SpanId: Id_41, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_40, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_43, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,20 +589,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_42, + SpanId: Id_45, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_44, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_47, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_48, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -274,20 +646,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_46, + SpanId: Id_49, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -299,20 +703,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_50, + SpanId: Id_53, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -324,20 +760,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_54, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_60, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_59, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -347,5 +815,18 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_58, + SpanId: Id_61, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_60, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt index fc48ee9b0f81..319dd91c7ef0 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: wcf.request, - Resource: /WcfSample/?/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,50 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_6, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_7, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_6, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +101,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_5, + SpanId: Id_8, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_9, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_11, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_12, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_11, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +171,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_10, + SpanId: Id_13, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_12, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_15, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_16, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_15, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +228,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_14, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_19, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_20, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +285,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_18, + SpanId: Id_21, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_23, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +342,128 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_22, + SpanId: Id_25, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_24, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_26, + SpanId: Id_27, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_30, + SpanId: Id_31, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_36, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_35, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +475,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_34, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_36, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_40, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_39, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +532,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_38, + SpanId: Id_41, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_40, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_43, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,20 +589,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_42, + SpanId: Id_45, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_44, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_47, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_48, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -274,20 +646,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_46, + SpanId: Id_49, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -299,20 +703,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_50, + SpanId: Id_53, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -324,20 +760,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_54, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_60, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_59, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -347,5 +815,18 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_58, + SpanId: Id_61, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_60, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt index b7f3eeb0d4ae..71a186dad042 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: wcf.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,63 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_7, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +114,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_6, + SpanId: Id_9, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_12, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +190,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_11, + SpanId: Id_14, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_15, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_17, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +266,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_16, + SpanId: Id_19, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_18, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_21, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_22, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_21, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +323,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_20, + SpanId: Id_23, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_25, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +380,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_24, + SpanId: Id_27, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_26, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_30, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +437,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_28, + SpanId: Id_31, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_34, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_33, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +494,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_32, + SpanId: Id_35, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_36, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_38, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_39, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_38, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,26 +564,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_37, + SpanId: Id_40, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_39, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_42, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_43, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_42, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -280,20 +621,52 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_41, + SpanId: Id_44, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_46, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -305,26 +678,65 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_45, + SpanId: Id_48, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -336,20 +748,52 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_50, + SpanId: Id_53, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -359,5 +803,18 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_54, + SpanId: Id_57, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index a194e9e8a5c9..ae752a7e4bf6 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: wcf.request, - Resource: /WcfSample/?/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,63 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_7, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +114,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_6, + SpanId: Id_9, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_12, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +190,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_11, + SpanId: Id_14, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_15, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_17, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +266,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_16, + SpanId: Id_19, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_18, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_21, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_22, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_21, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +323,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_20, + SpanId: Id_23, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_25, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +380,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_24, + SpanId: Id_27, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_26, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_30, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +437,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_28, + SpanId: Id_31, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_34, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_33, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +494,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_32, + SpanId: Id_35, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_36, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_38, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_39, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_38, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,26 +564,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_37, + SpanId: Id_40, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_39, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_42, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_43, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_42, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -280,20 +621,52 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_41, + SpanId: Id_44, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_46, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -305,26 +678,65 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_45, + SpanId: Id_48, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -336,20 +748,52 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_50, + SpanId: Id_53, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -359,5 +803,18 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_54, + SpanId: Id_57, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt index b610c39170cd..72899278c3d9 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt @@ -2,14 +2,751 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_9, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_8, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_14, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_15, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_14, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_15, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_19, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_20, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_19, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_25, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_24, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_29, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_30, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_29, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_45, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_46, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_47, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_48, Name: wcf.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_44, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,16 +764,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_42, + SpanId: Id_49, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_45, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -54,16 +790,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_42, + SpanId: Id_50, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_46, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -81,13 +816,13 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_42, + SpanId: Id_51, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +843,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_42, + SpanId: Id_52, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_51, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +875,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_53, + SpanId: Id_55, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +926,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +958,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_58, + SpanId: Id_60, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: wcf.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +1009,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +1041,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_63, + SpanId: Id_65, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,13 +1092,69 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, + TraceId: Id_63, + SpanId: Id_67, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_69, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_70, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_69, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_71, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_23, + ParentId: Id_70, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -297,13 +1175,69 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_68, + SpanId: Id_72, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_71, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_74, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_75, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_74, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_76, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_75, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,13 +1258,69 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_73, + SpanId: Id_77, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_76, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_79, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_80, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_79, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_81, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_80, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -351,27 +1341,16 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_78, + SpanId: Id_82, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_81, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt index 17ca3a160490..b18abf00b3c7 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt @@ -2,14 +2,751 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_9, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_8, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_14, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_15, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_14, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_15, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_19, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_20, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_19, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_25, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_24, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_29, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_30, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_29, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_45, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_46, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_47, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_48, Name: wcf.request, - Resource: /WcfSample/?/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_44, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,16 +764,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_42, + SpanId: Id_49, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_45, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -54,16 +790,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_42, + SpanId: Id_50, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_46, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -81,13 +816,13 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_42, + SpanId: Id_51, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +843,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_42, + SpanId: Id_52, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_51, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +875,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_53, + SpanId: Id_55, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +926,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +958,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_58, + SpanId: Id_60, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: wcf.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +1009,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +1041,37 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_63, + SpanId: Id_65, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,13 +1092,69 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, + TraceId: Id_63, + SpanId: Id_67, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_69, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_70, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_69, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_71, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_23, + ParentId: Id_70, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -297,13 +1175,69 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_68, + SpanId: Id_72, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_71, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_74, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_75, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_74, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_76, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_75, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,13 +1258,69 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_73, + SpanId: Id_77, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_76, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_79, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_80, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_79, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_81, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_80, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -351,27 +1341,16 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_78, + SpanId: Id_82, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_81, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt index c64be63395b9..e29640e3f64e 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt @@ -2,14 +2,765 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_6, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_9, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_10, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_9, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_15, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_16, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_15, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_21, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_22, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_21, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_27, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_26, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_31, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_30, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_32, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_31, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_38, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_39, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_40, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_41, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_42, + Name: wcf.request, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, + Service: Samples.Wcf, + Type: web, + ParentId: Id_38, + Tags: { + component: Wcf, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_43, + Name: wcf.request, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, + Service: Samples.Wcf, + Type: web, + ParentId: Id_39, + Tags: { + component: Wcf, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_44, Name: wcf.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_40, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,13 +778,13 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_36, + SpanId: Id_45, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_41, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -54,23 +805,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_36, + SpanId: Id_46, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_45, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_48, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,23 +837,41 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_47, + SpanId: Id_49, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_48, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_50, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_9, - Error: 1, + ParentId: Id_49, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +888,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_47, + SpanId: Id_51, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_52, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,23 +933,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_53, + SpanId: Id_55, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, - Error: 1, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -174,23 +984,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,13 +1016,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_58, + SpanId: Id_60, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -228,23 +1067,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +1099,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_63, + SpanId: Id_65, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,23 +1150,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_63, + SpanId: Id_67, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_68, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_70, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -309,13 +1195,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_69, + SpanId: Id_71, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_70, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_72, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_71, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -336,13 +1246,69 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_69, + SpanId: Id_73, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_72, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_75, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_76, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_75, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_77, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_76, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,27 +1329,16 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_74, + SpanId: Id_78, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_77, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 02234e8fdad0..6e741d8c3b73 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v0_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,14 +2,765 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_6, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_9, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_10, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_9, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_15, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_16, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_15, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_21, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_22, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_21, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_27, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_26, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_31, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_30, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_32, + Name: wcf.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_31, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_38, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_39, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_40, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_41, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_42, + Name: wcf.request, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, + Service: Samples.Wcf, + Type: web, + ParentId: Id_38, + Tags: { + component: Wcf, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_43, + Name: wcf.request, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, + Service: Samples.Wcf, + Type: web, + ParentId: Id_39, + Tags: { + component: Wcf, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_44, Name: wcf.request, - Resource: /WcfSample/?/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_40, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,13 +778,13 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_36, + SpanId: Id_45, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_41, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -54,23 +805,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_36, + SpanId: Id_46, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_45, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_48, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,23 +837,41 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_47, + SpanId: Id_49, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_48, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_50, Name: wcf.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_9, - Error: 1, + ParentId: Id_49, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +888,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_47, + SpanId: Id_51, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_52, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,23 +933,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_53, + SpanId: Id_55, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, - Error: 1, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -174,23 +984,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,13 +1016,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_58, + SpanId: Id_60, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -228,23 +1067,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +1099,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_63, + SpanId: Id_65, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,23 +1150,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_63, + SpanId: Id_67, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_68, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_70, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -309,13 +1195,37 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_69, + SpanId: Id_71, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_70, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_72, Name: wcf.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_71, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -336,13 +1246,69 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_69, + SpanId: Id_73, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_72, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_75, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_76, + Name: http.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf-http-client, + Type: http, + ParentId: Id_75, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + runtime-id: Guid_1, + span.kind: client, + _dd.base_service: Samples.Wcf + }, + Metrics: { + _dd.top_level: 1.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_77, Name: wcf.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_76, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,27 +1329,16 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_74, + SpanId: Id_78, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_77, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt index aa873ea4d08d..0c9404103798 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: http.server.request, - Resource: /WcfSample/123,123/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,28 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +47,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -55,22 +69,27 @@ }, { TraceId: Id_1, - SpanId: Id_6, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,13 +100,35 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_8, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +149,41 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +194,40 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_12, + SpanId: Id_14, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_12, + SpanId: Id_15, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_14, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +248,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, Service: Samples.Wcf, - Type: web, ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +280,40 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_17, + SpanId: Id_19, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_17, + SpanId: Id_20, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +334,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +366,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_22, + SpanId: Id_24, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_22, + SpanId: Id_25, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_24, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,23 +415,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -297,13 +447,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_27, + SpanId: Id_29, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_27, + SpanId: Id_30, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,23 +496,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_27, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -351,20 +528,53 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -373,5 +583,572 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_42, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_41, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_40, + SpanId: Id_43, + Name: http.server.request, + Resource: /WcfSample/123,123/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_42, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_44, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_61, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_62, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_61, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_60, + SpanId: Id_63, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_62, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_64, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_63, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_66, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_67, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_66, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_65, + SpanId: Id_68, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_67, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_69, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_68, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_71, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_72, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_71, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_70, + SpanId: Id_73, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_72, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_74, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_73, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt index 2c0ab3692cd6..73d0797d968a 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: http.server.request, - Resource: /WcfSample/?/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,28 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +47,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -55,22 +69,27 @@ }, { TraceId: Id_1, - SpanId: Id_6, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,13 +100,35 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_8, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_6, + SpanId: Id_9, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_8, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +149,41 @@ } }, { - TraceId: Id_1, + TraceId: Id_6, SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +194,40 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_12, + SpanId: Id_14, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_12, + SpanId: Id_15, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_14, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +248,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, Service: Samples.Wcf, - Type: web, ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +280,40 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_17, + SpanId: Id_19, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_17, + SpanId: Id_20, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +334,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +366,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_22, + SpanId: Id_24, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_22, + SpanId: Id_25, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_24, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,23 +415,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -297,13 +447,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_27, + SpanId: Id_29, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_27, + SpanId: Id_30, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,23 +496,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_27, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -351,20 +528,53 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -373,5 +583,572 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_42, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_41, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_40, + SpanId: Id_43, + Name: http.server.request, + Resource: /WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_42, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_44, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_61, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_62, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_61, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_60, + SpanId: Id_63, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_62, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_60, + SpanId: Id_64, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_63, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_66, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_67, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_66, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_65, + SpanId: Id_68, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_67, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_65, + SpanId: Id_69, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_68, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_71, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_72, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_71, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_70, + SpanId: Id_73, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_72, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_70, + SpanId: Id_74, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_73, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt index d0959ddc3978..83904b74d5fb 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: http.server.request, - Resource: /WcfSample/123,123/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,28 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +47,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -53,24 +67,42 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, { TraceId: Id_1, SpanId: Id_6, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,23 +113,39 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_7, + SpanId: Id_9, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_7, + SpanId: Id_10, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_9, - Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +162,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,13 +207,40 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_13, + SpanId: Id_15, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_13, + SpanId: Id_16, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_15, Error: 1, Tags: { component: Wcf, @@ -156,7 +249,7 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu error.msg: Something happened, error.stack: System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, @@ -174,23 +267,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,17 +312,50 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_19, + SpanId: Id_21, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_19, + SpanId: Id_22, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_21, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -228,23 +372,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +404,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_24, + SpanId: Id_26, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_24, + SpanId: Id_27, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_26, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,23 +453,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -309,40 +485,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_29, + SpanId: Id_31, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, Service: Samples.Wcf, - Type: web, - ParentId: Id_25, + Type: http, + ParentId: Id_30, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, + component: WebRequest, env: integration_tests, http.method: POST, - http.request.headers.host: localhost:00000, + http.status_code: 200, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_1, - span.kind: server, - version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_29, + SpanId: Id_32, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_31, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,20 +534,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -385,5 +564,579 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_34, + SpanId: Id_36, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_35, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_34, + SpanId: Id_37, + Name: http.server.request, + Resource: /WcfSample/123,123/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_36, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_38, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_37, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_40, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_41, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_40, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_39, + SpanId: Id_42, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_41, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_43, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_44, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_60, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_62, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_63, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_62, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_61, + SpanId: Id_64, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_63, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_65, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_64, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_67, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_68, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_67, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_66, + SpanId: Id_69, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_68, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_70, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_69, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 5bb38a3ad1ee..45f3eff7a3ea 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=BasicHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,21 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: http.server.request, - Resource: /WcfSample/?/CalculatorService, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_3, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -26,6 +18,28 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, { TraceId: Id_1, SpanId: Id_4, @@ -33,7 +47,7 @@ Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_3, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -53,24 +67,42 @@ _sampling_priority_v1: 1.0 } }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, { TraceId: Id_1, SpanId: Id_6, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_7, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -81,23 +113,39 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_7, + SpanId: Id_9, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_7, + SpanId: Id_10, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_9, - Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +162,41 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,13 +207,40 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_13, + SpanId: Id_15, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_13, + SpanId: Id_16, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_15, Error: 1, Tags: { component: Wcf, @@ -156,7 +249,7 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu error.msg: Something happened, error.stack: System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, @@ -174,23 +267,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,17 +312,50 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_19, + SpanId: Id_21, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_19, + SpanId: Id_22, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_21, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -228,23 +372,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +404,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_24, + SpanId: Id_26, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_24, + SpanId: Id_27, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_26, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,23 +453,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_23, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -309,40 +485,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + TraceId: Id_29, + SpanId: Id_31, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, Service: Samples.Wcf, - Type: web, - ParentId: Id_25, + Type: http, + ParentId: Id_30, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, + component: WebRequest, env: integration_tests, http.method: POST, - http.request.headers.host: localhost:00000, + http.status_code: 200, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_1, - span.kind: server, - version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_29, + SpanId: Id_32, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_31, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,20 +534,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 }, Metrics: { @@ -385,5 +564,579 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_34, + SpanId: Id_36, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_35, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_34, + SpanId: Id_37, + Name: http.server.request, + Resource: /WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: web, + ParentId: Id_36, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_38, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_37, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_40, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_41, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_40, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_39, + SpanId: Id_42, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_41, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_43, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_39, + SpanId: Id_44, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_42, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_46, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_45, + SpanId: Id_48, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_47, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_51, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_50, + SpanId: Id_53, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_52, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_54, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_53, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_56, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_57, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_56, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_55, + SpanId: Id_58, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_57, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_59, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_55, + SpanId: Id_60, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_58, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_62, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_63, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_62, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_61, + SpanId: Id_64, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_63, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_61, + SpanId: Id_65, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_64, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_67, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_68, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_67, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_66, + SpanId: Id_69, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_68, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_66, + SpanId: Id_70, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_69, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 29afb5ef8336..e7a0eae26aa0 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=Custom_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -22,5 +17,584 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_4, + SpanId: Id_5, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_4, + SpanId: Id_6, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_5, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_9, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_10, + SpanId: Id_11, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_12, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_11, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_15, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_17, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_21, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_25, + SpanId: Id_26, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_25, + SpanId: Id_27, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_26, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_30, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_29, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.GetResponse(), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_31, + SpanId: Id_32, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_31, + SpanId: Id_33, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_32, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_36, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_35, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_37, + SpanId: Id_38, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_39, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_38, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt index a500d8dadf05..b5414c820589 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: http.server.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,50 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_6, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_7, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_6, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +101,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_5, + SpanId: Id_8, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_9, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_11, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_12, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_11, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +171,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_10, + SpanId: Id_13, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_12, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_15, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_16, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_15, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +228,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_14, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_19, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_20, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +285,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_18, + SpanId: Id_21, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_23, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +342,128 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_22, + SpanId: Id_25, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_24, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_26, + SpanId: Id_27, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_30, + SpanId: Id_31, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_36, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_35, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +475,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_34, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_36, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_40, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_39, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +532,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_38, + SpanId: Id_41, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_40, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_43, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,20 +589,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_42, + SpanId: Id_45, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_44, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_47, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_48, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -274,20 +646,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_46, + SpanId: Id_49, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -299,20 +703,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_50, + SpanId: Id_53, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -324,20 +760,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_54, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_60, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_59, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -347,5 +815,18 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_58, + SpanId: Id_61, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_60, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt index d2f7a430d8fe..16d4ad58e3fb 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: http.server.request, - Resource: /WcfSample/?/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,50 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_6, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_7, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_6, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +101,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_5, + SpanId: Id_8, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_5, + SpanId: Id_9, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_7, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_11, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_10, + SpanId: Id_12, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_11, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +171,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_10, + SpanId: Id_13, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_12, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_15, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_14, + SpanId: Id_16, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_15, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +228,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_14, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_19, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_18, + SpanId: Id_20, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_19, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +285,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_18, + SpanId: Id_21, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_23, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +342,128 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_22, + SpanId: Id_25, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_24, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_26, + SpanId: Id_27, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_30, + SpanId: Id_31, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_36, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_35, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +475,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_34, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_36, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_40, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_39, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +532,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_38, + SpanId: Id_41, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_40, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_43, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,20 +589,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_42, + SpanId: Id_45, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_44, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_47, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_46, + SpanId: Id_48, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -274,20 +646,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_46, + SpanId: Id_49, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_48, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -299,20 +703,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_50, + SpanId: Id_53, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -324,20 +760,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_54, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_60, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_59, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -347,5 +815,18 @@ _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_58, + SpanId: Id_61, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_60, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt index 743acfabd15d..d19082bdb53a 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: http.server.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,63 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_7, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +114,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_6, + SpanId: Id_9, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_12, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +190,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_11, + SpanId: Id_14, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_15, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_17, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +266,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_16, + SpanId: Id_19, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_18, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_21, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_22, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_21, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +323,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_20, + SpanId: Id_23, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_25, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +380,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_24, + SpanId: Id_27, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_26, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_30, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +437,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_28, + SpanId: Id_31, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_34, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_33, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +494,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_32, + SpanId: Id_35, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_36, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_38, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_39, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_38, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,26 +564,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_37, + SpanId: Id_40, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_39, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_42, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_43, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_42, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -280,20 +621,52 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_41, + SpanId: Id_44, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_46, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -305,26 +678,65 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_45, + SpanId: Id_48, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -336,20 +748,52 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_50, + SpanId: Id_53, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -359,5 +803,18 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_54, + SpanId: Id_57, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 12cb4da7b868..4995ea61167b 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=NetTcpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,18 +2,13 @@ { TraceId: Id_1, SpanId: Id_2, - Name: internal, - Resource: WebClient, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, Service: Samples.Wcf, - Type: custom, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_1, - runtime-id: Guid_2, - span.kind: internal, + runtime-id: Guid_1, version: 1.0.0 }, Metrics: { @@ -27,7 +22,7 @@ TraceId: Id_1, SpanId: Id_3, Name: http.server.request, - Resource: /WcfSample/?/CalculatorService, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, ParentId: Id_2, @@ -37,7 +32,7 @@ env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -51,18 +46,63 @@ { TraceId: Id_1, SpanId: Id_4, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_3, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_7, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -74,20 +114,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_5, + TraceId: Id_6, + SpanId: Id_9, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_8, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_12, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_13, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_12, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -99,20 +190,71 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_11, + SpanId: Id_14, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_11, + SpanId: Id_15, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_13, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_17, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_16, + SpanId: Id_18, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_17, + Error: 1, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -124,20 +266,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_7, + TraceId: Id_16, + SpanId: Id_19, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_18, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_21, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_20, + SpanId: Id_22, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_21, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -149,20 +323,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_20, + SpanId: Id_23, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_25, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -174,20 +380,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_9, + TraceId: Id_24, + SpanId: Id_27, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_26, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_29, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_28, + SpanId: Id_30, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_29, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -199,20 +437,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, + TraceId: Id_28, + SpanId: Id_31, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_34, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_33, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -224,20 +494,65 @@ } }, { - TraceId: Id_1, - SpanId: Id_11, + TraceId: Id_32, + SpanId: Id_35, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_36, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_34, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_38, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_37, + SpanId: Id_39, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_38, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -249,26 +564,52 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_37, + SpanId: Id_40, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_39, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_42, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_41, + SpanId: Id_43, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_42, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -280,20 +621,52 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_13, + TraceId: Id_41, + SpanId: Id_44, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_43, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_46, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_47, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_46, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -305,26 +678,65 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_14, + TraceId: Id_45, + SpanId: Id_48, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_45, + SpanId: Id_49, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_47, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_51, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_50, + SpanId: Id_52, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, - Error: 1, + ParentId: Id_51, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -336,20 +748,52 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_15, + TraceId: Id_50, + SpanId: Id_53, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_52, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_55, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_54, + SpanId: Id_56, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_2, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, http.url: net.tcp://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, - runtime-id: Guid_2, + runtime-id: Guid_1, span.kind: server, version: 1.0.0 }, @@ -359,5 +803,18 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 _dd.tracer_kr: 1.0, _sampling_priority_v1: 1.0 } + }, + { + TraceId: Id_54, + SpanId: Id_57, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt index aa873ea4d08d..d3073121aa3d 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=False.verified.txt @@ -2,14 +2,733 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_6, + SpanId: Id_9, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_8, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_14, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_12, + SpanId: Id_15, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_14, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_15, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_19, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_17, + SpanId: Id_20, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_19, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_22, + SpanId: Id_25, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_24, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_29, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_27, + SpanId: Id_30, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_29, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + runtime-id: Guid_1, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_45, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_46, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_47, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_48, Name: http.server.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_44, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,16 +746,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_42, + SpanId: Id_49, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_45, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -54,16 +772,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_42, + SpanId: Id_50, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_46, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -81,13 +798,13 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_42, + SpanId: Id_51, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +825,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_42, + SpanId: Id_52, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_51, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +857,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_53, + SpanId: Id_55, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +906,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +938,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_58, + SpanId: Id_60, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +987,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +1019,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_63, + SpanId: Id_65, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,13 +1068,67 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, + TraceId: Id_63, + SpanId: Id_67, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_69, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_70, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_69, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_68, + SpanId: Id_71, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_23, + ParentId: Id_70, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -297,13 +1149,67 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_68, + SpanId: Id_72, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_71, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_74, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_75, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_74, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_73, + SpanId: Id_76, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_75, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,13 +1230,67 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_73, + SpanId: Id_77, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_76, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_79, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_80, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_79, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_78, + SpanId: Id_81, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_80, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -351,27 +1311,16 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_78, + SpanId: Id_82, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_81, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt index 2c0ab3692cd6..317281be1f4d 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=False_enableWcfObfuscation=True.verified.txt @@ -2,14 +2,733 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_7, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_8, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_7, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_6, + SpanId: Id_9, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_8, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_10, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_6, + SpanId: Id_11, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_9, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_13, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_14, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_13, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_12, + SpanId: Id_15, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_14, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_12, + SpanId: Id_16, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_15, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_18, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_19, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_18, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_17, + SpanId: Id_20, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_19, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_17, + SpanId: Id_21, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_20, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_23, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_24, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_23, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_22, + SpanId: Id_25, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_24, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_22, + SpanId: Id_26, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_25, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_28, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_29, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_28, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_27, + SpanId: Id_30, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_29, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_27, + SpanId: Id_31, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_30, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_32, + SpanId: Id_33, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_38, + SpanId: Id_39, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_40, + SpanId: Id_41, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + runtime-id: Guid_1, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_43, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_42, + SpanId: Id_44, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_45, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_46, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_47, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_43, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_42, + SpanId: Id_48, Name: http.server.request, - Resource: /WcfSample/?/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_44, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,16 +746,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_42, + SpanId: Id_49, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_45, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -54,16 +772,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_42, + SpanId: Id_50, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_46, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -81,13 +798,13 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_42, + SpanId: Id_51, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_9, + ParentId: Id_47, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -108,23 +825,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_42, + SpanId: Id_52, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_51, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -135,13 +857,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_53, + SpanId: Id_55, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -162,23 +906,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -189,13 +938,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_58, + SpanId: Id_60, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -216,23 +987,28 @@ } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -243,13 +1019,35 @@ } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_63, + SpanId: Id_65, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -270,13 +1068,67 @@ } }, { - TraceId: Id_1, - SpanId: Id_22, + TraceId: Id_63, + SpanId: Id_67, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_69, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_68, + SpanId: Id_70, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_69, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_68, + SpanId: Id_71, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_23, + ParentId: Id_70, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -297,13 +1149,67 @@ } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_68, + SpanId: Id_72, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_71, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_74, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_73, + SpanId: Id_75, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_74, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_73, + SpanId: Id_76, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_75, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -324,13 +1230,67 @@ } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_73, + SpanId: Id_77, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_76, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_79, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_78, + SpanId: Id_80, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_79, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_78, + SpanId: Id_81, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_80, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -351,27 +1311,16 @@ } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_78, + SpanId: Id_82, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_81, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt index d0959ddc3978..e86cb602bbb4 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=False.verified.txt @@ -2,14 +2,695 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_6, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_9, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_7, + SpanId: Id_10, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_9, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_15, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_13, + SpanId: Id_16, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_15, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_21, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_19, + SpanId: Id_22, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_21, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_24, + SpanId: Id_27, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_26, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_31, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_30, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_29, + SpanId: Id_32, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_31, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + runtime-id: Guid_1, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_38, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_39, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_40, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_41, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_42, Name: http.server.request, - Resource: /WcfSample/123,123/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_38, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,16 +708,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_36, + SpanId: Id_43, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_39, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -54,16 +734,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_36, + SpanId: Id_44, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_40, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -81,23 +760,17 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_36, + SpanId: Id_45, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/123,123/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_9, - Error: 1, + ParentId: Id_41, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +787,28 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_36, + SpanId: Id_46, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_45, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_48, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,23 +819,39 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_47, + SpanId: Id_49, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_48, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_47, + SpanId: Id_50, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, - Error: 1, + ParentId: Id_49, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -174,23 +868,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_47, + SpanId: Id_51, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_52, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,13 +913,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_53, + SpanId: Id_55, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -228,23 +962,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +994,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_58, + SpanId: Id_60, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,13 +1043,67 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_65, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_23, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -309,13 +1124,80 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_63, + SpanId: Id_67, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_68, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_70, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_71, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_70, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_69, + SpanId: Id_72, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_71, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -336,13 +1218,67 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_69, + SpanId: Id_73, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_72, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_75, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_76, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_75, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_74, + SpanId: Id_77, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_76, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,27 +1299,16 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_74, + SpanId: Id_78, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_77, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt index 5bb38a3ad1ee..5f36bf3390b1 100644 --- a/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt +++ b/tracer/test/snapshots/WcfTests.__metadataSchemaVersion=v1_binding=WSHttpBinding_enableNewWcfInstrumentation=True_enableWcfObfuscation=True.verified.txt @@ -2,14 +2,695 @@ { TraceId: Id_1, SpanId: Id_2, + Name: Begin_ServerAsyncAdd_false_false, + Resource: Begin_ServerAsyncAdd_false_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_3, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_2, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_1, + SpanId: Id_4, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_3, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_5, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_1, + SpanId: Id_6, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_4, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_8, + Name: Begin_ServerAsyncAdd_false_true, + Resource: Begin_ServerAsyncAdd_false_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_9, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_8, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_7, + SpanId: Id_10, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_9, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_11, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_7, + SpanId: Id_12, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_10, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_14, + Name: Begin_ServerAsyncAdd_true_false, + Resource: Begin_ServerAsyncAdd_true_false, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_15, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_14, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_13, + SpanId: Id_16, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_15, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_17, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_13, + SpanId: Id_18, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_16, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_20, + Name: Begin_ServerAsyncAdd_true_true, + Resource: Begin_ServerAsyncAdd_true_true, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_21, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_20, + Tags: { + component: WebRequest, + env: integration_tests, + error.msg: The remote server returned an error: (500) Internal Server Error., + error.stack: +System.Net.WebException: The remote server returned an error: (500) Internal Server Error. +at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult), + error.type: System.Net.WebException, + http.method: POST, + http.status_code: 500, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_19, + SpanId: Id_22, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerAsyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_21, + Error: 1, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + error.msg: Something happened, + error.stack: +System.ServiceModel.FaultException: Something happened +at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), + error.type: System.ServiceModel.FaultException, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_19, + SpanId: Id_23, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_22, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_25, + Name: BeginEnd_ServerSyncAdd, + Resource: BeginEnd_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_26, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_25, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_24, + SpanId: Id_27, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerSyncAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_26, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_24, + SpanId: Id_28, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_27, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_30, + Name: BeginEnd_ServerTaskAdd, + Resource: BeginEnd_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_31, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_30, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_29, + SpanId: Id_32, + Name: http.server.request, + Resource: WcfSample/ICalculator/ServerTaskAdd, + Service: Samples.Wcf, + Type: web, + ParentId: Id_31, + Tags: { + component: Wcf, + custom-tag: DispatchMessageInspector, + env: integration_tests, + http.method: POST, + http.request.headers.host: localhost:00000, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + runtime-id: Guid_1, + span.kind: server, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_29, + SpanId: Id_33, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_32, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_34, + SpanId: Id_35, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + runtime-id: Guid_1, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_37, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_36, + SpanId: Id_38, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_39, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_40, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_41, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_37, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_36, + SpanId: Id_42, Name: http.server.request, - Resource: /WcfSample/?/CalculatorService, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_3, + ParentId: Id_38, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -27,16 +708,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_4, + TraceId: Id_36, + SpanId: Id_43, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue, Service: Samples.Wcf, Type: web, - ParentId: Id_5, + ParentId: Id_39, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -54,16 +734,15 @@ } }, { - TraceId: Id_1, - SpanId: Id_6, + TraceId: Id_36, + SpanId: Id_44, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT, Service: Samples.Wcf, Type: web, - ParentId: Id_7, + ParentId: Id_40, Tags: { component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, http.method: POST, http.request.headers.host: localhost:00000, @@ -81,23 +760,17 @@ } }, { - TraceId: Id_1, - SpanId: Id_8, + TraceId: Id_36, + SpanId: Id_45, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + Resource: /WcfSample/?/CalculatorService, Service: Samples.Wcf, Type: web, - ParentId: Id_9, - Error: 1, + ParentId: Id_41, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResult), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -114,23 +787,28 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_10, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_36, + SpanId: Id_46, + Name: ServerEmptyActionAdd, + Resource: ServerEmptyActionAdd, + Service: Samples.Wcf, + ParentId: Id_45, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_48, + Name: Sync_ServerAsyncAdd, + Resource: Sync_ServerAsyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_11, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -141,23 +819,39 @@ at Samples.Wcf.Server.CalculatorService.EndServerAsyncAdd(IAsyncResult asyncResu } }, { - TraceId: Id_1, - SpanId: Id_12, + TraceId: Id_47, + SpanId: Id_49, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_48, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_47, + SpanId: Id_50, Name: http.server.request, Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_13, - Error: 1, + ParentId: Id_49, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, env: integration_tests, - error.msg: Something happened, - error.stack: -System.ServiceModel.FaultException: Something happened -at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2, Boolean throwsException, Boolean synchronouslyCompletes, AsyncCallback callback, Object state), - error.type: System.ServiceModel.FaultException, http.method: POST, http.request.headers.host: localhost:00000, http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, @@ -174,23 +868,41 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_14, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerAsyncAdd, + TraceId: Id_47, + SpanId: Id_51, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_47, + SpanId: Id_52, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_50, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_53, + SpanId: Id_54, + Name: Sync_ServerSyncAdd, + Resource: Sync_ServerSyncAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_15, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -201,13 +913,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_16, + TraceId: Id_53, + SpanId: Id_55, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_54, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_53, + SpanId: Id_56, Name: http.server.request, Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_17, + ParentId: Id_55, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -228,23 +962,28 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_18, - Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + TraceId: Id_53, + SpanId: Id_57, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_56, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_58, + SpanId: Id_59, + Name: Sync_ServerTaskAdd, + Resource: Sync_ServerTaskAdd, Service: Samples.Wcf, - Type: web, - ParentId: Id_19, Tags: { - component: Wcf, - custom-tag: DispatchMessageInspector, env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, language: dotnet, runtime-id: Guid_1, - span.kind: server, version: 1.0.0 }, Metrics: { @@ -255,13 +994,35 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_20, + TraceId: Id_58, + SpanId: Id_60, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_59, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_58, + SpanId: Id_61, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerSyncAdd, + Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_21, + ParentId: Id_60, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -282,13 +1043,67 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_22, + TraceId: Id_58, + SpanId: Id_62, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, + Service: Samples.Wcf, + ParentId: Id_61, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_64, + Name: Task_ServerAsyncAdd, + Resource: Task_ServerAsyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_65, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_64, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_63, + SpanId: Id_66, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerAsyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_23, + ParentId: Id_65, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -309,13 +1124,80 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_24, + TraceId: Id_63, + SpanId: Id_67, + Name: BeginServerAsyncAdd, + Resource: BeginServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_63, + SpanId: Id_68, + Name: EndServerAsyncAdd, + Resource: EndServerAsyncAdd, + Service: Samples.Wcf, + ParentId: Id_66, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_70, + Name: Task_ServerSyncAdd, + Resource: Task_ServerSyncAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_69, + SpanId: Id_71, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_70, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_69, + SpanId: Id_72, Name: http.server.request, - Resource: WcfSample/ICalculator/ServerTaskAdd, + Resource: WcfSample/ICalculator/ServerSyncAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_25, + ParentId: Id_71, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -336,13 +1218,67 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_26, + TraceId: Id_69, + SpanId: Id_73, + Name: ServerSyncAdd, + Resource: ServerSyncAdd, + Service: Samples.Wcf, + ParentId: Id_72, + Tags: { + env: integration_tests, + language: dotnet, + version: 1.0.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_75, + Name: Task_ServerTaskAdd, + Resource: Task_ServerTaskAdd, + Service: Samples.Wcf, + Tags: { + env: integration_tests, + language: dotnet, + runtime-id: Guid_1, + version: 1.0.0 + }, + Metrics: { + process_id: 0, + _dd.top_level: 1.0, + _dd.tracer_kr: 1.0, + _sampling_priority_v1: 1.0 + } + }, + { + TraceId: Id_74, + SpanId: Id_76, + Name: http.client.request, + Resource: POST localhost:00000/WcfSample/?/CalculatorService, + Service: Samples.Wcf, + Type: http, + ParentId: Id_75, + Tags: { + component: WebRequest, + env: integration_tests, + http.method: POST, + http.status_code: 200, + http.url: http://localhost:00000/WcfSample/123,123/CalculatorService, + language: dotnet, + out.host: localhost, + peer.service: localhost, + span.kind: client, + version: 1.0.0, + _dd.peer.service.source: out.host + } + }, + { + TraceId: Id_74, + SpanId: Id_77, Name: http.server.request, Resource: WcfSample/ICalculator/ServerTaskAdd, Service: Samples.Wcf, Type: web, - ParentId: Id_27, + ParentId: Id_76, Tags: { component: Wcf, custom-tag: DispatchMessageInspector, @@ -363,27 +1299,16 @@ at Samples.Wcf.Server.CalculatorService.BeginServerAsyncAdd(Double n1, Double n2 } }, { - TraceId: Id_1, - SpanId: Id_28, - Name: internal, - Resource: WebClient, + TraceId: Id_74, + SpanId: Id_78, + Name: ServerTaskAdd, + Resource: ServerTaskAdd, Service: Samples.Wcf, - Type: custom, + ParentId: Id_77, Tags: { env: integration_tests, language: dotnet, - otel.library.name: Samples.Wcf, - otel.status_code: STATUS_CODE_UNSET, - otel.trace_id: Guid_2, - runtime-id: Guid_1, - span.kind: internal, version: 1.0.0 - }, - Metrics: { - process_id: 0, - _dd.top_level: 1.0, - _dd.tracer_kr: 1.0, - _sampling_priority_v1: 1.0 } } ] \ No newline at end of file diff --git a/tracer/test/test-applications/integrations/Samples.Wcf/Client/Startup.cs b/tracer/test/test-applications/integrations/Samples.Wcf/Client/Startup.cs index ba2dc4cc7453..98802ffb8f2e 100644 --- a/tracer/test/test-applications/integrations/Samples.Wcf/Client/Startup.cs +++ b/tracer/test/test-applications/integrations/Samples.Wcf/Client/Startup.cs @@ -17,16 +17,12 @@ public static async Task InvokeCalculatorService(Binding binding, Uri baseAddres int exceptionsSeen = 0; using (var calculator = new CalculatorClient(binding, address)) { - using(var scope = _sampleHelpers.CreateScope("WebClient")) - { - calculator.DatadogScope = scope; - // Add the CustomEndpointBehavior / ClientMessageInspector to add headers on calls to the service - calculator.ChannelFactory.Endpoint.EndpointBehaviors.Add(new CustomEndpointBehavior()); + // Add the CustomEndpointBehavior / ClientMessageInspector to add headers on calls to the service + calculator.ChannelFactory.Endpoint.EndpointBehaviors.Add(new CustomEndpointBehavior()); - exceptionsSeen += await Invoke_ServerSyncAdd_Endpoints(calculator); - exceptionsSeen += await Invoke_ServerTaskAdd_Endpoints(calculator); - exceptionsSeen += await Invoke_ServerAsyncAdd_Endpoints(calculator); - } + exceptionsSeen += await Invoke_ServerSyncAdd_Endpoints(calculator); + exceptionsSeen += await Invoke_ServerTaskAdd_Endpoints(calculator); + exceptionsSeen += await Invoke_ServerAsyncAdd_Endpoints(calculator); } if (exceptionsSeen != expectedExceptionCount) @@ -57,6 +53,8 @@ private static async Task Invoke_ServerSyncAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("ServerEmptyActionAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerEmptyActionAdd(1, 2)"); double result = calculator.ServerEmptyActionAdd(1, 2); @@ -70,6 +68,8 @@ private static async Task Invoke_ServerSyncAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("Sync_ServerSyncAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Sync_ServerSyncAdd(1, 2)"); double result = calculator.Sync_ServerSyncAdd(1, 2); @@ -83,6 +83,8 @@ private static async Task Invoke_ServerSyncAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("BeginEnd_ServerSyncAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Begin_ServerSyncAdd(1, 2)"); IAsyncResult asyncResult = calculator.Begin_ServerSyncAdd(1, 2, null, null); @@ -98,6 +100,8 @@ private static async Task Invoke_ServerSyncAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("Task_ServerSyncAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Task_ServerSyncAdd(1, 2)"); double result = await calculator.Task_ServerSyncAdd(1, 2); @@ -130,6 +134,8 @@ private static async Task Invoke_ServerTaskAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("Sync_ServerTaskAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Sync_ServerTaskAdd(1, 2)"); double result = calculator.Sync_ServerTaskAdd(1, 2); @@ -143,6 +149,8 @@ private static async Task Invoke_ServerTaskAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("BeginEnd_ServerTaskAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Begin_ServerTaskAdd(1, 2)"); IAsyncResult asyncResult = calculator.Begin_ServerTaskAdd(1, 2, null, null); @@ -158,6 +166,8 @@ private static async Task Invoke_ServerTaskAdd_Endpoints(CalculatorClient c try { + using var scope = SampleHelpers.CreateScope("Task_ServerTaskAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Task_ServerTaskAdd(1, 2)"); double result = await calculator.Task_ServerTaskAdd(1, 2); @@ -189,6 +199,8 @@ private static async Task Invoke_ServerAsyncAdd_Endpoints(CalculatorClient try { + using var scope = SampleHelpers.CreateScope("Sync_ServerAsyncAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Sync_ServerAsyncAdd(1, 2, false, false)"); double result = calculator.Sync_ServerAsyncAdd(1, 2, false, false); @@ -202,6 +214,8 @@ private static async Task Invoke_ServerAsyncAdd_Endpoints(CalculatorClient try { + using var scope = SampleHelpers.CreateScope("Begin_ServerAsyncAdd_false_false"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Begin_ServerAsyncAdd(1, 2, false, false)"); IAsyncResult asyncResult = calculator.Begin_ServerAsyncAdd(1, 2, false, false, null, null); @@ -217,6 +231,8 @@ private static async Task Invoke_ServerAsyncAdd_Endpoints(CalculatorClient try { + using var scope = SampleHelpers.CreateScope("Begin_ServerAsyncAdd_true_false"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Begin_ServerAsyncAdd(1, 2, true, false)"); IAsyncResult asyncResult = calculator.Begin_ServerAsyncAdd(1, 2, true, false, null, null); @@ -232,6 +248,8 @@ private static async Task Invoke_ServerAsyncAdd_Endpoints(CalculatorClient try { + using var scope = SampleHelpers.CreateScope("Begin_ServerAsyncAdd_false_true"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Begin_ServerAsyncAdd(1, 2, false, true)"); IAsyncResult asyncResult = calculator.Begin_ServerAsyncAdd(1, 2, false, true, null, null); @@ -247,6 +265,8 @@ private static async Task Invoke_ServerAsyncAdd_Endpoints(CalculatorClient try { + using var scope = SampleHelpers.CreateScope("Begin_ServerAsyncAdd_true_true"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Begin_ServerAsyncAdd(1, 2, true, true)"); IAsyncResult asyncResult = calculator.Begin_ServerAsyncAdd(1, 2, true, true, null, null); @@ -262,6 +282,8 @@ private static async Task Invoke_ServerAsyncAdd_Endpoints(CalculatorClient try { + using var scope = SampleHelpers.CreateScope("Task_ServerAsyncAdd"); + calculator.DatadogScope = scope; Console.WriteLine(); LoggingHelper.WriteLineWithDate($"[Client] Invoke: Task_ServerAsyncAdd(1, 2, false, false)"); double result = await calculator.Task_ServerAsyncAdd(1, 2, false, false); diff --git a/tracer/test/test-applications/integrations/Samples.Wcf/Program.cs b/tracer/test/test-applications/integrations/Samples.Wcf/Program.cs index 3a4fa2e77d79..0e86ff1f3a37 100644 --- a/tracer/test/test-applications/integrations/Samples.Wcf/Program.cs +++ b/tracer/test/test-applications/integrations/Samples.Wcf/Program.cs @@ -119,32 +119,43 @@ private static async Task RunHttpServer(string[] args, string port) cf.Endpoint.EndpointBehaviors.Add(new CustomEndpointBehavior()); var sampleHelper = new ActivitySourceHelper("Samples.Wcf"); - using var scope = sampleHelper.CreateScope("WebClient"); var calculator = cf.CreateChannel(); - Console.WriteLine(); - LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerSyncAddJson(1, 2)"); - var result = calculator.ServerSyncAddJson("1", "2"); - AssertResult(result); - LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); - - Console.WriteLine(); - LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerSyncAddXml(1, 2)"); - result = calculator.ServerSyncAddXml("1", "2"); - AssertResult(result); - LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); - - Console.WriteLine(); - LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerTaskAddPost(1, 2)"); - result = await calculator.ServerTaskAddPost(new() { Arg1 = 1, Arg2 = 2 }); - AssertResult(result); - LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); - - Console.WriteLine(); - LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerSyncAddWrapped(1, 2)"); - result = calculator.ServerSyncAddWrapped("1", "2"); - AssertResult(result); - LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); + using (sampleHelper.CreateScope("ServerSyncAddJson")) + { + Console.WriteLine(); + LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerSyncAddJson(1, 2)"); + var result = calculator.ServerSyncAddJson("1", "2"); + AssertResult(result); + LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); + } + + using (sampleHelper.CreateScope("ServerSyncAddXml")) + { + Console.WriteLine(); + LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerSyncAddXml(1, 2)"); + var result = calculator.ServerSyncAddXml("1", "2"); + AssertResult(result); + LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); + } + + using (sampleHelper.CreateScope("ServerTaskAddPost")) + { + Console.WriteLine(); + LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerTaskAddPost(1, 2)"); + var result = await calculator.ServerTaskAddPost(new() { Arg1 = 1, Arg2 = 2 }); + AssertResult(result); + LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); + } + + using (sampleHelper.CreateScope("ServerSyncAddWrapped")) + { + Console.WriteLine(); + LoggingHelper.WriteLineWithDate($"[Client] Invoke: ServerSyncAddWrapped(1, 2)"); + var result = calculator.ServerSyncAddWrapped("1", "2"); + AssertResult(result); + LoggingHelper.WriteLineWithDate($"[Client] Result: {result}"); + } } private static void AssertResult(double result) diff --git a/tracer/test/test-applications/integrations/Samples.Wcf/Server/CalculatorService.cs b/tracer/test/test-applications/integrations/Samples.Wcf/Server/CalculatorService.cs index abf580ca261d..811fccb0bbd9 100644 --- a/tracer/test/test-applications/integrations/Samples.Wcf/Server/CalculatorService.cs +++ b/tracer/test/test-applications/integrations/Samples.Wcf/Server/CalculatorService.cs @@ -10,6 +10,7 @@ public class CalculatorService : ICalculator public double ServerSyncAdd(double n1, double n2) { LoggingHelper.WriteLineWithDate($"[Server] Received ServerSyncAdd({n1},{n2})"); + using var scope = SampleHelpers.CreateScope("ServerSyncAdd"); Thread.Sleep(1); @@ -22,6 +23,7 @@ public double ServerSyncAdd(double n1, double n2) public async Task ServerTaskAdd(double n1, double n2) { LoggingHelper.WriteLineWithDate($"[Server] Received ServerTaskAdd({n1},{n2})"); + using var scope = SampleHelpers.CreateScope("ServerTaskAdd"); double result = await PerformAddWithDelay(n1, n2); LoggingHelper.WriteLineWithDate($"[Server] Return: {result}"); return result; @@ -30,6 +32,7 @@ public async Task ServerTaskAdd(double n1, double n2) public IAsyncResult BeginServerAsyncAdd(double n1, double n2, bool throwsException, bool synchronouslyCompletes, AsyncCallback callback, object state) { LoggingHelper.WriteLineWithDate($"[Server] Received BeginServerAsyncAdd({n1},{n2},{throwsException},{synchronouslyCompletes})"); + using var scope = SampleHelpers.CreateScope("BeginServerAsyncAdd"); Thread.Sleep(1); @@ -62,6 +65,7 @@ public IAsyncResult BeginServerAsyncAdd(double n1, double n2, bool throwsExcepti public double EndServerAsyncAdd(IAsyncResult asyncResult) { LoggingHelper.WriteLineWithDate("[Server] Received EndServerAsyncAdd(asyncResult)"); + using var scope = SampleHelpers.CreateScope("EndServerAsyncAdd"); LoggingHelper.WriteLineWithDate($"[Server] Return: {asyncResult}"); Thread.Sleep(1); @@ -85,6 +89,8 @@ private async Task PerformAddWithDelay(double n1, double n2) public double ServerEmptyActionAdd(double n1, double n2) { LoggingHelper.WriteLineWithDate($"[Server] Received ServerEmptyActionAdd({n1}, {n2})"); + using var scope = SampleHelpers.CreateScope("ServerEmptyActionAdd"); + double result = n1 + n2; Thread.Sleep(1); diff --git a/tracer/test/test-applications/integrations/Samples.Wcf/Server/HttpCalculator.cs b/tracer/test/test-applications/integrations/Samples.Wcf/Server/HttpCalculator.cs index 170ecbbd3521..10c6a76d4068 100644 --- a/tracer/test/test-applications/integrations/Samples.Wcf/Server/HttpCalculator.cs +++ b/tracer/test/test-applications/integrations/Samples.Wcf/Server/HttpCalculator.cs @@ -20,6 +20,7 @@ public async Task ServerTaskAddPost(CalculatorArguments arguments) private static double GetResult(string n1, string n2, [CallerMemberName] string member = null) { LoggingHelper.WriteLineWithDate($"[Server] Received {member}({n1},{n2})"); + using var scope = SampleHelpers.CreateScope(member); var result = double.Parse(n1) + double.Parse(n2); LoggingHelper.WriteLineWithDate($"[Server] Return {member}: {result}");