Skip to content

Commit

Permalink
add more links and clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed May 6, 2021
1 parent 0240211 commit 52c570c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions specification/metrics/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ TODO:

## MeasurementProcessor

`MeasurementProcessor` is an interface which allows hooks when a Measurement is
recorded by an Instrument.
`MeasurementProcessor` is an interface which allows hooks when a
[Measurement](./api.md#measurement) is recorded by an
[Instrument](./api.md#instrument).

`MeasurementProcessor` has access to the [raw
measurements](./datamodel.md#event-model) and the corresponding Instrument. It
could also access the [Baggage](../baggage/api.md) and
`MeasurementProcessor` has access to the Measurement and the corresponding
Instrument. It could also access the [Baggage](../baggage/api.md) and
[Context](../context/context.md) if the Baggage/Context are available.

```text
Expand Down Expand Up @@ -105,8 +105,14 @@ Metric Exporter has access to the [pre-aggregated metrics
data](./datamodel.md#timeseries-model).

There could be multiple [Push Metric Exporters](#push-metric-exporter) or [Pull
Metric Exporters](#pull-metric-exporter) or even a mixture of both configured on a
given MeterProvider.
Metric Exporters](#pull-metric-exporter) or even a mixture of both configured on
a given `MeterProvider`. Different exporters can run at different schedule, for
example:

* Exporter A is a push exporter which sends data every 1 minute.
* Exporter B is a push exporter which sends data every 5 seconds.
* Exporter C is a pull exporter which reacts to a scraper over HTTP.
* Exporter D is a pull exporter which reacts to another scraper over named pipe.

### Push Metric Exporter

Expand Down

0 comments on commit 52c570c

Please sign in to comment.