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

Document the X-Opaque-Id header #8820

Merged
merged 7 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion _api-reference/common-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,17 @@ Kilometers | `km` or `kilometers`
Meters | `m` or `meters`
Centimeters | `cm` or `centimeters`
Millimeters | `mm` or `millimeters`
Nautical miles | `NM`, `nmi`, or `nauticalmiles`
Nautical miles | `NM`, `nmi`, or `nauticalmiles`

## `X-Opaque-Id` Header
andrross marked this conversation as resolved.
Show resolved Hide resolved

You can specify an opaque identifier on any request using the `X-Opaque-Id` header. This identifier is used to track tasks and deduplicate deprecation warnings in server side logs. This identifier is intended to differentiate callers into your OpenSearch cluster. Do not specify a unique value per request.
andrross marked this conversation as resolved.
Show resolved Hide resolved

#### Example request

The following request adds an opaque ID to the request:

```json

andrross marked this conversation as resolved.
Show resolved Hide resolved
curl -H "X-Opaque-Id: my-curl-client-1" -XGET localhost:9200/_tasks
```
andrross marked this conversation as resolved.
Show resolved Hide resolved