Skip to content

Commit

Permalink
Adds str fallback to envelope serialization (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeschepper authored Mar 16, 2023
1 parent c38c71b commit 3a2d8df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contrib/opencensus-ext-azure/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
([#1187](https://github.com/census-instrumentation/opencensus-python/pull/1187))
- Modify metrics exporter to include setting export interval to 60s
([#1193](https://github.com/census-instrumentation/opencensus-python/pull/1193))
- Add str fallback to envelope serialization
([#1196](https://github.com/census-instrumentation/opencensus-python/pull/1196))

## 1.1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _transmit(self, envelopes):
endpoint += '/v2.1/track'
response = requests.post(
url=endpoint,
data=json.dumps(envelopes),
data=json.dumps(envelopes, default=str),
headers=headers,
timeout=self.options.timeout,
proxies=json.loads(self.options.proxies),
Expand Down

0 comments on commit 3a2d8df

Please sign in to comment.