open-telemetry / open-telemetry/opentelemetry-python-contrib
How to add custom_attributes/tags more easily
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 1.1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 16
Description
How can I add custom_attributes when useing SQLAlchemyInstrumentor().instrument(), I found request_hook in RedisInstrumentor().instrument() to add custom_attributes, but how about SQLAlchemyInstrumentor or Psycopg2Instrumentor and so on?
Thanks!
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 with the APIs for SQLAlchemyInstrumentor().instrument(), Psycopg2Instrumentor().instrument(), and RedisInstrumentor().instrument(), comparing the documented request_hook behavior. Check the instrumentation documentation and existing tests, if present, to determine whether custom attributes are already supported or whether a feature is needed; done is a clear usage path or an explicitly documented gap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100