Skip to content

feat(otel): Add opt-in OpenTelemetry Semantics mode to improve OTLP trace compatibility#8796

Merged
zacharycmontoya merged 23 commits into
masterfrom
zach.montoya/otel-compatibility-http-statuscode
Jul 14, 2026
Merged

feat(otel): Add opt-in OpenTelemetry Semantics mode to improve OTLP trace compatibility#8796
zacharycmontoya merged 23 commits into
masterfrom
zach.montoya/otel-compatibility-http-statuscode

Conversation

@zacharycmontoya

@zacharycmontoya zacharycmontoya commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Adds an opt-in OpenTelemetry semantics mode for OTLP trace export.

This feature is enabled by setting DD_TRACE_OTEL_SEMANTICS_ENABLED=true, which was previously introduced in #8826. When enabled, spans produced from OpenTelemetry instrumentation are serialized closer to native OpenTelemetry SDK output by preserving OTel attribute keys and value types, and by suppressing Datadog-specific attributes from OTLP trace payloads.

Reason for change

We should support scenarios where customers use the Datadog SDK but want their emitted OTLP data to look as close as possible to data produced by the OpenTelemetry SDK. This helps users route Datadog-instrumented applications through OTel collectors or other OTLP consumers without the payload including Datadog-specific span attributes that are not part of the OpenTelemetry semantic conventions.

Implementation details

Refactors

  • Refactors the existing SetExceptionTags flow into SetException(exception, markAsError) so callers can add exception metadata without forcing the span error flag.

Instrumentation changes:

  • Propagates the setting to OtlpHelpers so, when enabled, the Activity-to-span conversion does not do any attribute remapping or special handling for Datadog-specific attributes, preserving the original attribute keys and values on the OTLP span.
    • This also stops us from adding deprecated attributes such as otel.trace_id, otel.library.name, otel.library.version, and otel.status_code to match newer OTel SDK behaviors.

Span changes:

  • Propagates the setting into a Span field so, when enabled, exceptions are recorded as the OpenTelemetry exception span event with exception.type, exception.message, and exception.stacktrace attributes instead of Datadog error tags.

OTLP Exporter changes

  • Updates OtlpMapper.EmitAttributesFromSpan so OTel semantics mode suppresses Datadog-specific or compatibility-only span attributes, including service.name, operation.name, resource.name, span.type, component, span.kind, service.version, service.instance.id, otel.status_code, and http-client-handler-type.

Test changes

  • Stabilizes the OTLP trace integration test by polling the test agent for trace data after sample shutdown.

Test coverage

  • Adds unit coverage for OtlpMapper to assert Datadog attributes are emitted by default and suppressed when OTel semantics mode is enabled.
  • Adds unit coverage for preserving http.status_code and http.response.status_code as OTel attributes when OTel semantics mode is enabled.
  • Adds unit coverage for the new Span.SetException behavior, including exception span event creation under OTel semantics mode.
  • Updates OTLP serializer tests for the new serializer configuration path.
  • Expands OpenTelemetrySdkTests.SubmitsOtlpTraces to run with DD_TRACE_OTEL_SEMANTICS_ENABLED enabled and disabled for both http/json and http/protobuf, adding a new OpenTelemetrySdkTests.SubmitsOtlpTraces_DD_OtelSemantics.verified.txt snapshot file.
  • Miscellaneous: Updates out-of-date OpenTelemetrySdkTests snapshot files with the JSON/Protobuf normalizations

Other details

N/A

@github-actions

Copy link
Copy Markdown
Contributor

Snapshots difference summary

The following differences have been observed in committed snapshots. It is meant to help the reviewer.
The diff is simplistic, so please check some files anyway while we improve it.

2 occurrences of :

-    "resource_spans": [
+    "resourceSpans": [
[...]
-                "string_value": "MyServiceName"
+                "stringValue": "MyServiceName"
[...]
-                "string_value": "1.0.x"
+                "stringValue": "1.0.x"
[...]
-                "string_value": "Guid_1"
+                "stringValue": "Guid_1"
[...]
-                "string_value": "sdk-name"
+                "stringValue": "sdk-name"
[...]
-                "string_value": "dotnet"
+                "stringValue": "dotnet"
[...]
-                "string_value": "sdk-version"
+                "stringValue": "sdk-version"
[...]
-        "scope_spans": [
+        "scopeSpans": [
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "int_value": "404"
+                      "intValue": "404"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                  "code": "STATUS_CODE_ERROR"
+                  "code": 2
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                  "code": "STATUS_CODE_OK"
+                  "code": 1
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "time_unix_nano": "0",
+                    "timeUnixNano": "0",
[...]
-                          "string_value": "ArgumentException"
+                          "stringValue": "ArgumentException"
[...]
-                          "string_value": "System.ArgumentException: Example argument exception"
+                          "stringValue": "System.ArgumentException: Example argument exception"
[...]
-                          "string_value": "Example argument exception"
+                          "stringValue": "Example argument exception"

1 occurrences of :

-                  "code": "STATUS_CODE_ERROR"
+                  "code": 2
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Redis"
+                      "stringValue": "Redis"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_PRODUCER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 4,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CONSUMER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 5,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "aws-api"
+                      "stringValue": "aws-api"
[...]
-                      "string_value": "S3"
+                      "stringValue": "S3"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "aws-api"
+                      "stringValue": "aws-api"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GRPC"
+                      "stringValue": "GRPC"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GRPC"
+                      "stringValue": "GRPC"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "aws"
+                      "stringValue": "aws"
[...]
-                      "string_value": "My-Function"
+                      "stringValue": "My-Function"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Datasource"
+                      "stringValue": "Datasource"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "query"
+                      "stringValue": "query"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Amqp"
+                      "stringValue": "Amqp"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Amqp"
+                      "stringValue": "Amqp"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CONSUMER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 5,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_PRODUCER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 4,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Saying hello!"
+                      "stringValue": "Saying hello!"
[...]
-                      "string_value": "\"str"
+                      "stringValue": "\"str"
[...]
-                      "int_value": "1"
+                      "intValue": "1"
[...]
-                      "bool_value": true
+                      "boolValue": true
[...]
-                      "double_value": 2.0
+                      "doubleValue": 2.0
[...]
-                      "array_value": {
+                      "arrayValue": {
[...]
-                            "string_value": "\"str1\""
+                            "stringValue": "\"str1\""
[...]
-                            "string_value": "str2"
+                            "stringValue": "str2"
[...]
-                            "string_value": "str3"
+                            "stringValue": "str3"

3 occurrences of :

-                      "array_value": {}
+                      "arrayValue": {}
[...]
-                      "array_value": {
+                      "arrayValue": {
[...]
-                            "int_value": "1"
+                            "intValue": "1"
[...]
-                            "int_value": "2"
+                            "intValue": "2"
[...]
-                            "int_value": "3"
+                            "intValue": "3"

3 occurrences of :

-                      "array_value": {}
+                      "arrayValue": {}
[...]
-                      "array_value": {
+                      "arrayValue": {
[...]
-                            "bool_value": false
+                            "boolValue": false
[...]
-                            "bool_value": true
+                            "boolValue": true
[...]
-                            "bool_value": false
+                            "boolValue": false

3 occurrences of :

-                      "array_value": {}
+                      "arrayValue": {}
[...]
-                      "array_value": {
+                      "arrayValue": {
[...]
-                            "double_value": 4.1
+                            "doubleValue": 4.1
[...]
-                            "double_value": 5.0
+                            "doubleValue": 5.0
[...]
-                            "double_value": 6.0
+                            "doubleValue": 6.0

3 occurrences of :

-                      "array_value": {}
+                      "arrayValue": {}
[...]
-                    "time_unix_nano": "0",
+                    "timeUnixNano": "0",
[...]
+                    "timeUnixNano": "0",
[...]
-                    "time_unix_nano": "0",
+                    "timeUnixNano": "0",
[...]
-                          "int_value": "1"
+                          "intValue": "1"
[...]
-                          "string_value": "Hello, World!"
+                          "stringValue": "Hello, World!"
[...]
-                          "array_value": {
+                          "arrayValue": {
[...]
-                                "int_value": "1"
+                                "intValue": "1"
[...]
-                                "int_value": "2"
+                                "intValue": "2"
[...]
-                                "int_value": "3"
+                                "intValue": "3"

6 occurrences of :

-                          "array_value": {
+                          "arrayValue": {
[...]
-                                "string_value": "str"
+                                "stringValue": "str"
[...]
-                                "string_value": "1"
+                                "stringValue": "1"

2 occurrences of :

-                          "array_value": {
+                          "arrayValue": {
[...]
-                                "string_value": "str"
+                                "stringValue": "str"
[...]
-                                "int_value": "2"
+                                "intValue": "2"

6 occurrences of :

-                          "array_value": {
+                          "arrayValue": {
[...]
-                                "string_value": "System.String[]"
+                                "stringValue": "System.String[]"
[...]
-                                "string_value": "System.String[]"
+                                "stringValue": "System.String[]"

3 occurrences of :

-                          "string_value": "System.Collections.Generic.Dictionary`2[System.String,System.String]"
+                          "stringValue": "System.Collections.Generic.Dictionary`2[System.String,System.String]"
[...]
-                    "time_unix_nano": "0",
+                    "timeUnixNano": "0",
[...]
-                          "int_value": "1"
+                          "intValue": "1"
[...]
-                          "string_value": "Hello, World!"
+                          "stringValue": "Hello, World!"
[...]
-                          "array_value": {
+                          "arrayValue": {
[...]
-                                "int_value": "1"
+                                "intValue": "1"
[...]
-                                "int_value": "2"
+                                "intValue": "2"
[...]
-                                "int_value": "3"
+                                "intValue": "3"

3 occurrences of :

-                          "string_value": "System.Collections.Generic.Dictionary`2[System.String,System.String]"
+                          "stringValue": "System.Collections.Generic.Dictionary`2[System.String,System.String]"

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id",
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id",

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id",
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id",
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "int_value": "404"
+                      "intValue": "404"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                      "string_value": "ResourceNameOverride"
+                      "stringValue": "ResourceNameOverride"
[...]
-                      "string_value": "OperationNameOverride"
+                      "stringValue": "OperationNameOverride"
[...]
-                      "string_value": "ServiceNameOverride"
+                      "stringValue": "ServiceNameOverride"
[...]
-                      "string_value": "SpanTypeOverride"
+                      "stringValue": "SpanTypeOverride"
[...]
-                      "string_value": "true"
+                      "stringValue": "true"

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",

1 occurrences of :

-    "resource_spans": [
+    "resourceSpans": [
[...]
-                "string_value": "sdk-name"
+                "stringValue": "sdk-name"
[...]
-                "string_value": "dotnet"
+                "stringValue": "dotnet"
[...]
-                "string_value": "sdk-version"
+                "stringValue": "sdk-version"
[...]
-                "string_value": "unknown_service:dotnet"
+                "stringValue": "unknown_service:dotnet"
[...]
-        "scope_spans": [
+        "scopeSpans": [
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",

1 occurrences of :

-    "resource_spans": [
+    "resourceSpans": [
[...]
-                "string_value": "MyServiceName"
+                "stringValue": "MyServiceName"
[...]
-                "string_value": "1.0.x"
+                "stringValue": "1.0.x"
[...]
-                "string_value": "Guid_1"
+                "stringValue": "Guid_1"
[...]
-        "scope_spans": [
+        "scopeSpans": [
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "int_value": "404"
+                      "intValue": "404"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                  "code": "STATUS_CODE_ERROR"
+                  "code": 2
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                  "code": "STATUS_CODE_OK"
+                  "code": 1
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "time_unix_nano": "0",
+                    "timeUnixNano": "0",
[...]
-                          "string_value": "ArgumentException"
+                          "stringValue": "ArgumentException"
[...]
-                          "string_value": "System.ArgumentException: Example argument exception"
+                          "stringValue": "System.ArgumentException: Example argument exception"
[...]
-                          "string_value": "Example argument exception"
+                          "stringValue": "Example argument exception"

2 occurrences of :

-                  "code": "STATUS_CODE_ERROR"
+                  "code": 2
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Redis"
+                      "stringValue": "Redis"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_PRODUCER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 4,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CONSUMER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 5,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Kafka"
+                      "stringValue": "Kafka"
[...]
-                      "string_value": "Receive"
+                      "stringValue": "Receive"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "aws-api"
+                      "stringValue": "aws-api"
[...]
-                      "string_value": "S3"
+                      "stringValue": "S3"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "aws-api"
+                      "stringValue": "aws-api"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GRPC"
+                      "stringValue": "GRPC"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GRPC"
+                      "stringValue": "GRPC"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "aws"
+                      "stringValue": "aws"
[...]
-                      "string_value": "My-Function"
+                      "stringValue": "My-Function"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Datasource"
+                      "stringValue": "Datasource"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "query"
+                      "stringValue": "query"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Amqp"
+                      "stringValue": "Amqp"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Amqp"
+                      "stringValue": "Amqp"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CLIENT",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 3,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_CONSUMER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 5,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_PRODUCER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 4,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "Saying hello!"
+                      "stringValue": "Saying hello!"
[...]
-                      "string_value": "\"str"
+                      "stringValue": "\"str"
[...]
-                      "int_value": "1"
+                      "intValue": "1"
[...]
-                      "bool_value": true
+                      "boolValue": true
[...]
-                      "double_value": 2.0
+                      "doubleValue": 2.0
[...]
-                      "array_value": {
+                      "arrayValue": {
[...]
-                            "string_value": "\"str1\""
+                            "stringValue": "\"str1\""
[...]
-                            "string_value": "str2"
+                            "stringValue": "str2"
[...]
-                            "string_value": "str3"
+                            "stringValue": "str3"

4 occurrences of :

-                          "array_value": {
+                          "arrayValue": {
[...]
-                                "string_value": "str"
+                                "stringValue": "str"
[...]
-                                "string_value": "2"
+                                "stringValue": "2"

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id"
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id"
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id"
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id"
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "int_value": "404"
+                      "intValue": "404"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                      "string_value": "ResourceNameOverride"
+                      "stringValue": "ResourceNameOverride"
[...]
-                      "string_value": "OperationNameOverride"
+                      "stringValue": "OperationNameOverride"
[...]
-                      "string_value": "ServiceNameOverride"
+                      "stringValue": "ServiceNameOverride"
[...]
-                      "string_value": "SpanTypeOverride"
+                      "stringValue": "SpanTypeOverride"
[...]
-                      "string_value": "true"
+                      "stringValue": "true"

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"

1 occurrences of :

-    "resource_spans": [
+    "resourceSpans": [
[...]
-                "string_value": "unknown_service:dotnet"
+                "stringValue": "unknown_service:dotnet"
[...]
-        "scope_spans": [
+        "scopeSpans": [
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id"
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id"
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id"
[...]
-                    "trace_id": "normalized-trace-id",
-                    "span_id": "normalized-span-id"
+                    "traceId": "normalized-trace-id",
+                    "spanId": "normalized-span-id"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "int_value": "404"
+                      "intValue": "404"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
-                "parent_span_id": "normalized-parent-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_SERVER",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0",
+                "kind": 2,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0",
[...]
-                      "string_value": "GET"
+                      "stringValue": "GET"
[...]
-                      "string_value": "ResourceNameOverride"
+                      "stringValue": "ResourceNameOverride"
[...]
-                      "string_value": "OperationNameOverride"
+                      "stringValue": "OperationNameOverride"
[...]
-                      "string_value": "ServiceNameOverride"
+                      "stringValue": "ServiceNameOverride"
[...]
-                      "string_value": "SpanTypeOverride"
+                      "stringValue": "SpanTypeOverride"
[...]
-                      "string_value": "true"
+                      "stringValue": "true"

1 occurrences of :

-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "parent_span_id": "normalized-parent-span-id",
+                "parentSpanId": "normalized-parent-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"

1 occurrences of :

-    "resource_spans": [
+    "resourceSpans": [
[...]
-                "string_value": "sdk-name"
+                "stringValue": "sdk-name"
[...]
-                "string_value": "dotnet"
+                "stringValue": "dotnet"
[...]
-                "string_value": "sdk-version"
+                "stringValue": "sdk-version"
[...]
-                "string_value": "unknown_service:dotnet"
+                "stringValue": "unknown_service:dotnet"
[...]
-        "scope_spans": [
+        "scopeSpans": [
[...]
-                "trace_id": "normalized-trace-id",
-                "span_id": "normalized-span-id",
+                "traceId": "normalized-trace-id",
+                "spanId": "normalized-span-id",
[...]
-                "kind": "SPAN_KIND_INTERNAL",
-                "start_time_unix_nano": "0",
-                "end_time_unix_nano": "0"
+                "kind": 1,
+                "startTimeUnixNano": "0",
+                "endTimeUnixNano": "0"

@datadog-datadog-prod-us1-2

This comment has been minimized.

@zacharycmontoya
zacharycmontoya force-pushed the zach.montoya/otel-compatibility-http-statuscode branch from 853ae26 to 7aede3f Compare June 16, 2026 23:03
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8796) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration71.39 ± (71.39 - 71.82) ms71.59 ± (71.79 - 72.38) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration77.84 ± (77.63 - 77.99) ms77.46 ± (77.30 - 77.77) ms-0.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1092.70 ± (1090.22 - 1096.42) ms1083.60 ± (1083.49 - 1089.99) ms-0.8%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.39 ± (22.35 - 22.44) ms22.33 ± (22.29 - 22.38) ms-0.3%
process.time_to_main_ms83.55 ± (83.28 - 83.81) ms83.71 ± (83.38 - 84.03) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.99 ± (10.99 - 10.99) MB11.01 ± (11.01 - 11.02) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.29 ± (22.25 - 22.33) ms22.26 ± (22.21 - 22.31) ms-0.2%
process.time_to_main_ms83.54 ± (83.32 - 83.77) ms83.80 ± (83.52 - 84.07) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.05 ± (11.04 - 11.05) MB11.05 ± (11.04 - 11.05) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms209.53 ± (208.50 - 210.57) ms209.87 ± (209.05 - 210.69) ms+0.2%✅⬆️
process.time_to_main_ms536.67 ± (535.48 - 537.87) ms538.14 ± (536.61 - 539.66) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.59 ± (49.56 - 49.62) MB49.53 ± (49.50 - 49.56) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.12 ± (21.07 - 21.16) ms20.78 ± (20.75 - 20.81) ms-1.6%
process.time_to_main_ms72.91 ± (72.66 - 73.15) ms70.53 ± (70.38 - 70.69) ms-3.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.71 - 10.72) MB10.73 ± (10.73 - 10.73) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.86 ± (20.83 - 20.89) ms20.60 ± (20.58 - 20.63) ms-1.2%
process.time_to_main_ms72.19 ± (72.04 - 72.34) ms71.28 ± (71.18 - 71.38) ms-1.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.83 ± (10.83 - 10.83) MB10.85 ± (10.84 - 10.85) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms369.39 ± (366.78 - 372.01) ms371.67 ± (369.71 - 373.63) ms+0.6%✅⬆️
process.time_to_main_ms544.90 ± (543.49 - 546.31) ms542.93 ± (541.89 - 543.97) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.58 ± (50.56 - 50.60) MB50.53 ± (50.51 - 50.55) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.15 ± (19.12 - 19.18) ms19.41 ± (19.37 - 19.45) ms+1.3%✅⬆️
process.time_to_main_ms70.08 ± (69.95 - 70.20) ms72.44 ± (72.19 - 72.68) ms+3.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.75 - 7.77) MB7.76 ± (7.75 - 7.77) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.27 ± (19.24 - 19.30) ms19.21 ± (19.17 - 19.24) ms-0.3%
process.time_to_main_ms73.12 ± (72.91 - 73.33) ms72.36 ± (72.12 - 72.60) ms-1.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.82 ± (7.81 - 7.82) MB7.81 ± (7.80 - 7.81) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms295.11 ± (292.80 - 297.42) ms300.35 ± (298.12 - 302.58) ms+1.8%✅⬆️
process.time_to_main_ms488.61 ± (487.44 - 489.77) ms491.55 ± (490.57 - 492.54) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.89 ± (37.85 - 37.92) MB37.95 ± (37.91 - 37.98) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.6%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration215.52 ± (215.38 - 216.25) ms211.01 ± (210.76 - 211.85) ms-2.1%
.NET Framework 4.8 - Bailout
duration219.47 ± (219.10 - 219.91) ms215.68 ± (215.43 - 216.43) ms-1.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1286.60 ± (1283.79 - 1289.98) ms1258.25 ± (1256.29 - 1263.85) ms-2.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms207.90 ± (207.49 - 208.30) ms203.13 ± (202.63 - 203.63) ms-2.3%
process.time_to_main_ms92.74 ± (92.40 - 93.07) ms89.74 ± (89.43 - 90.04) ms-3.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.03 ± (16.01 - 16.05) MB16.11 ± (16.09 - 16.13) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.6%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms207.17 ± (206.78 - 207.56) ms203.29 ± (202.88 - 203.70) ms-1.9%
process.time_to_main_ms93.81 ± (93.52 - 94.11) ms91.33 ± (91.06 - 91.60) ms-2.7%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.05 - 16.09) MB16.13 ± (16.12 - 16.15) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.7%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms409.48 ± (408.17 - 410.78) ms399.82 ± (398.39 - 401.25) ms-2.4%
process.time_to_main_ms582.32 ± (580.56 - 584.08) ms568.19 ± (566.75 - 569.63) ms-2.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.88 ± (59.83 - 59.94) MB59.90 ± (59.78 - 60.02) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms213.30 ± (212.84 - 213.75) ms208.86 ± (208.32 - 209.39) ms-2.1%
process.time_to_main_ms81.20 ± (80.88 - 81.52) ms78.79 ± (78.52 - 79.07) ms-3.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.34 - 16.38) MB16.40 ± (16.37 - 16.43) MB+0.2%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms211.74 ± (211.34 - 212.14) ms207.99 ± (207.56 - 208.43) ms-1.8%
process.time_to_main_ms81.87 ± (81.69 - 82.06) ms79.73 ± (79.54 - 79.91) ms-2.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.38 ± (16.36 - 16.41) MB16.47 ± (16.45 - 16.50) MB+0.5%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)20 ± (20 - 21)-0.1%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms582.37 ± (579.93 - 584.80) ms583.90 ± (581.38 - 586.42) ms+0.3%✅⬆️
process.time_to_main_ms588.65 ± (587.48 - 589.81) ms580.83 ± (579.59 - 582.07) ms-1.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.80 ± (61.70 - 61.90) MB61.64 ± (61.53 - 61.75) MB-0.3%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms211.08 ± (210.59 - 211.57) ms205.04 ± (204.62 - 205.46) ms-2.9%
process.time_to_main_ms79.45 ± (79.19 - 79.72) ms76.61 ± (76.33 - 76.88) ms-3.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.70 ± (11.67 - 11.73) MB11.85 ± (11.82 - 11.88) MB+1.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.3%
.NET 8 - Bailout
process.internal_duration_ms210.53 ± (210.04 - 211.03) ms204.74 ± (204.30 - 205.18) ms-2.7%
process.time_to_main_ms80.72 ± (80.50 - 80.95) ms78.11 ± (77.93 - 78.28) ms-3.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.76 - 11.80) MB11.85 ± (11.83 - 11.88) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.3%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms522.35 ± (515.98 - 528.72) ms515.63 ± (510.28 - 520.99) ms-1.3%
process.time_to_main_ms539.60 ± (538.63 - 540.57) ms530.23 ± (529.18 - 531.29) ms-1.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.41 ± (51.34 - 51.48) MB51.37 ± (51.31 - 51.43) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.2%✅⬆️
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (72ms)  : 68, 77
    master - mean (72ms)  : 68, 75

    section Bailout
    This PR (8796) - mean (78ms)  : 74, 81
    master - mean (78ms)  : 75, 80

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (1,087ms)  : 1040, 1133
    master - mean (1,093ms)  : 1049, 1138

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (112ms)  : 106, 119
    master - mean (113ms)  : 107, 120

    section Bailout
    This PR (8796) - mean (113ms)  : 108, 117
    master - mean (113ms)  : 108, 118

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (783ms)  : 754, 811
    master - mean (783ms)  : 763, 802

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (97ms)  : 94, 100
    master - mean (101ms)  : 95, 107

    section Bailout
    This PR (8796) - mean (97ms)  : 96, 99
    master - mean (99ms)  : 97, 102

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (943ms)  : 908, 978
    master - mean (944ms)  : 884, 1005

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (99ms)  : 94, 105
    master - mean (97ms)  : 94, 99

    section Bailout
    This PR (8796) - mean (99ms)  : 94, 104
    master - mean (100ms)  : 95, 106

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (823ms)  : 778, 868
    master - mean (815ms)  : 784, 846

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (211ms)  : 205, 218
    master - mean (216ms)  : 212, 220

    section Bailout
    This PR (8796) - mean (216ms)  : 211, 221
    master - mean (220ms)  : 216, 223

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (1,260ms)  : 1204, 1316
    master - mean (1,287ms)  : 1243, 1331

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (303ms)  : 295, 311
    master - mean (312ms)  : 304, 320

    section Bailout
    This PR (8796) - mean (305ms)  : 299, 310
    master - mean (312ms)  : 306, 317

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (1,011ms)  : 991, 1032
    master - mean (1,036ms)  : 1011, 1062

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (298ms)  : 291, 304
    master - mean (304ms)  : 296, 312

    section Bailout
    This PR (8796) - mean (298ms)  : 292, 303
    master - mean (303ms)  : 298, 307

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (1,202ms)  : 1168, 1236
    master - mean (1,212ms)  : 1164, 1260

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8796) - mean (293ms)  : 287, 299
    master - mean (302ms)  : 296, 308

    section Bailout
    This PR (8796) - mean (293ms)  : 289, 298
    master - mean (302ms)  : 295, 308

    section CallTarget+Inlining+NGEN
    This PR (8796) - mean (1,079ms)  : 1005, 1154
    master - mean (1,102ms)  : 1004, 1200

Loading

@pr-commenter

pr-commenter Bot commented Jun 17, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-14 20:48:10

Comparing candidate commit 5c5bdc5 in PR branch zach.montoya/otel-compatibility-http-statuscode with baseline commit 56c9861 in branch master.

📊 Benchmarking dashboard

Found 1 performance improvements and 2 performance regressions! Performance is the same for 69 metrics, 0 unstable metrics, 59 known flaky benchmarks, 67 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive net472

  • 🟩 throughput [+8626.456op/s; +9598.962op/s] or [+5.272%; +5.866%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-22683.109op/s; -19418.328op/s] or [-6.389%; -5.469%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5093.482op/s; -4864.678op/s] or [-5.815%; -5.553%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7314.505op/s; -6778.651op/s] or [-8.673%; -8.037%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • 🟥 throughput [-8954.820op/s; -7501.848op/s] or [-9.105%; -7.628%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+322.520ms; +324.017ms] or [+160.046%; +160.789%]
  • 🟥 throughput [-39.280op/s; -35.706op/s] or [-7.067%; -6.424%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+372.952ms; +376.898ms] or [+294.655%; +297.772%]
  • 🟩 throughput [+95.612op/s; +97.538op/s] or [+12.606%; +12.860%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+392.818ms; +396.001ms] or [+347.629%; +350.446%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-16.054ms; -11.880ms] or [-7.498%; -5.548%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-265146.849op/s; -260115.659op/s] or [-27.073%; -26.559%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-27.319ms; -22.428ms] or [-12.183%; -10.002%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-155460.282op/s; -139500.671op/s] or [-22.337%; -20.044%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟩 throughput [+8113.568op/s; +11029.106op/s] or [+5.163%; +7.018%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟩 throughput [+9396.807op/s; +12070.263op/s] or [+7.486%; +9.616%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+350194.708op/s; +378933.101op/s] or [+11.677%; +12.635%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-19.297ms; -14.942ms] or [-8.895%; -6.888%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟥 execution_time [+300.262ms; +301.063ms] or [+150.031%; +150.431%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟥 execution_time [+299.140ms; +302.446ms] or [+150.857%; +152.524%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟥 execution_time [+299.680ms; +302.133ms] or [+150.956%; +152.191%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+297.310ms; +299.682ms] or [+146.027%; +147.192%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+295.879ms; +299.199ms] or [+144.644%; +146.267%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+303.582ms; +306.208ms] or [+151.730%; +153.042%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟥 execution_time [+28.390µs; +52.143µs] or [+9.064%; +16.647%]
  • 🟥 throughput [-478.110op/s; -278.417op/s] or [-14.904%; -8.679%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.653ms; +300.445ms] or [+149.558%; +149.953%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟥 execution_time [+419.955ms; +426.104ms] or [+456.298%; +462.979%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • unstable execution_time [+243.507ms; +306.330ms] or [+184.893%; +232.594%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+333.781ms; +384.535ms] or [+153.469%; +176.806%]
  • 🟥 throughput [-526.529op/s; -478.854op/s] or [-47.709%; -43.389%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • unstable execution_time [+147.865ms; +294.399ms] or [+63.014%; +125.460%]
  • 🟥 throughput [-670.005op/s; -586.565op/s] or [-44.690%; -39.124%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+347.520ms; +359.171ms] or [+207.857%; +214.826%]
  • 🟥 throughput [-401.988op/s; -366.410op/s] or [-27.990%; -25.513%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+300.197ms; +302.980ms] or [+151.174%; +152.575%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+300.372ms; +303.287ms] or [+150.517%; +151.978%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+300.717ms; +304.052ms] or [+151.068%; +152.743%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.847ms; +302.301ms] or [+151.075%; +151.805%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+294.483ms; +298.266ms] or [+145.609%; +147.479%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+301.576ms; +305.069ms] or [+152.852%; +154.622%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+298.761ms; +301.049ms] or [+149.951%; +151.100%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+298.868ms; +301.006ms] or [+148.958%; +150.024%]
  • 🟩 throughput [+45396.331op/s; +53554.215op/s] or [+9.014%; +10.634%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+297.826ms; +300.378ms] or [+148.166%; +149.435%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.874ms; -13.213ms] or [-7.846%; -6.144%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+16.260µs; +62.299µs] or [+4.016%; +15.388%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-19.104KB; -19.080KB] or [-6.969%; -6.960%]
  • unstable execution_time [-62.724µs; -5.197µs] or [-12.397%; -1.027%]
  • unstable throughput [+39.802op/s; +243.986op/s] or [+1.986%; +12.175%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • 🟩 allocated_mem [-16.223KB; -16.203KB] or [-5.914%; -5.907%]
  • unstable execution_time [-72.357µs; -10.756µs] or [-12.539%; -1.864%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • unstable execution_time [+6.659µs; +11.159µs] or [+15.740%; +26.378%]
  • 🟥 throughput [-4993.866op/s; -3141.786op/s] or [-21.023%; -13.226%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • unstable execution_time [-13.715µs; -6.123µs] or [-21.278%; -9.500%]
  • 🟩 throughput [+1458.059op/s; +3082.026op/s] or [+8.946%; +18.909%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.332ms; +302.771ms] or [+152.310%; +153.037%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+304.318ms; +308.127ms] or [+154.897%; +156.836%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+299.863ms; +301.994ms] or [+150.119%; +151.185%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟩 throughput [+33112.288op/s; +34754.670op/s] or [+6.267%; +6.578%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+298.812ms; +300.927ms] or [+148.931%; +149.985%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+302.636ms; +304.696ms] or [+151.969%; +153.004%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+304.676ms; +308.385ms] or [+154.512%; +156.393%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.867ms; +300.940ms] or [+149.575%; +150.110%]
  • 🟩 throughput [+65888343.766op/s; +66242714.104op/s] or [+47.984%; +48.242%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • unstable execution_time [+224.204ms; +298.223ms] or [+278.838%; +370.893%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.131ms; +300.141ms] or [+149.200%; +149.704%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+73659.603op/s; +88547.738op/s] or [+6.877%; +8.267%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • 🟩 throughput [+82992.669op/s; +112678.073op/s] or [+6.424%; +8.721%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 throughput [+83541.283op/s; +91472.746op/s] or [+8.297%; +9.085%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+51693.204op/s; +57471.629op/s] or [+9.387%; +10.436%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1

  • 🟩 throughput [+23335.002op/s; +33478.259op/s] or [+5.223%; +7.494%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟩 throughput [+76020.459op/s; +94562.918op/s] or [+8.493%; +10.565%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

// Unclosed repeated ResourceSpans field
// Unclosed ExportTraceServiceRequest message
}
private readonly bool _openTelemetrySemanticsEnabled;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual changes in this file are storing this new bool _openTelemetrySemanticsEnabled and using it to stop adding Datadog-specific span attributes. The rest of the changes are due to moving methods around to satisfy StyleCops ordering after changing methods from private to internal

// by the 7th doubling to maintain efficient allocation without frequent resizing.
private const int InitialBufferSize = 750000;

private readonly bool _openTelemetrySemanticsEnabled;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual changes in this file are storing this new bool _openTelemetrySemanticsEnabled and using it to stop adding Datadog-specific span attributes. The rest of the changes are due to moving methods around to satisfy StyleCops ordering after changing methods from private to internal

@zacharycmontoya zacharycmontoya changed the title WIP feat(otel): Add opt-in OpenTelemetry Semantics mode feat(otel): Add opt-in OpenTelemetry Semantics mode to improve OTLP trace compatibility Jul 10, 2026
…LED.

When enabled, the tracer will not attempt to remap known OpenTelemetry attributes when handling OTEL spans and instead preserve them. A unit test has been added to assert that `Activity.SetTag("http.response.status_code", 200)` maintains both the original attribute key AND value (an integer)
…ce serializers from adding the following Datadog-specific attributes:

- service.name
- operation.name
- resource.name
- span.type
…emetryTraceCompatibilityEnabled

This results in the following snapshot changes:
- DD only attributes are no longer specially handled on the OTLP span
- OtelSpan.RecordException does not get recorded as a span-level error
- Incoming "http.status_code" and "http.response.status_code" tags are no longer special-cased and stringified (but they are converted into doubles which seems like a regression)
…o align the DD OTLP spans with the OTel OTLP spans. Removes the following span attributes:

- otel.library.name
- otel.library.version
- otel.status_code
- otel.trace_id
… emitted on OTLP spans when in OTel trace semantics is enabled
…ndicating whether to mark the span as error or not
…etException records span events rather than error tracking tags
@zacharycmontoya
zacharycmontoya force-pushed the zach.montoya/otel-compatibility-http-statuscode branch from 9a8c75a to 264a6f0 Compare July 10, 2026 00:02
@zacharycmontoya zacharycmontoya added area:opentelemetry OpenTelemetry support area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) labels Jul 10, 2026
@zacharycmontoya
zacharycmontoya marked this pull request as ready for review July 10, 2026 00:05
@zacharycmontoya
zacharycmontoya requested review from a team as code owners July 10, 2026 00:05
@zacharycmontoya
zacharycmontoya removed the request for review from a team July 10, 2026 00:05
@zacharycmontoya
zacharycmontoya requested review from anna-git and vandonr and removed request for a team July 10, 2026 00:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 264a6f0080

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tracer/src/Datadog.Trace/Activity/OtlpHelpers.cs
Comment thread tracer/src/Datadog.Trace/Activity/OtlpHelpers.cs
Comment thread tracer/test/test-applications/Samples.Shared/SampleHelpers.cs Outdated
Comment thread tracer/src/Datadog.Trace/OpenTelemetry/OtlpMapper.cs
Comment thread tracer/src/Datadog.Trace/Span.cs
Comment thread tracer/src/Datadog.Trace/OpenTelemetry/OtlpMapper.cs

@link04 link04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks! Added one comment and aside from it:

Note these OTel-semantics items don't currently fail CI because the SubmitsOtlpTraces_DD_OtelSemantics snapshot was baselined from the current output, so it passes despite them (no status field on any span, and runtime-id / otel.status_description showing up as span attributes). Could we add a few targeted tests that would fail on the cases called out in the inline threads — and maybe the ones without coverage today (error.type/error.stack set directly by integrations like GraphQL/Quartz, _dd.origin, per-span service.name, and default-MessagePack export still writing the error tags)?

That said, if you feel the existing tests already cover what we care about for this initial effort, I'm totally fine with merging as is.

Comment thread tracer/src/Datadog.Trace/OpenTelemetry/OtlpMapper.cs
@zacharycmontoya

Copy link
Copy Markdown
Contributor Author

LGTM Thanks! Added one comment and aside from it:

Note these OTel-semantics items don't currently fail CI because the SubmitsOtlpTraces_DD_OtelSemantics snapshot was baselined from the current output, so it passes despite them (no status field on any span, and runtime-id / otel.status_description showing up as span attributes). Could we add a few targeted tests that would fail on the cases called out in the inline threads — and maybe the ones without coverage today (error.type/error.stack set directly by integrations like GraphQL/Quartz, _dd.origin, per-span service.name, and default-MessagePack export still writing the error tags)?

That said, if you feel the existing tests already cover what we care about for this initial effort, I'm totally fine with merging as is.

@link04 thanks for the review! I added some unit tests to cover the OTLP status changes that I initially missed. For the rest, I'm using the snapshot testing because when you diff tracer/test/snapshots/OpenTelemetrySdkTests.SubmitsOtlpTraces_DD.verified.txt and tracer/test/snapshots/OpenTelemetrySdkTests.SubmitsOtlpTraces_DD_OtelSemantics.verified.txt, the changes in attributes becomes very apparent. If we find more bugs in this implementation we can add fine-grained unit tests to make sure we don't regress. Otherwise, I'm comfortable with the testing in this PR

@anna-git anna-git left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!! minor NIT and left a little comment on the OtlpHelpers about otel.status_code I'm unsure about

Comment thread tracer/src/Datadog.Trace/Activity/OtlpHelpers.cs
Comment thread tracer/test/Datadog.Trace.Tests/OpenTelemetry/OtlpMapperTests.cs
- Update inline data for unit testts where we assert attribute keys that should not be emitted from OtlpMapper
- Update 'otel.status_code' handling for already standardized or custom values to keep the previous behavior
@zacharycmontoya
zacharycmontoya merged commit b56f618 into master Jul 14, 2026
141 checks passed
@zacharycmontoya
zacharycmontoya deleted the zach.montoya/otel-compatibility-http-statuscode branch July 14, 2026 22:52
@github-actions github-actions Bot added this to the vNext-v3 milestone Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:opentelemetry OpenTelemetry support area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants