Skip to content

Commit

Permalink
fix typename data drop (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydvoss committed Nov 20, 2023
1 parent 432a378 commit 7778b88
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -4,6 +4,8 @@

- Fix missing/None fields in `ExceptionDetails`
([#1232](https://github.com/census-instrumentation/opencensus-python/pull/1232))
- Fix missing/None typeName field in `ExceptionDetails`
([#1234](https://github.com/census-instrumentation/opencensus-python/pull/1234))

## 1.1.11

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@ def span_data_to_envelope(self, sd):
stack_trace = sd.attributes.get(STACKTRACE, [])
if not hasattr(stack_trace, '__iter__'):
stack_trace = []
type_name = sd.attributes.get(ERROR_NAME, 'Exception')
exc_env = Envelope(**envelope)
exc_env.name = 'Microsoft.ApplicationInsights.Exception'
data = ExceptionData(
exceptions=[{
'id': 1,
'outerId': 0,
'typeName': sd.attributes.get(ERROR_NAME, ''),
'typeName': type_name,
'message': message,
'hasFullStack': STACKTRACE in sd.attributes,
'parsedStack': stack_trace
Expand Down

0 comments on commit 7778b88

Please sign in to comment.