Skip to content

Filter out health check request in grpc #373

@ymotongpoo

Description

@ymotongpoo

Is your feature request related to a problem?
As of 0.18b1, opentelemetry-instrumentation-grpc doesn't have the feature to exclude trace propagation to the specific endpoints. Because of this, gRPC servers always send health check request traces to the backend via the exporter as you see in the screenshot below:
image

Describe the solution you'd like
It would be nice if opentelemetry-instrumentation-grpc could have something similar to OTEL_PYTHON_FLASK_EXCLUDED_URLS in opentelemetry-instrumentation-flask.

Describe alternatives you've considered
Each exporters support filter option to avoid sending unnecessary traces to the backend.

Additional context
Health checking is the common practice in Kubernetes and the traces for such requests sometimes pollute the Trace dashboard and leads to unnecessary costs for SaaS services.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions