microsoft / microsoft/aspire

Emit OTEL_PYTHON_EXCLUDED_URLS to Python webapps to exclude WithHttpHealthCheck URL

Open
#12,357 0 comments 0 reactions 0 assignees View on GitHub
area-integrations
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When adding a FastAPI instrumented Python application, the tracing view becomes very noisy with the health check GET requests.

### Describe the solution you'd like

Python instrumentation has a global OTEL_PYTHON_EXCLUDED_URLS environment variable. I think Aspire should extend this when WithHttpHealthCheck is added to a web app with a HTTP endpoint.

`.WithHttpHealthCheck("/health")` adds `OTEL_PYTHON_EXCLUDED_URLS="/health"

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.