Skip to content

Commit

Permalink
add span processor config to service test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten committed Jul 21, 2023
1 parent c039bfa commit 6045a82
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions service/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ func TestTelemetryInit(t *testing.T) {
Metrics: telemetry.MetricsConfig{
Level: configtelemetry.LevelDetailed,
},
Traces: telemetry.TracesConfig{
Processors: []telemetry.SpanProcessor{
{
Batch: &telemetry.BatchSpanProcessor{
Exporter: telemetry.SpanExporter{
Console: telemetry.Console{},
},
},
},
},
},
Resource: map[string]*string{
semconv.AttributeServiceInstanceID: &testInstanceID,
},
Expand Down

0 comments on commit 6045a82

Please sign in to comment.