Skip to content

Handle partial success responses from OTLP export services #6686

@joaopgrassi

Description

@joaopgrassi

Problem Statement

Following the open-telemetry/opentelemetry-specification#2696, each OTel SDK is encouraged to handle the resulting error message string in an appropriate way, considering existing norms. This requires OTLP v0.19. If I got it correct, this PR already added support for it in pdata #6361

Proposed Solution

For each of the Export*ServiceResponse methods used by OTLP Trace and Metrics exporters, construct an error and call the appropriate handler with the error message string and the number of spans/points(/logs) dropped. Future OTel specifications may call for optional treatment of the number of dropped items, but presently that is just additional information to include in the handled error.

For context, here's a few SDKs that already implemented handling partial success responses: Go, PHP

cc @jmacd @tigrannajaryan @evan-bradley

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions