diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/HotChocolateTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/HotChocolateTests.cs index c7d22e856c14..9a6d5261dfe2 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/HotChocolateTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/HotChocolateTests.cs @@ -188,16 +188,11 @@ private string GetSuffix(string packageVersion) { // An empty package version means we're in the sample, // which targets the latest version of the package. - if (string.IsNullOrEmpty(packageVersion) || new Version(packageVersion) >= new Version("14.0.0")) + if (string.IsNullOrEmpty(packageVersion) || new Version(packageVersion) >= new Version("13.1.0")) { return string.Empty; } - if (new Version(packageVersion) >= new Version("13.1.0")) - { - return ".Pre_14_0_0"; - } - return ".Pre_13_1_0"; } } diff --git a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt b/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt index c57818c20712..49139472cd05 100644 --- a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt +++ b/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt @@ -246,7 +246,7 @@ mutation m { TraceId: Id_8, SpanId: Id_14, Name: graphql.execute, - Resource: Uncompleted operation, + Resource: Query ErrorQuery, Service: Samples.HotChocolate-graphql, Type: graphql, ParentId: Id_9, @@ -304,19 +304,22 @@ errors: [ error.stack: errors: [ { -"message": "The specified root type `Subscription` is not supported by this server.", +"message": "Unexpected Execution Error", "locations": [ +{ +"line": 1, +"column": 18 +}, ] }, ] , error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, + graphql.operation.name: ErrorQuery, + graphql.operation.type: Query, graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } +query ErrorQuery { + throwException }, language: dotnet, runtime-id: Guid_1, diff --git a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_14_0_0.verified.txt b/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_14_0_0.verified.txt deleted file mode 100644 index 6dcb196c0952..000000000000 --- a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV0.Pre_14_0_0.verified.txt +++ /dev/null @@ -1,328 +0,0 @@ -[ - { - TraceId: Id_1, - SpanId: Id_2, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 200, - http.url: http://localhost:00000/graphql?query=query%7Bbook%7Btitle+author%7Bname%7D%7D%7D, - http.useragent: testhelper, - 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_3, - Name: graphql.execute, - Resource: Query operation, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_2, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.type: Query, - graphql.source: -{ - book { - title - author { - name - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_4, - SpanId: Id_5, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 200, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_7, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 200, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_8, - SpanId: Id_9, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 400, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_10, - SpanId: Id_11, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 400, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_4, - SpanId: Id_12, - Name: graphql.execute, - Resource: Query Book, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_5, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: Book, - graphql.operation.type: Query, - graphql.source: -query Book { - book { - title - author { - name - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_6, - SpanId: Id_13, - Name: graphql.execute, - Resource: Mutation m, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_7, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: m, - graphql.operation.type: Mutation, - graphql.source: -mutation m { - addBook(book: { title: "New Book" }) { - book { - title - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_8, - SpanId: Id_14, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_9, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The field `boook` does not exist on the type `Query`.", -"locations": [ -{ -"line": 1, -"column": 2 -}, -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -{ - boook { - title - author { - name - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_10, - SpanId: Id_15, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_11, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The specified root type `Subscription` is not supported by this server.", -"locations": [ -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - } -] \ No newline at end of file diff --git a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt b/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt index d5f315c38b91..7c9881bf6a4a 100644 --- a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt +++ b/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt @@ -276,7 +276,7 @@ errors: [ TraceId: Id_10, SpanId: Id_15, Name: graphql.execute, - Resource: Uncompleted operation, + Resource: Query ErrorQuery, Service: Samples.HotChocolate, Type: graphql, ParentId: Id_11, @@ -288,19 +288,22 @@ errors: [ error.stack: errors: [ { -"message": "The specified root type `Subscription` is not supported by this server.", +"message": "Unexpected Execution Error", "locations": [ +{ +"line": 1, +"column": 18 +}, ] }, ] , error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, + graphql.operation.name: ErrorQuery, + graphql.operation.type: Query, graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } +query ErrorQuery { + throwException }, language: dotnet, span.kind: server, diff --git a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_14_0_0.verified.txt b/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_14_0_0.verified.txt deleted file mode 100644 index 848394146b28..000000000000 --- a/tracer/test/snapshots/HotChocolateTests.SubmitsTraces.SchemaV1.Pre_14_0_0.verified.txt +++ /dev/null @@ -1,308 +0,0 @@ -[ - { - TraceId: Id_1, - SpanId: Id_2, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 200, - http.url: http://localhost:00000/graphql?query=query%7Bbook%7Btitle+author%7Bname%7D%7D%7D, - http.useragent: testhelper, - 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_3, - Name: graphql.execute, - Resource: Query operation, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_2, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.type: Query, - graphql.source: -{ - book { - title - author { - name - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_4, - SpanId: Id_5, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 200, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_7, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 200, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_8, - SpanId: Id_9, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 400, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_10, - SpanId: Id_11, - Name: aspnet_core.request, - Resource: POST /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: POST, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 400, - http.url: http://localhost:00000/graphql, - http.useragent: testhelper, - 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_4, - SpanId: Id_12, - Name: graphql.execute, - Resource: Query Book, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_5, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: Book, - graphql.operation.type: Query, - graphql.source: -query Book { - book { - title - author { - name - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_6, - SpanId: Id_13, - Name: graphql.execute, - Resource: Mutation m, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_7, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: m, - graphql.operation.type: Mutation, - graphql.source: -mutation m { - addBook(book: { title: "New Book" }) { - book { - title - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_8, - SpanId: Id_14, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_9, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The field `boook` does not exist on the type `Query`.", -"locations": [ -{ -"line": 1, -"column": 2 -}, -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -{ - boook { - title - author { - name - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_10, - SpanId: Id_15, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_11, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The specified root type `Subscription` is not supported by this server.", -"locations": [ -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - } -] \ No newline at end of file diff --git a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt b/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt index d47ae5bc3947..25f66eac4ac3 100644 --- a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt +++ b/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_13_1_0.verified.txt @@ -180,7 +180,7 @@ mutation m { TraceId: Id_5, SpanId: Id_11, Name: graphql.execute, - Resource: Uncompleted operation, + Resource: Query ErrorQuery, Service: Samples.HotChocolate-graphql, Type: graphql, ParentId: Id_6, @@ -192,19 +192,22 @@ mutation m { error.stack: errors: [ { -"message": "The specified root type `Subscription` is not supported by this server.", +"message": "Unexpected Execution Error", "locations": [ +{ +"line": 1, +"column": 18 +}, ] }, ] , error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, + graphql.operation.name: ErrorQuery, + graphql.operation.type: Query, graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } +query ErrorQuery { + throwException }, language: dotnet, runtime-id: Guid_1, diff --git a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_14_0_0.verified.txt b/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_14_0_0.verified.txt deleted file mode 100644 index d47ae5bc3947..000000000000 --- a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV0.Pre_14_0_0.verified.txt +++ /dev/null @@ -1,264 +0,0 @@ -[ - { - TraceId: Id_1, - SpanId: Id_2, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_3, - SpanId: Id_4, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_5, - SpanId: Id_6, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_8, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_9, - Name: graphql.execute, - Resource: Query Book, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_2, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: Book, - graphql.operation.type: Query, - graphql.source: -query Book { - book { - title - author { - name - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_3, - SpanId: Id_10, - Name: graphql.execute, - Resource: Mutation m, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_4, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: m, - graphql.operation.type: Mutation, - graphql.source: -mutation m { - addBook(book: { title: "New Book" }) { - book { - title - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_5, - SpanId: Id_11, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_6, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The specified root type `Subscription` is not supported by this server.", -"locations": [ -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - }, - { - TraceId: Id_7, - SpanId: Id_12, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate-graphql, - Type: graphql, - ParentId: Id_8, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The field `boook` does not exist on the type `Query`.", -"locations": [ -{ -"line": 1, -"column": 2 -}, -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -{ - boook { - title - author { - name - } - } -}, - language: dotnet, - runtime-id: Guid_1, - span.kind: server, - _dd.base_service: Samples.HotChocolate - }, - Metrics: { - _dd.top_level: 1.0 - } - } -] \ No newline at end of file diff --git a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt b/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt index 042ff78f9e75..70d19553f853 100644 --- a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt +++ b/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_13_1_0.verified.txt @@ -172,7 +172,7 @@ mutation m { TraceId: Id_5, SpanId: Id_11, Name: graphql.execute, - Resource: Uncompleted operation, + Resource: Query ErrorQuery, Service: Samples.HotChocolate, Type: graphql, ParentId: Id_6, @@ -184,19 +184,22 @@ mutation m { error.stack: errors: [ { -"message": "The specified root type `Subscription` is not supported by this server.", +"message": "Unexpected Execution Error", "locations": [ +{ +"line": 1, +"column": 18 +}, ] }, ] , error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, + graphql.operation.name: ErrorQuery, + graphql.operation.type: Query, graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } +query ErrorQuery { + throwException }, language: dotnet, span.kind: server, diff --git a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_14_0_0.verified.txt b/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_14_0_0.verified.txt deleted file mode 100644 index 042ff78f9e75..000000000000 --- a/tracer/test/snapshots/HotChocolateTestsWebsockets.SubmitsTraces.SchemaV1.Pre_14_0_0.verified.txt +++ /dev/null @@ -1,248 +0,0 @@ -[ - { - TraceId: Id_1, - SpanId: Id_2, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_3, - SpanId: Id_4, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_5, - SpanId: Id_6, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_8, - Name: aspnet_core.request, - Resource: GET /graphql/{*slug}, - Service: Samples.HotChocolate, - Type: web, - Tags: { - aspnet_core.endpoint: Hot Chocolate GraphQL Pipeline, - aspnet_core.route: /graphql/{**slug}, - component: aspnet_core, - env: integration_tests, - http.method: GET, - http.request.headers.host: localhost:00000, - http.route: /graphql/{**slug}, - http.status_code: 101, - http.url: http://localhost:00000/graphql, - 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_9, - Name: graphql.execute, - Resource: Query Book, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_2, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: Book, - graphql.operation.type: Query, - graphql.source: -query Book { - book { - title - author { - name - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_3, - SpanId: Id_10, - Name: graphql.execute, - Resource: Mutation m, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_4, - Tags: { - component: HotChocolate, - env: integration_tests, - graphql.operation.name: m, - graphql.operation.type: Mutation, - graphql.source: -mutation m { - addBook(book: { title: "New Book" }) { - book { - title - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_5, - SpanId: Id_11, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_6, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The specified root type `Subscription` is not supported by this server.", -"locations": [ -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -subscription NotImplementedSub { - throwNotImplementedException { - name - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - }, - { - TraceId: Id_7, - SpanId: Id_12, - Name: graphql.execute, - Resource: Uncompleted operation, - Service: Samples.HotChocolate, - Type: graphql, - ParentId: Id_8, - Error: 1, - Tags: { - component: HotChocolate, - env: integration_tests, - error.msg: 1 error(s), - error.stack: -errors: [ -{ -"message": "The field `boook` does not exist on the type `Query`.", -"locations": [ -{ -"line": 1, -"column": 2 -}, -] -}, -] -, - error.type: HotChocolate.Error, - graphql.operation.type: Uncompleted, - graphql.source: -{ - boook { - title - author { - name - } - } -}, - language: dotnet, - span.kind: server, - version: 1.0.0 - } - } -] \ No newline at end of file