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
What are you trying to achieve?
The MetricProducer spec indicates the following for the
Produce()method: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 requiredcontext.Contextparameter.Ref #3599