diff --git a/ddtrace/internal/datadog/profiling/ddup/_ddup.pyx b/ddtrace/internal/datadog/profiling/ddup/_ddup.pyx index bdfab1aaa9f..dd62752d1b5 100644 --- a/ddtrace/internal/datadog/profiling/ddup/_ddup.pyx +++ b/ddtrace/internal/datadog/profiling/ddup/_ddup.pyx @@ -274,10 +274,10 @@ cdef class SampleHandle: span_type_bytes = ensure_binary_or_empty(span._local_root.span_type) ddup_push_trace_type(self.ptr, string_view(span_type_bytes, len(span_type_bytes))) if endpoint_collection_enabled: - root_service_bytes = ensure_binary_or_empty(span._local_root.service) + root_resource_bytes = ensure_binary_or_empty(span._local_root.resource) ddup_push_trace_resource_container( self.ptr, - string_view(root_service_bytes, len(root_service_bytes)) + string_view(root_resource_bytes, len(root_resource_bytes)) ) def flush_sample(self) -> None: diff --git a/releasenotes/notes/profiling-fix-endpoint-v2-a6ca2ebbc9701fe5.yaml b/releasenotes/notes/profiling-fix-endpoint-v2-a6ca2ebbc9701fe5.yaml new file mode 100644 index 00000000000..9cc3a342b39 --- /dev/null +++ b/releasenotes/notes/profiling-fix-endpoint-v2-a6ca2ebbc9701fe5.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + profiling: Fixes endpoing profiling for stack v2, that is when + ``DD_PROFILING_STACK_V2_ENABLED`` set. +