OpenTelemetry & Python: Manually set Span Status, Span Attributes and Span Events

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • Part 1 of this tutorial is here: • OpenTelemetry & Python...
    Part 3 is here: • OpenTelemetry and Pyth...
    In this video I'll explain the purpose of different parts of the span JSON output and add the Python code to manually set the span status, span attributes and add a span event.
    Code samples: Code samples: github.com/agardnerIT/python-...
    Read along with the text-based version: agardner.net/enriching-spans-...
    Timings:
    00:00 Introduction & Part One Recap
    00:20 Explanation of other fields in span JSON
    00:26 trace id and span id
    01:12 Why should you enrich spans anyway?
    01:25 What is SpanKind?
    02:04 What is Span Status?
    02:30 Hands on: Setting Span Status manually in Python
    03:14 What are Span Attributes?
    03:51 Hands on: Setting Span attributes manually in Python
    04:22 Hands on: Setting multiple span attributes using a dictionary
    04:40 What are Span Events?
    05:03 Hands on: Add span events
    06:12 What is a Span Resource?
    06:32 Hands on: Add a Span Resource
    07:27 Final thoughts / warnings about span attributes
    08:23 Outro
  • НаукаНаука

Комментарии • 5

  • @akshayawate7239
    @akshayawate7239 2 месяца назад

    Subscribed! Thanks for adding manual instrumentation.

  • @sadiqkavungal990
    @sadiqkavungal990 2 месяца назад +1

    nice explanation, thank you.

    • @agardnerit
      @agardnerit  2 месяца назад

      Glad it was helpful!

  • @akshayawate7239
    @akshayawate7239 2 месяца назад +1

    Can you please add vid on otlp exporter, to send traces to jaeger ?

    • @agardnerit
      @agardnerit  2 месяца назад

      Yup! That's the very next video in the series. Coming soon.
      Part 3: Sending spans to Jaeger >> ruclips.net/video/tnml6Zd58gs/видео.html