Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow callers to pass go context through to hooks #559

Merged
merged 1 commit into from Jul 25, 2023
Merged

Commits on Jul 13, 2023

  1. Allow callers to pass go context through to hooks

    Add Ctx(context.Context) to Event and Context, allowing
    log.Info().Ctx(ctx).Msg("hello").  Registered hooks can retrieve the
    context from Event.GetCtx().  Facilitates writing hooks which fetch
    tracing context from the go context.
    danielbprice committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    f76e8e4 View commit details
    Browse the repository at this point in the history