Skip to content

Commit 800d656

Browse files
committed
Default span op with || to also cover empty strings
1 parent a3773ef commit 800d656

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/server-utils/src/integrations/tracing-channel/aws-sdk

packages/server-utils/src/integrations/tracing-channel/aws-sdk/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const _awsChannelIntegration = (() => {
116116
kind: requestMetadata.spanKind ?? SPAN_KIND.CLIENT,
117117
// `rpc` matches what the exporter infers from `rpc.service` for the OTel aws-sdk spans;
118118
// service extensions override it where inference yields a different op (DynamoDB: `db`).
119-
op: requestMetadata.spanOp ?? 'rpc',
119+
op: requestMetadata.spanOp || 'rpc',
120120
attributes: {
121121
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: AWS_SDK_ORIGIN,
122122
...extractAttributesFromNormalizedRequest(normalizedRequest),

0 commit comments

Comments
 (0)