Skip to content

Commit b604e6d

Browse files
authored
Pass enableClientMeta option to transport (#2942)
1 parent eea0240 commit b604e6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ export default class Client extends API {
407407
productCheck: 'Elasticsearch',
408408
maxResponseSize: options.maxResponseSize,
409409
maxCompressedResponseSize: options.maxCompressedResponseSize,
410-
redaction: options.redaction
410+
redaction: options.redaction,
411+
// @ts-expect-error new option being added to transport in next minor
412+
enableClientMeta: options.enableMetaHeader
411413
}
412414
if (options.serverMode !== 'serverless') {
413415
transportOptions = Object.assign({}, transportOptions, {

0 commit comments

Comments
 (0)