diff --git a/dev-packages/e2e-tests/test-applications/node-firebase/tests/functions.test.ts b/dev-packages/e2e-tests/test-applications/node-firebase/tests/functions.test.ts index 77acc210d0a6..60ad8cea5adc 100644 --- a/dev-packages/e2e-tests/test-applications/node-firebase/tests/functions.test.ts +++ b/dev-packages/e2e-tests/test-applications/node-firebase/tests/functions.test.ts @@ -24,12 +24,12 @@ test.fixme('should only call the function once without any extra calls', async ( 'faas.provider': 'firebase', 'faas.trigger': 'http.request', 'sentry.kind': 'server', - 'sentry.op': 'http.request', + 'sentry.op': 'function.gcp', 'sentry.origin': 'auto.firebase.orchestrion.functions', 'sentry.sample_rate': expect.any(Number), 'sentry.source': 'route', }, - op: 'http.request', + op: 'function.gcp', origin: 'auto.firebase.orchestrion.functions', span_id: expect.any(String), status: 'ok', @@ -101,12 +101,12 @@ test.fixme('should create a document and trigger onDocumentCreated and another w 'faas.provider': 'firebase', 'faas.trigger': 'http.request', 'sentry.kind': 'server', - 'sentry.op': 'http.request', + 'sentry.op': 'function.gcp', 'sentry.origin': 'auto.firebase.orchestrion.functions', 'sentry.sample_rate': expect.any(Number), 'sentry.source': 'route', }, - op: 'http.request', + op: 'function.gcp', origin: 'auto.firebase.orchestrion.functions', span_id: expect.any(String), status: 'ok', diff --git a/packages/node/src/integrations/tracing/firebase/otel/patches/functions.ts b/packages/node/src/integrations/tracing/firebase/otel/patches/functions.ts index e54167d43d27..c06eca1dade0 100644 --- a/packages/node/src/integrations/tracing/firebase/otel/patches/functions.ts +++ b/packages/node/src/integrations/tracing/firebase/otel/patches/functions.ts @@ -1,7 +1,8 @@ import type { InstrumentationBase } from '@opentelemetry/instrumentation'; import { InstrumentationNodeModuleDefinition, isWrapped } from '@opentelemetry/instrumentation'; import { InstrumentationNodeModuleFile } from '../../../InstrumentationNodeModuleFile'; -import { SENTRY_KIND } from '@sentry/conventions/attributes'; +import { SENTRY_KIND, SENTRY_OP } from '@sentry/conventions/attributes'; +import { FAAS_FUNCTION_GCP_SPAN_OP } from '@sentry/conventions/op'; import type { SpanAttributes } from '@sentry/core'; import { captureException, @@ -68,6 +69,7 @@ export function patchV2Functions {