Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
Signed-off-by: whitneygriffith <[email protected]>
  • Loading branch information
whitneygriffith committed Oct 28, 2024
1 parent e504385 commit 43c86d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exporter/azuremonitorexporter/trace_to_envelope.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func spanToTelemetryTraces(
spanEvent := span.Events().At(i)

// Skip non-exception events if configured
if spanEvent.Name() != exceptionSpanEventName && !spanEventsEnabled {
if !spanEventsEnabled && spanEvent.Name() != exceptionSpanEventName {
continue
}

Expand Down
4 changes: 2 additions & 2 deletions exporter/azuremonitorexporter/traceexporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestExporterTraceDataCallbackSingleSpanWithSpanEvents(t *testing.T) {
}

// Tests the export onTraceData callback with a single Span that fails to produce an envelope
// TODO: Depercate this test when transport channel is removed as we will not be using envelopes anymore
// TODO: Deprecate this test when transport channel is removed as we will not be using envelopes anymore
func TestExporterTraceDataCallbackSingleSpanNoEnvelope(t *testing.T) {
mockTransportChannel := getMockTransportChannel()
mockTelemetryClient := getMockTelemetryClient()
Expand Down Expand Up @@ -144,4 +144,4 @@ func getExporter(config *Config, transportChannel transportChannel, telemetryCli
telemetryClient: telemetryClient,
logger: zap.NewNop(),
}
}
}

0 comments on commit 43c86d4

Please sign in to comment.