Comments (2)
Thank you for reporting that @dotdat! The behavior that you're asking is interesting and useful, we could add it to our roadmap. Anyway about current used tags, we need some of them like STATUS_CODE
, URL
and METHOD
so that our UI and our stats aggregator are aware that this is a web request. For instance, STATUS_CODE
is used to mark the request as a success or as a failure (5xx
).
But definitely both approaches can coexist. Will keep you update or feel free to submit a PR if you need that in your application!
from dd-trace-py.
Instead of creating this in your controller, you can do this by creating a custom middleware that can use tracer.current_span()
to get the currently active span and then add any desired tags to it.
e.g.
def middleware():
span = tracer.current_span()
if span:
span.set_tag('key', 'value')
from dd-trace-py.
Related Issues (20)
- Already mutably borrowed HOT 11
- Send custom tags when sending metrics with openai patch HOT 1
- Support Asynchronous IO for mysql-connector HOT 1
- GCP cloud function support HOT 2
- Best Practices for Long Running tasks HOT 1
- botocore SQS custom `MessageAttributes` are not being attached to spans HOT 3
- TypeError: type 'TracedMongoClient' is not subscriptable HOT 1
- OpenAI remaining requests / tokens and requests / tokens consumed are the same HOT 4
- Override aiohttp `distributed_tracing` and `split_by_domain` options per instance? HOT 1
- Agent using OpenAI `model` tags different from integrations HOT 1
- DataDog: instrumentation alters OpenAI Async interface behaviour HOT 2
- [feature] Selenium Integration HOT 2
- [LLMObs] Send llmobs events split by chunk if it's large enough HOT 2
- Redis logs command arguments even when not configured to do so. HOT 1
- UnboundLocalError: cannot access local variable 'result' where it is not associated with a value HOT 1
- Installing ddtrace breaks tests with the jsonschema library HOT 3
- Git executable not found error HOT 3
- What the size needed for the /tmp folder ? HOT 2
- ci_visibility: unittest integration not working with Django's manage.py in ddtrace==2.9.2 HOT 5
- 2.10.1 fails with read-only file system. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-trace-py.