Skip to content

Commit

Permalink
fix: lint, line length
Browse files Browse the repository at this point in the history
  • Loading branch information
calleo committed Feb 7, 2023
1 parent 990da22 commit c710688
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def span_data_to_envelope(self, sd):
)
if sd.span_kind == SpanKind.SERVER:
if ERROR_MESSAGE in sd.attributes:
exception_envelope = Envelope(**envelope)
exception_envelope.name = 'Microsoft.ApplicationInsights.Exception'
exc_env = Envelope(**envelope)
exc_env.name = 'Microsoft.ApplicationInsights.Exception'
data = ExceptionData(
exceptions=[{
'id': 1,
Expand All @@ -108,8 +108,8 @@ def span_data_to_envelope(self, sd):
'parsedStack': sd.attributes.get(STACKTRACE, None)
}],
)
exception_envelope.data = Data(baseData=data, baseType='ExceptionData')
yield exception_envelope
exc_env.data = Data(baseData=data, baseType='ExceptionData')
yield exc_env

envelope.name = 'Microsoft.ApplicationInsights.Request'
data = Request(
Expand Down

0 comments on commit c710688

Please sign in to comment.