Redis component tracing doesn't include an error span when operations against Redis fail
Open
area-integrations
redis
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
Related #2907
An app using the Aspire Redis Component will not get an error span when a Redis operation fails due to the Redis instance not being responsive. There **are** spans for the Redis operation itself, but they seem to return after ~5 seconds if Redis is unavailable with no indication that there was an error. There are structured logs for the error but they are not associated with the trace/activity.
https://github.com/dotnet/aspire/assets/249088/459b9cee-758f-4b09-a436-47f459b41877
Not sure if this is an issue with `StackExchange.Redis` itself, or `OpenTelemetry.Instrumentation.StackExchangeRedis`, or the Aspire component.
Contributor guide
Assessment
This issue has not been assessed yet.