Welcome to the Linux Foundation Forum!

Missing newline in "Instruments to Measure Golden Signals"

There is a missing newline in the code example:

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

  1. app.py
  2. @app.before_request def before_request_func():
  3. request_instruments["traffic_volume"].add(
  4. 1, attributes={"http.route": request.path}
  5. )

should read:

  1. app.py
  2. @app.before_request
  3. def before_request_func():
  4. request_instruments["traffic_volume"].add(
  5. 1, attributes={"http.route": request.path}
  6. )

Comments

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