Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

OpenTelemetry Example

A simple pipeline demonstrating the use of OpenTelemetry in Savant. The pipeline contains one element, Blur PyFunc. It applies gaussian blur to the frame and contains OpenTelemetry instrumenting code. OpenTelemetry instrumenting is initialized with environment variables: see compose files for details. The telemetry is collected by the all-in-one Jaeger container. The container also includes the Jaeger UI.

Below are a few screenshots from the Jaeger UI.

Jaeger Main Screen

Select telemetry-demo Service and click Find Traces to see captured traces.

Jaeger main screen

Trace View

Click on a trace to see the trace spans, associated logging messages, events and attributes.

Trace view

Process-Frame Span

The process-frame span is the parent span for blurring code located in the Blur PyFunc.

process-frame span

Blur-Filter Span

The blur-filter span is a telemetry span for the blur function call.

blur-filter span

Error-Code Span

The error-code span demonstrates the span capability of attaching uncaught exceptions to the span.

error-code span

Prerequisites

git clone https://github.com/insight-platform/Savant.git
cd Savant
git lfs pull
./utils/check-environment-compatible

Note: Ubuntu 22.04 runtime configuration guide helps to configure the runtime to run Savant pipelines.

Run Demo

# you are expected to be in Savant/ directory

# if x86
docker compose -f samples/telemetry/docker-compose.x86.yml up

# if Jetson
docker compose -f samples/telemetry/docker-compose.l4t.yml up

# open 'rtsp://127.0.0.1:554/stream/0' in your player
# or visit 'http://127.0.0.1:888/stream/0/' (LL-HLS)

# navigate to 'http://localhost:16686' to access the Jaeger UI

# Ctrl+C to stop running the compose bundle