Skip to content

docs/user/configuration/traces-config.md contains wrong information about configuring tail_sampling.policies  #1809

Open
@bartoszbehring-form3

Description

@bartoszbehring-form3

Recently we wanted to configure tail sampling policies the agent. We followed the documentation that mentions you should define them in the same way as it is in the Open Telemetry Collector. For example:

tail_sampling:
  policies:
     [
          {
            name: test-policy-1,
            type: always_sample
          }
     ]

It turned out with such configuration the agent was returning following error. After digging out in the Grafana Agent code we figured it out that, we should do it in the following way instead:

tail_sampling:
  policies:
    - always_sample: ""

However I'm not sure if it's just a documentation being wrong or it is the bug in the code and the Grafana Agent would like to follow the Open Telemetry Collector scheme for this field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/docsDocs Squad label across all Grafana Labs reposvariant/staticRelated to Grafana Agent Static.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions