Skip to content

Conversation

KyleKincer
Copy link

Resolves #2872

@monkey92t
Copy link
Collaborator

@vmihailenco reviewers?

attrs = append(attrs, mh.attrs...)
attrs = append(attrs, attribute.String("type", "command"))
attrs = append(attrs, statusAttr(err))
attrs = append(attrs, attribute.String("cmd", cmd.FullName()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use db.operation semconv.DBOperation attribute in semconv v1.24, or db.operation.name semconv.DBOperationName attribute in semconv v1.26,
instead of custom attribute cmd.

@ndyakov ndyakov requested review from monkey92t and ndyakov March 4, 2025 14:21
@ndyakov
Copy link
Member

ndyakov commented Mar 4, 2025

@monkey92t let's work on reviewing this one.

@monkey92t
Copy link
Collaborator

This doesn’t seem like a very good solution. Although there are only a few hundred Redis commands, whether it will impact OpenTelemetry requires investigation and testing.

@ndyakov
Copy link
Member

ndyakov commented Jun 5, 2025

closing for inactivity.

@ndyakov ndyakov closed this Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cmd.FullName in metrics attributes

5 participants