Skip to content

Ensure full flush on panic #39

Open
@davidhewitt

Description

@davidhewitt

At the moment we have the ShutdownHandler type returned from logfire.configure(), which needs to have .shutdown() called at the end of the program to flush. Usually one does this at the end of main.

This won't run if the whole stack is unwound with a panic. We should probably use a guard pattern so that panics are fully exported before exiting the process.

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