View common scenarios

These examples show how to customize the metrics that are output by the SDK using Views. There are multiple examples:

  • Shows how to configure to change the default aggregation for an instrument.

  • Shows how to change the name of a metric.

  • Shows how to limit the number of attributes that are output for a metric.

  • Shows how to drop measurements from an instrument.

The source files of these examples are available here.


pip install -r requirements.txt

Run the Example

python <example_name>.py

The output will be shown in the console.