Skip to content

Commit 45d6406

Browse files
rads-1996Copilot
andauthored
Fix data.name override
Co-authored-by: Copilot <[email protected]>
1 parent 402e786 commit 45d6406

File tree

1 file changed

+1
-1
lines changed
  • sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/trace

1 file changed

+1
-1
lines changed

sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/trace/_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def _convert_span_to_envelope(span: ReadableSpan) -> TelemetryItem:
459459
# See https://github.com/MohanGsk/ApplicationInsights-Home/tree/master/EndpointSpecs/Schemas/Bond
460460
if envelope.tags.get(ContextTagKeys.AI_OPERATION_NAME):
461461
data.name = envelope.tags[ContextTagKeys.AI_OPERATION_NAME][:1024]
462-
if data.name:
462+
elif data.name:
463463
data.name = str(data.name)[:1024]
464464
if data.result_code:
465465
data.result_code = str(data.result_code)[:1024]

0 commit comments

Comments
 (0)