Welcome to the Linux Foundation Forum!

Another missing import for "Instruments to Measure Golden Signals"

Posts: 14
edited March 14 in LFS148 Class Forum

On:

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

instructions are missing the following import in metric_utils.py:

  1. from opentelemetry.metrics import Histogram, Counter, ObservableGauge

Would also be good to mention kicking off ab to trigger the telemetry on the console.

Similarly, we make several additions (ie. renaming test, removing attributes, etc.) but only inspect one of the changes:

  1. python app.py | tail -n +3 | jq '.resource_metrics[].scope_metrics[].metrics[] | select (.name=="http.server.request.duration")'

perhaps add other tests to validate/observe results of the code additions/changes.

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