Skip to content

feat: Support for tracing ID headers#126

Open
Anush008 wants to merge 1 commit intomasterfrom
tracing-headers
Open

feat: Support for tracing ID headers#126
Anush008 wants to merge 1 commit intomasterfrom
tracing-headers

Conversation

@Anush008
Copy link
Member

Built on top of #125

const results = await withHeaders({ 'x-request-id': 'abc-123' }, () =>
    client.query(...)
);
// Nesting merges headers
withHeaders({ 'x-request-id': 'outer' }, () => {
    withHeaders({ 'x-tracing-id': 'inner' }, () => {
        // both x-request-id and x-tracing-id are sent
        client.query(...);
    });
});

Signed-off-by: Anush008 <mail@anush.sh>
"dependencies": {
"@qdrant/openapi-typescript-fetch": "1.2.6",
"undici": "^6.23.0"
"undici": "^6.24.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

Recommended by pnpm audit --prod.

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.

2 participants