Skip to content

Commit 651eef7

Browse files
committed
Merge branch 'master' into correct_service_naming
2 parents 83fb13c + c3fd0d8 commit 651eef7

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Any and all feedback is welcome. Happy Python visibility.
1616

1717
## Installation
1818

19-
For this BETA, we currently support tracing of Django and Flask applications or optionally just runtime monitoring of your Python applications.
20-
2119
`pip install instana` into the virtual-env or container ([hosted on pypi](https://pypi.python.org/pypi/instana))
2220

2321
## Django

instana/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class From(object):
1414
pid = ""
15-
hostId = ""
15+
agentUuid = ""
1616

1717
def __init__(self, **kwds):
1818
self.__dict__.update(kwds)

instana/recorder.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ def build_registered_span(self, span):
8585
baggage=span.context.baggage,
8686
custom=sd.CustomData(tags=span.tags,
8787
logs=self.collect_logs(span)))
88+
entityFrom = { 'e': self.sensor.agent.from_.pid,
89+
'h': self.sensor.agent.from_.agentUuid }
90+
8891
return sd.InstanaSpan(
8992
n=span.operation_name,
9093
t=span.context.trace_id,
9194
p=span.parent_id,
9295
s=span.context.span_id,
9396
ts=int(round(span.start_time * 1000)),
9497
d=int(round(span.duration * 1000)),
95-
f=self.sensor.agent.from_,
98+
f=entityFrom,
9699
ec=self.get_tag(span, "ec"),
97100
error=self.get_tag(span, "error"),
98101
data=data)
@@ -111,6 +114,8 @@ def build_sdk_span(self, span):
111114

112115
sdk_data.Type = self.get_span_kind(span)
113116
data = sd.Data(service=self.get_service_name(span), sdk=sdk_data)
117+
entityFrom = { 'e': self.sensor.agent.from_.pid,
118+
'h': self.sensor.agent.from_.agentUuid }
114119

115120
return sd.InstanaSpan(
116121
t=span.context.trace_id,
@@ -119,7 +124,7 @@ def build_sdk_span(self, span):
119124
ts=int(round(span.start_time * 1000)),
120125
d=int(round(span.duration * 1000)),
121126
n="sdk",
122-
f=self.sensor.agent.from_,
127+
f=entityFrom,
123128
data=data)
124129

125130
def get_tag(self, span, tag):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
setup(name='instana',
4-
version='0.6.1',
4+
version='0.6.2',
55
download_url='https://github.com/instana/python-sensor',
66
url='https://www.instana.com/',
77
license='MIT',

0 commit comments

Comments
 (0)