File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ import opentracing
2+ import instana .tracer
3+ import string
4+ from nose .tools import assert_equals
5+
6+
7+ def test_span_basics ():
8+ opentracing .global_tracer = instana .tracer .InstanaTracer ()
9+ span = opentracing .global_tracer .start_span ("blah" )
10+ assert hasattr (span , "finish" )
11+ assert hasattr (span , "set_tag" )
12+ assert hasattr (span , "tags" )
13+ assert hasattr (span , "operation_name" )
14+ assert hasattr (span , "set_baggage_item" )
15+ assert hasattr (span , "get_baggage_item" )
16+ assert hasattr (span , "context" )
17+ assert hasattr (span , "log" )
Original file line number Diff line number Diff line change 1+ import opentracing
2+ import instana .tracer
3+ from nose .tools import assert_equals
4+
5+
6+ def test_tracer_basics ():
7+ assert hasattr (instana .tracer , 'InstanaTracer' )
8+ opentracing .global_tracer = instana .tracer .InstanaTracer ()
9+ assert hasattr (opentracing .global_tracer , "start_span" )
10+ assert hasattr (opentracing .global_tracer , "inject" )
11+ assert hasattr (opentracing .global_tracer , "extract" )
You can’t perform that action at this time.
0 commit comments