Skip to content

Commit b422939

Browse files
authored
Merge branch 'master' into renovate/com.avast.gradle.docker-compose-0.x
2 parents 778fae8 + 47cb4eb commit b422939

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

e2e/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
environment:
1414
- SPP_PLATFORM_HOST=spp-platform
1515
spp-platform:
16-
image: sourceplusplus/spp-platform:latest
16+
image: sourceplusplus/spp-platform:0.7.3
1717
container_name: spp-platform
1818
hostname: spp-platform
1919
ports:

setup.py

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

44
setup(name='sourceplusplus',
5-
version='0.1.7',
5+
version='0.1.8',
66
description='Source++ Python Probe',
77
url='https://github.com/sourceplusplus/probe-python',
88
author='Source++',

sourceplusplus/SourcePlusPlus.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,22 @@ def __send_connected(self, eb: EventBus):
139139
for key, val in self.probe_config["spp"].get("probe_metadata").items():
140140
probe_metadata[key] = val
141141

142+
# add probe auth headers (if present)
143+
headers = {}
144+
if self.probe_config["spp"].get("authentication") is not None:
145+
for key, val in self.probe_config["spp"].get("authentication").items():
146+
headers[key] = val
147+
142148
# send probe connected event
143149
reply_address = str(uuid.uuid4())
144-
eb.send(address="spp.platform.status.probe-connected", body={
150+
eb.send(address="spp.platform.status.probe-connected", headers=headers, body={
145151
"instanceId": self.probe_config["spp"]["probe_id"],
146152
"connectionTime": round(time.time() * 1000),
147153
"meta": probe_metadata
148154
}, reply_handler=lambda msg: self.__register_remotes(eb, reply_address, msg["body"]))
149155

150156
def __register_remotes(self, eb, reply_address, status):
151157
eb.unregister_handler(reply_address)
152-
eb.register_handler(
153-
address="spp.probe.command.live-instrument-remote",
154-
handler=lambda msg: self.instrument_remote.handle_instrument_command(
155-
LiveInstrumentCommand.from_json(json.dumps(msg["body"]))
156-
)
157-
)
158158
eb.register_handler(
159159
address="spp.probe.command.live-instrument-remote:" + self.probe_config["spp"]["probe_id"],
160160
handler=lambda msg: self.instrument_remote.handle_instrument_command(

sourceplusplus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.1.7'
1+
__version__ = '0.1.8'
22
__name__ = 'Source++'
33
agent_name = 'Source++ Python Probe'

0 commit comments

Comments
 (0)