open-telemetry / open-telemetry/opentelemetry-python-contrib
[celery] warning emitted regarding mixed attribute types for 'celery.timelimit'
@Akochavi is already working on this.
Since Feb 22, 2023.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 1.1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 16
Description
Describe your environment
python-version: 3.10.8
celery: 5.3.0.b2
opentelemetry-api: 1.16.0
opentelemetry-instrumentation: 0.37b0
opentelemetry-instrumentation-celery: 0.37b0
Configured celery task soft time limit value: 30 (int)
Steps to reproduce
celery -Acelery_app worker -lINFO
Instrument celery via opentelemetry.instrumentation.celery.CeleryInstrumentor during worker_process_init signal.
Warning log is emitted in relation to task ending/completion
What is the expected behavior?
No warning in regards to celery attributes
What is the actual behavior?
Mixed types warning is emitted
opentelemetry.attributes.Attribute 'celery.timelimit' mixes types str and int in attribute value sequence
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.
Assessment
This issue has not been assessed yet.