open-telemetry / open-telemetry/opentelemetry-python-contrib
Automatically capture common HTTP attributes for Load Balancer/API Gateway events
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 1.1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 16
Description
Is your feature request related to a problem?
We invoke our AWS Lambda functions from both an Elastic Load Balancer (ELB) and API Gateway. We perform manual instrumentation to add attributes like http.status_code, http.url, http.method, etc., but do this for every Lambda function that implements OpenTelemetry. This also introduces the possibility that teams deviate from the OpenTelemetry HTTP semantic conventions for attribubutes, e.g., http.statusCode (WRONG) vs. http.status_code (correct).
Describe the solution you'd like
Automatically capture common HTTP attributes for AWS Lambda invocations that originate from a Load Balancer or API Gateway.
Describe alternatives you've considered
Continue manually instrumenting Lambda functions to capture these properties (may be useful to provide more user control over potentially sensitive attributes like http.url and http.target (both of which includes query string params)
Additional context
Add any other context about the feature request here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the AWS Lambda instrumentation entry points for invocations from Elastic Load Balancer and API Gateway. Review the OpenTelemetry HTTP semantic conventions and determine which common attributes can be captured automatically, including how sensitive URL and query-string data should be handled. Done means supported events emit consistent HTTP attributes without requiring per-function manual instrumentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- api, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100