Skip to content

Commit 64b75b0

Browse files
committed
use sentry.op
1 parent 9bba2fc commit 64b75b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/google-cloud-serverless/src/integrations/google-cloud-http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type * as common from '@google-cloud/common';
2-
import { HTTP_REQUEST_METHOD, SERVER_ADDRESS } from '@sentry/conventions/attributes';
2+
import { HTTP_REQUEST_METHOD, SENTRY_OP, SERVER_ADDRESS } from '@sentry/conventions/attributes';
33
import { WEB_SERVER_HTTP_CLIENT_SPAN_OP } from '@sentry/conventions/op';
44
import type { Client, IntegrationFn } from '@sentry/core';
55
import {
@@ -58,8 +58,8 @@ function wrapRequestFunction(orig: RequestFunction): RequestFunction {
5858
? startInactiveSpan({
5959
name: `${httpMethod} ${reqOpts.uri}`,
6060
onlyIfParent: true,
61-
op: WEB_SERVER_HTTP_CLIENT_SPAN_OP,
6261
attributes: {
62+
[SENTRY_OP]: WEB_SERVER_HTTP_CLIENT_SPAN_OP,
6363
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.serverless',
6464
[HTTP_REQUEST_METHOD]: httpMethod,
6565
[SERVER_ADDRESS]: getServerAddress(this.apiEndpoint),

0 commit comments

Comments
 (0)