@@ -7,14 +7,14 @@ import {
77 GCP_FUNCTION_CONTEXT_EVENT_ID ,
88 GCP_FUNCTION_CONTEXT_RESOURCE ,
99 GCP_FUNCTION_CONTEXT_TIMESTAMP ,
10+ SENTRY_ORIGIN ,
1011} from '@sentry/conventions/attributes' ;
1112import { FUNCTION_GCP } from '@sentry/conventions/op' ;
1213import {
1314 debug ,
1415 getClient ,
1516 handleCallbackErrors ,
1617 hasSpanStreamingEnabled ,
17- SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
1818 SERVERLESS_FUNCTION_SPAN_NAME_FALLBACK ,
1919} from '@sentry/core' ;
2020import { captureException , flush , getCurrentScope , startSpanManual } from '@sentry/node' ;
@@ -66,8 +66,7 @@ function _wrapEventFunction<F extends EventFunction | EventFunctionWithCallback>
6666 [ FAAS_NAME ] : functionName ,
6767 [ FAAS_TRIGGER ] : 'event' ,
6868 [ SENTRY_SEGMENT_NAME_SOURCE ] : 'component' ,
69- [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.function.serverless.gcp_event' ,
70- // not yet in conventions but this attribute will also determine the span description
69+ [ SENTRY_ORIGIN ] : 'auto.function.serverless.gcp_event' ,
7170 [ GCP_FUNCTION_CONTEXT_EVENT_TYPE ] : context . eventType ,
7271 [ GCP_FUNCTION_CONTEXT_EVENT_ID ] : context . eventId ,
7372 [ GCP_FUNCTION_CONTEXT_RESOURCE ] : context . resource ,
0 commit comments