Skip to content

Add attributes on top level #12

@marcelhfm

Description

@marcelhfm

Hey there,

is it possible to add default attributes to the top level of the log record?

This is useful to enable easier querying in betterstack, by e.g. adding the source tag on the top level of the record.

I have tried to add it to the record by using

instance.With("scope", "my-scope")

However this shows up as extra.scope in betterstack.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions