Console exporter crashes on incomplete ProcessorOptions #1

Open
opened 2024-05-20 08:39:59 +00:00 by goc_natalia · 0 comments
Owner

Created an exporter with:

DevConsoleExporter(console_exported.ProcessorOptions{})

got:

panic: runtime error: invalid memory address or nil pointer dereferen
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x151922d]

goroutine 51 [running]:
git.ma-al.com/maal-libraries/observer/pkg/exporters/console_exporter.(*Processor).OnStart(0xc00002e000, {0x1aec9e0?, 0xfe4820?}, {0x7fb3f4540278?, 0xc0006a2300})
        /home/adhalia/go/pkg/mod/git.ma-al.com/maal-libraries/observer@v0.0.0-20240520062013-77ab12c3ac90/pkg/exporters/console_exporter/console_exporter.go:123 +0x38d
go.opentelemetry.io/otel/sdk/trace.(*tracer).Start(0xc00002c140, {0x1d5ce50, 0xc0001fcc00}, {0xc0008317e8, 0x12}, {0xc000875a00?, 0xc, 0xacd3ef?})
        /home/adhalia/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.26.0/trace/tracer.go:48 +0x338
Created an exporter with: ``` DevConsoleExporter(console_exported.ProcessorOptions{}) ``` got: ``` panic: runtime error: invalid memory address or nil pointer dereferen [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x151922d] goroutine 51 [running]: git.ma-al.com/maal-libraries/observer/pkg/exporters/console_exporter.(*Processor).OnStart(0xc00002e000, {0x1aec9e0?, 0xfe4820?}, {0x7fb3f4540278?, 0xc0006a2300}) /home/adhalia/go/pkg/mod/git.ma-al.com/maal-libraries/observer@v0.0.0-20240520062013-77ab12c3ac90/pkg/exporters/console_exporter/console_exporter.go:123 +0x38d go.opentelemetry.io/otel/sdk/trace.(*tracer).Start(0xc00002c140, {0x1d5ce50, 0xc0001fcc00}, {0xc0008317e8, 0x12}, {0xc000875a00?, 0xc, 0xacd3ef?}) /home/adhalia/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.26.0/trace/tracer.go:48 +0x338 ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: maal-libraries/observer#1
No description provided.