Welcome to the Linux Foundation Forum!

Missing import and typo in "Instruments to Measure Golden Signals"

re:

https://trainingportal.linuxfoundation.org/learn/course/getting-started-with-opentelemetry-lfs148/hands-on-lab-manual-instrumentation-metrics/instruments-to-measure-golden-signals?page=7

Need at add:

  1. from opentelemetry.metrics import Histogram

Also, histrogram_explicit_buckets should probably be renamed to histogram_explicit_buckets.

The section where it says:

  1. metric_utils.py
  2. # adjust aggregation of an instrument

... seems like you should probably mention this goes into create_views() function.

Also, at the very end, it's good if you run some ab against the API endpoint to have the histogram metrics get output to the console.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training