python-django icon indicating copy to clipboard operation
python-django copied to clipboard

OpenTracing instrumentation for the Django framework

Results 18 python-django issues
Sort by recently updated
recently updated
newest added

```py [ 37s] ERROR: test_middleware_untraced_no_trace_all (test_site.test_middleware.TestDjangoOpenTracingMiddleware) [ 37s] ---------------------------------------------------------------------- [ 37s] Traceback (most recent call last): [ 37s] File "/usr/lib/python3.8/site-packages/django/test/utils.py", line 460, in inner [ 37s] return func(*args, **kwargs) [...

if i want to get rpc in django, should i must use @tracing.trace() def some_view_func(request): new_request = some_http_request current_span = tracing.get_span(request) text_carrier = {} opentracing_tracer.inject(span, opentracing.Format.TEXT_MAP, text_carrier) for k, v...

Hi! I got the following error `'GetExampleView' object has no attribute 'META'` when i implement `@tracing.trace()` inside a class that inherits from any kind of APiView related model. ``` class...

Using the `another_decorator()`, allows to crate a new span for custom functions or methods that are not views.

Would this be able to pick up DRF interactions, like Serializer -> ORM -> DB ?

which path or databse the tracing data storage ? in a log file or in database ? thanks~

Fixes https://github.com/opentracing-contrib/python-django/issues/64

Without `tests/test_site`, the inclusion of `tests/manage.py` doesnt make any sense.

https://github.com/opentracing-contrib/python-django/blob/160871ddfb00329de6a9296bb59990eb9e8da09f/django_opentracing/tracing.py#L59 As seen in the tracing.py line 59 when handling a traced view using decorator while tracing_all is activated, the view is called without args nor kwargs which will break...

The current implementation of the `DjangoTracing` class forces the use of `view_func.__name__` as the operation name for the span. I have a use case with class based views where the...