Skip to content

Commit 3a2d8df

Browse files
authored
Adds str fallback to envelope serialization (#1196)
1 parent c38c71b commit 3a2d8df

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

contrib/opencensus-ext-azure/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
([#1187](https://github.com/census-instrumentation/opencensus-python/pull/1187))
77
- Modify metrics exporter to include setting export interval to 60s
88
([#1193](https://github.com/census-instrumentation/opencensus-python/pull/1193))
9+
- Add str fallback to envelope serialization
10+
([#1196](https://github.com/census-instrumentation/opencensus-python/pull/1196))
911

1012
## 1.1.8
1113

contrib/opencensus-ext-azure/opencensus/ext/azure/common/transport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _transmit(self, envelopes):
113113
endpoint += '/v2.1/track'
114114
response = requests.post(
115115
url=endpoint,
116-
data=json.dumps(envelopes),
116+
data=json.dumps(envelopes, default=str),
117117
headers=headers,
118118
timeout=self.options.timeout,
119119
proxies=json.loads(self.options.proxies),

0 commit comments

Comments
 (0)