diff --git a/contrib/opencensus-ext-azure/CHANGELOG.md b/contrib/opencensus-ext-azure/CHANGELOG.md index e1acaa27e..f6771aa79 100644 --- a/contrib/opencensus-ext-azure/CHANGELOG.md +++ b/contrib/opencensus-ext-azure/CHANGELOG.md @@ -2,6 +2,13 @@ ## Unreleased +## 1.1.11 + +- Add str fallback to envelope serialization +([#1196](https://github.com/census-instrumentation/opencensus-python/pull/1196)) +- Remove outerId from exceptiondata +([#1221](https://github.com/census-instrumentation/opencensus-python/pull/1221)) + ## 1.1.10 Released 2023-09-18 diff --git a/contrib/opencensus-ext-azure/opencensus/ext/azure/common/transport.py b/contrib/opencensus-ext-azure/opencensus/ext/azure/common/transport.py index 2392f5df7..49fa2e1bc 100644 --- a/contrib/opencensus-ext-azure/opencensus/ext/azure/common/transport.py +++ b/contrib/opencensus-ext-azure/opencensus/ext/azure/common/transport.py @@ -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), diff --git a/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py b/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py index e267be2c6..27dcb80dc 100644 --- a/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py +++ b/contrib/opencensus-ext-azure/opencensus/ext/azure/common/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '1.1.10' +__version__ = '1.1.11' diff --git a/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py b/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py index 8a54bc2cb..26c07e6b1 100644 --- a/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py +++ b/contrib/opencensus-ext-azure/opencensus/ext/azure/trace_exporter/__init__.py @@ -101,7 +101,7 @@ def span_data_to_envelope(self, sd): data = ExceptionData( exceptions=[{ 'id': 1, - 'outerId': '{}'.format(sd.span_id), + 'outerId': 0, 'typeName': sd.attributes.get(ERROR_NAME, ''), 'message': sd.attributes[ERROR_MESSAGE], 'hasFullStack': STACKTRACE in sd.attributes,