Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTEL persistence context deadline #7208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephanos
Copy link
Contributor

@stephanos stephanos commented Jan 31, 2025

What changed?

Added "persistence.deadline" attributes to OTEL persistence span.

Why?

Add more details for debugging.

How did you test it?

Potential risks

Documentation

Is hotfix candidate?

@stephanos stephanos marked this pull request as ready for review January 31, 2025 21:26
@stephanos stephanos requested a review from a team as a code owner January 31, 2025 21:26
@stephanos stephanos requested a review from alexshtin January 31, 2025 21:36
if ok {
span.SetAttributes(attribute.String("rpc.request.timeout", deadline.Format(time.RFC3339Nano)))
if deadline, ok := ctx.Deadline(); ok {
span.SetAttributes(attribute.Int64("rpc.request.deadline", deadline.UnixNano()))
Copy link
Contributor Author

@stephanos stephanos Jan 31, 2025

Choose a reason for hiding this comment

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

I realized "deadline" is clearer. And UnixNano seems like a better choice, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant