Skip to content

Persist and restore trace headers in workqueue #554

@mattmoor

Description

@mattmoor

I left a TODO here tagging @tcnghia because he worked this magic for Pub/Sub:

writer.Metadata = map[string]string{
// TODO(nghia): Extract and persist things like trace headers here.
}

I'm guessing it's not a ton of work, but we need to extract the relevant headers and encode them above.

Then restore them here:

// Context implements workqueue.OwnedInProgressKey.
func (o *inProgressKey) Context() context.Context {
return o.ownerCtx
}

I also need to fix the dispatcher to properly use this Context() method, which is an oversight on my part, which I'll correct now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions