Skip to content

[BUG] OTLP-ingested traces tagged ingestion_reason:manual when client did not force-keep #51145

@sdwa0

Description

@sdwa0

Agent version

7.79.0

Bug Report

The Datadog backend surfaces traces ingested via Datadog agent's OTLP ingest as ingestion_reason:manual even when the client never force-kept them.

This might be a result of these lines of code in the OTLP receiver that stamp _dd.p.dm = -4 (manual) on any trace whose spans carry a sampling.priority attribute, regardless of its value.

		if p, ok := prioritiesByID[k]; ok {
			// a manual decision has been made by the user
			samplingPriorty = p
			decisionMaker = "-4"
		} else {

Reproduction Steps

No response

Agent configuration

No response

Operating System

No response

Other environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    oss/0External contributions priority 0team/opentelemetryOpenTelemetry teamwaiting on authorIssue waiting on author reply

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions