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.
2 parents f86f18f + f4d68c9 commit ed5f86fCopy full SHA for ed5f86f
instana/agent.py
@@ -47,7 +47,7 @@ def __init__(self, sensor):
47
48
def to_json(self, o):
49
try:
50
- return json.dumps(o, default=lambda o: o.__dict__,
+ return json.dumps(o, default=lambda o: {k.lower(): v for k, v in o.__dict__.items()},
51
sort_keys=False, separators=(',', ':')).encode()
52
except Exception as e:
53
log.info("to_json: ", e, o)
0 commit comments