Skip to content

Question: How to send structured metadata? #43

Description

@andrespd99

Hello, I'm wondering if I can send structure metadata with this package. I'm assuming that slog handlers should have the responsibility for doing so (please, correct me if I'm wrong).

So, I wanted to know if slog-loki has that feature, and if so, how can I implement it?

Here is the documentation about what I'm talking about:

  1. What is structured metadata
  2. Ingest logs (There's a paragraph explaining how to add structured metadata to the log payload).

Expected use-case

My intention is to add metadata to the logs, such as user IDs, emails, package error messages, etc., that would have high cardinality but would still be valuable to have it available.

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