diff --git a/src/main/integrations/net-breadcrumbs.ts b/src/main/integrations/net-breadcrumbs.ts index 0b7a3937..331ca5ae 100644 --- a/src/main/integrations/net-breadcrumbs.ts +++ b/src/main/integrations/net-breadcrumbs.ts @@ -6,6 +6,7 @@ import { getDynamicSamplingContextFromClient, getDynamicSamplingContextFromSpan, getIsolationScope, + SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SentryNonRecordingSpan, setHttpStatus, spanToTraceHeader, @@ -178,6 +179,8 @@ function createWrappedRequestFactory( }) : new SentryNonRecordingSpan(); + span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.http.electron.net'); + if (shouldAttachTraceData(method, url)) { const { traceId, spanId, sampled, dsc } = { ...getIsolationScope().getPropagationContext(), diff --git a/test/e2e/test-apps/other/net-breadcrumbs-tracing/event.json b/test/e2e/test-apps/other/net-breadcrumbs-tracing/event.json index 11130290..6e0cfd6e 100644 --- a/test/e2e/test-apps/other/net-breadcrumbs-tracing/event.json +++ b/test/e2e/test-apps/other/net-breadcrumbs-tracing/event.json @@ -48,6 +48,7 @@ { "op": "http.client", "trace_id": "{{id}}", + "origin": "auto.http.electron.net", "parent_span_id": "{{id}}", "span_id": "{{id}}", "start_timestamp": 0,