Skip to content

[GCPFunction] Failure to flush leads to cloud function hanging #4809

Closed
@jtadmor

Description

@jtadmor

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/serverless

SDK Version

6.19.2

Framework Version

6.19.2

Link to Sentry event

No response

Steps to Reproduce

We have a project in which we happen to be over the transaction limit.

  1. Call GCPFunction.wrapHttpFunction around any function.
  2. Set tracesSampleRate: 1.0

See some errors like this show up in the logs:

"severity":"ERROR","message":"Sentry Logger [Error]: Error while sending event: SentryError: HTTP Error (429)
  at new SentryError (node_modules/@sentry/utils/dist/error.js:9:28)
  at ClientRequest.<anonymous> (node_modules/@sentry/node/dist/transports/base/index.js:213:44)
  at Object.onceWrapper (events.js:421:26)
  at ClientRequest.emit (events.js:314:20)
  at ClientRequest.EventEmitter.emit (domain.js:506:15)
  at HTTPParser.parserOnIncomingClient (_http_client.js:601:27)
  at HTTPParser.parserOnHeadersComplete (_http_common.js:122:17)
  at TLSSocket.socketOnData (_http_client.js:474:22)
  at TLSSocket.emit (events.js:314:20)
  at TLSSocket.EventEmitter.emit (domain.js:506:15)"}

Expected Result

Transactions / traces do not send, but functions continue to operate as expected.

Actual Result

Function times out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: serverlessIssues related to the Sentry Serverless SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions