Skip to content

Nexus's OpContext could store the request ID when it's available #8718

@bnaecker

Description

@bnaecker

This came up in conversations on #8566. Nexus uses the OpContext to keep a bunch of relevant information about what it's doing. One major reason for this is that we can trace the operations Nexus takes in response to things like an external API request. But we don't currently store the request ID we get as part of the Dropshot request anywhere! We should.

Note that we don't always have a request ID, such as if we've created a context object for background tasks or saga execution. But for internal / external API requests, we do, and we could cache that in the OpKind inside the context object.

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