We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e5fe2 commit ca54234Copy full SHA for ca54234
instana/django.py
@@ -1,16 +1,18 @@
1
from __future__ import print_function
2
import opentracing as ot
3
-from instana import tracer
+from instana import tracer, options
4
import opentracing.ext.tags as ext
5
6
+
7
DJ_INSTANA_MIDDLEWARE = 'instana.django.InstanaMiddleware'
8
9
10
class InstanaMiddleware(object):
11
""" Django Middleware to provide request tracing for Instana """
12
def __init__(self, get_response):
13
self.get_response = get_response
- ot.global_tracer = tracer.InstanaTracer()
14
+ opts = options.Options(service="Django")
15
+ ot.global_tracer = tracer.InstanaTracer(opts)
16
self
17
18
def __call__(self, request):
0 commit comments