Skip to content

[exporter/debug] Make output configurable #9372

Open
@andrzej-stencel

Description

@andrzej-stencel

It would be awesome if I could (...) choose which metadata I want to see.
Eg. for logs sometimes I might be interested only in logs, sometimes in logs and some metadata and sometimes in metadata only.

Originally posted by @perk-sumo in #7806 (comment)

Things I believe it's worth to configure:

  • output.attributes whether or not to include records' attributes. They're probably essential for metrics, but for logs - it depends on the nature of the logs. For some users, attributes may be essential; for others, they only obscure the output.
  • output.resource, output.scope whether to output the resource and scope. Some users might very much need those details, others might want to remove them from output to only see telemetry records.
  • Whether or not the exporter uses the collector's logger to output data

Other possible configuration options:

  • output.trace_id, output.span_id whether or not to include trace ID, span ID - they are probably essential for traces, but not necessarily for logs.
  • output.timestamp whether or not to include timestamp - again some users might find them useful, others might want to remove them for clarity
  • output.log_severity

Other configurability option suggestions are welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexporter/debugIssues related to the Debug exporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions