Skip to content

Docker image does not have OTEL libraries installed #3309

@mcumming

Description

@mcumming

Prerequisites

Description

When I enable OTEL via the instructions at https://www.locust.cloud/blog/observable-load-testing/ I get the following error when starting the container with the --otel flag:
[2025-12-05 18:53:37,231] e4744a99b8a5/ERROR/locust.opentelemetry: OpenTelemetry SDK is not installed, opentelemetry not enabled. Run 'pip install locust[otel]'

Command line

docker run locustio/locust:latest --host https://host.docker.internal:49942 --users 10 --spawn-rate 2 --run-time 300s --locustfile /mnt/locust/Load --processes -1 --otel

Locustfile contents

Issue triggers before needing a file

Python version

whatever is in the container

Locust version

2.42.6

Operating system

linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions