Skip to content

Clarify MetricProducer "Produce() does not have any required parameters" #3601

@damemi

Description

@damemi

What are you trying to achieve?

The MetricProducer spec indicates the following for the Produce() method:

Produce does not have any required parameters, however, OpenTelemetry SDK authors MAY choose to add parameters (e.g. timeout).

It is unclear whether this means that SDK authors may add required parameters, or if Produce() must not have any required parameters.

If the former, it should be clarified that "authors MAY choose to add required or optional parameters" (or something similar).

If the latter, it should be clarified that "authors MAY choose to add optional parameters".

This question arose in the Go metrics sdk for MetricProducer: open-telemetry/opentelemetry-go#3668. The Produce() function in Go has a required context.Context parameter.

Ref #3599

Metadata

Metadata

Assignees

Labels

spec:metricsRelated to the specification/metrics directory

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions