Skip to content

Commit bd0964a

Browse files
committed
use sentry.op
1 parent 79acbf4 commit bd0964a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/aws-serverless/src/requestSpanOptions.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
FAAS_COLDSTART,
2424
FAAS_NAME,
2525
SENTRY_KIND,
26+
SENTRY_OP,
2627
URL_FULL,
2728
} from '@sentry/conventions/attributes';
2829
import { FAAS_FUNCTION_AWS_SPAN_OP } from '@sentry/conventions/op';
@@ -45,9 +46,9 @@ export function getRequestSpanOptions(event: unknown, context: Context, requestI
4546
// The span is started within the surrounding `continueTrace`, so it continues the incoming trace.
4647
return {
4748
name: context.functionName,
48-
op: FAAS_FUNCTION_AWS_SPAN_OP,
4949
forceTransaction: true,
5050
attributes: {
51+
[SENTRY_OP]: FAAS_FUNCTION_AWS_SPAN_OP,
5152
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.otel.aws_lambda',
5253
[SENTRY_KIND]: 'server',
5354
[ATTR_FAAS_EXECUTION]: context.awsRequestId,

0 commit comments

Comments
 (0)