Skip to content

Commit 2f30736

Browse files
authored
Better tags for the example (#196)
1 parent 74f99cf commit 2f30736

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/simple.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def simple():
2424
pscope.span.set_tag(ext.HTTP_URL, "/python/simple/one")
2525
pscope.span.set_tag(ext.HTTP_METHOD, "GET")
2626
pscope.span.set_tag(ext.HTTP_STATUS_CODE, 200)
27-
pscope.span.log_kv({"foo": "bar"})
27+
pscope.span.set_tag("Pete's RequestId", "0xdeadbeef")
28+
pscope.span.set_tag("X-Peter-Header", "👀")
29+
pscope.span.set_tag("X-Job-Id", "1947282")
2830
time.sleep(.2)
2931

3032
with ot.tracer.start_active_span('spacedust', child_of=pscope.span) as cscope:

0 commit comments

Comments
 (0)