Skip to content

Implement timeout mechanism for several metrics components #2402

@ocelotl

Description

@ocelotl

collect doesn't return anything, so returning True until we implement timeout/error handling mechanism seemed reasonable to me. What do you think?

Originally posted by @lonewolf3739 in #2401 (comment)

Also, the timeout mechanism is required in several parts of the metrics spec:

  1. MeterProvider.shutdown
  2. MeterProvider.forceflush
  3. Asynchronous callbacks
  4. MetricReader.collect
  5. MetricReader.shutdown
  6. PushMetricExporter.forceflush
  7. PushMetricExporter.shutdown

Metadata

Metadata

Assignees

Labels

1.10.0rc1release candidate 1 for metrics GAmetricssdkAffects the SDK package.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions