Skip to content

Python SDK: report a series of failed exports once #85

Closed

Description

@ephraimduncan

After #86, the TypeScript SDK reports a series of failed exports one time. The first failure goes to onError. Later failures stay quiet until an export reaches the ingest again.

The Python SDK reports each failed batch. _ReportingSpanExporter and _ReportingLogExporter in _client.py and the metric exporter in _metrics.py call report_error for each FAILURE result. report_error also writes each report to the telemetry_dev logger. During an ingest outage, each batch adds one more report to on_error and to the log.

The on_error row in sdks/python/README.md already says that the SDK can merge repeated failures into one report. The Python exporters of one client can share one failure state, as the TypeScript exporters do. A batch that sends no request must not end the series.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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