File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ release.
19
19
20
20
### Metrics
21
21
22
+ - Clarify that ` Export ` MUST NOT be called by periodic exporting MetricReader concurrently.
23
+ ([ #4206 ] ( https://github.com/open-telemetry/opentelemetry-specification/pull/4206 ) )
24
+
22
25
### Logs
23
26
24
27
- Clarify that log record mutations are visible in next registered processors.
Original file line number Diff line number Diff line change @@ -1375,6 +1375,9 @@ Configurable parameters:
1375
1375
* ` exportTimeoutMillis ` - how long the export can run before it is cancelled.
1376
1376
The default value is 30000 (milliseconds).
1377
1377
1378
+ The reader MUST synchronize calls to ` MetricExporter ` 's ` Export `
1379
+ to make sure that they are not invoked concurrently.
1380
+
1378
1381
One possible implementation of periodic exporting MetricReader is to inherit
1379
1382
from ` MetricReader ` and start a background task which calls the inherited
1380
1383
` Collect() ` method at the requested ` exportIntervalMillis ` . The reader's
@@ -1485,8 +1488,8 @@ and transmit the data to the destination.
1485
1488
The SDK MUST provide a way for the exporter to get the [ Meter] ( ./api.md#meter )
1486
1489
information (e.g. name, version, etc.) associated with each ` Metric Point ` .
1487
1490
1488
- ` Export ` will never be called concurrently for the same exporter instance.
1489
- ` Export ` can be called again only after the current call returns .
1491
+ ` Export ` should never be called concurrently with other ` Export ` calls for the
1492
+ same exporter instance .
1490
1493
1491
1494
` Export ` MUST NOT block indefinitely, there MUST be a reasonable upper limit
1492
1495
after which the call must time out with an error result (Failure).
You can’t perform that action at this time.
0 commit comments