Skip to content

[bug] Missing Redis command spans (e.g., SETEX) when using Redis Cluster #2851

Open
@sfiodorov

Description

@sfiodorov

Component

OpenTelemetry.Instrumentation.StackExchangeRedis

Package Version

Package Name Version
OpenTelemetry.Api 1.11.2
OpenTelemetry 1.11.2
OpenTelemetry.Instrumentation.StackExchangeRedis (v1.11.0-beta.2)
StackExchange.Redis (v2.7.4)

Runtime Version

net8.0

Description

We use OpenTelemetry.Instrumentation.StackExchangeRedis to trace Redis operations. After switching from standalone Redis to Redis Cluster mode, we noticed that spans for specific commands like SETEX no longer appear. Instead, we only see generic spans labeled as CLUSTER.

Expected behavior:
Spans for actual commands such as SETEX, GET, etc., should be recorded, even when using Redis in Cluster mode.

Actual behavior:

Only generic spans (e.g., CLUSTER, GET) appear.

No visibility into actual user commands like SETEX.

Attachments:
Included screenshots of trace data with and without Redis Cluster mode for comparison.

Image

Image

Steps to Reproduce

Create any app with redis teleemetry, use writes on redis on cluster mode

Expected Result

Spans for actual commands such as SETEX, GET, etc., should be recorded, even when using Redis in Cluster mode.

Actual Result

Only generic spans (e.g., CLUSTER, GET) appear.

No visibility into actual user commands like SETEX.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomp:instrumentation.stackexchangeredisThings related to OpenTelemetry.Instrumentation.StackExchangeRedis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions