Skip to content

Commit

Permalink
Remove MILLIS from BatchSpanProcessor variables and allow support for…
Browse files Browse the repository at this point in the history
… SDKs to parse duration strings.
  • Loading branch information
Anuraag Agrawal committed Jan 7, 2021
1 parent a728079 commit 6d82f8c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions specification/sdk-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

The goal of this specification is to unify the environment variable names between different OpenTelemetry SDK implementations. SDKs MAY choose to allow configuration via the environment variables in this specification, but are not required to. If they do, they SHOULD use the names listed in this document.

## Special configuration types

### Duration

Any value that represents a duration, for example a timeout, MUST interpret a purely numeric value as a number of
milliseconds. Formatted strings with an integer followed immediately by a unit string MAY be interpreted for the
following units:

- `"ms"` - milliseconds
- `"s"` - seconds
- `"m"` - minutes
- `"h"` - hours
- `"d"` - days

For example, the value `12000` indicates 12000 milliseconds, which is equivalent to specifying `12s`.

## General SDK Configuration

| Name | Description | Default | Notes |
Expand Down Expand Up @@ -33,8 +49,8 @@ Depending on the value of `OTEL_TRACE_SAMPLER`, `OTEL_TRACE_SAMPLER_ARG` may be

| Name | Description | Default | Notes |
| ------------------------------ | ---------------------------------------------- | ------- | ----------------------------------------------------- |
| OTEL_BSP_SCHEDULE_DELAY_MILLIS | Delay interval between two consecutive exports | 5000 | |
| OTEL_BSP_EXPORT_TIMEOUT_MILLIS | Maximum allowed time to export data | 30000 | |
| OTEL_BSP_SCHEDULE_DELAY | Delay interval between two consecutive exports | 5000 | |
| OTEL_BSP_EXPORT_TIMEOUT | Maximum allowed time to export data | 30000 | |
| OTEL_BSP_MAX_QUEUE_SIZE | Maximum queue size | 2048 | |
| OTEL_BSP_MAX_EXPORT_BATCH_SIZE | Maximum batch size | 512 | Must be less than or equal to OTEL_BSP_MAX_QUEUE_SIZE |

Expand Down

0 comments on commit 6d82f8c

Please sign in to comment.