Skip to content

Ensure graceful shutdown by removing log.Fatal and panic calls #888

@rogercoll

Description

@rogercoll

The tracer/monitorPIDEventsMap function does not propagate any error to its parent function, instead it fails with a fatal error: https://github.com/open-telemetry/opentelemetry-ebpf-profiler/blob/v0.0.202540/tracer/tracer.go#L767

Given that the function runs periodically, the error could be logged instead of exiting the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions