Skip to content

Filtering healthcheck transactions with sentry-opentelemetry-agent V8 #3840

@jebbench

Description

@jebbench

Problem Statement

I want to filter out my healthcheck transactions (grpc.health.v1.Health/Check, PING), preferably configured using an Environment variable.

I am using the new version of the sentry-opentelemetry-agent which works great, my only issue is filtering out healthcheck transactions.

Solution Brainstorm

In a perfect world I could provide an environment variable with a list of transactions to exclude (SENTRY_EXCLUDE_TRANSACTIONS=grpc.health.v1.Health/Check,PING) but I would settle for being able to configure it in code while still being able to take advantage of the auto initialisation (I've tried calling Sentry.init and just specifying a beforeSendTransaction options but I get the error "DSN is required. Use empty string or set enabled to false in SentryOptions to disable SDK.").

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions