Improve observability (#834)

* API generation

* Added correlation id support

* Updated docs

* Updated test

* Updated code generation

* API generation

* Updated code generation

* Added support for client name and custom context object

* Updated docs

* Updated test

* Fix docs

* Updated docs

* Added id support also for sniffing

* Updated test

* Update docs/observability.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Update docs/observability.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Apply suggestions

* Update docs/configuration.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Update docs/configuration.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Update docs/observability.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Update docs/observability.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Update docs/observability.asciidoc

Co-Authored-By: delvedor <delvedor@users.noreply.github.com>

* Apply suggestions

* Updated README.md

* Fixed test

* Addressed suggestions
This commit is contained in:
Tomas Della Vedova
2019-05-03 17:23:40 +02:00
committed by delvedor
parent 9dacd9d9ee
commit b1458e3511
279 changed files with 2436 additions and 142 deletions

View File

@ -40,6 +40,8 @@ test('Should emit a request event when a request is performed', t => {
headers: null,
warnings: null,
meta: {
context: null,
name: 'elasticsearch-js',
request: {
params: {
method: 'GET',
@ -59,7 +61,8 @@ test('Should emit a request event when a request is performed', t => {
headers: null,
compression: false,
warnings: null
}
},
id: 1
},
connection: {
id: 'http://localhost:9200'
@ -98,6 +101,8 @@ test('Should emit a response event in case of a successful response', t => {
},
warnings: null,
meta: {
context: null,
name: 'elasticsearch-js',
request: {
params: {
method: 'GET',
@ -117,7 +122,8 @@ test('Should emit a response event in case of a successful response', t => {
headers: null,
compression: false,
warnings: null
}
},
id: 1
},
connection: {
id: 'http://localhost:9200'
@ -154,6 +160,8 @@ test('Should emit a response event with the error set', t => {
headers: null,
warnings: null,
meta: {
context: null,
name: 'elasticsearch-js',
request: {
params: {
method: 'GET',
@ -173,7 +181,8 @@ test('Should emit a response event with the error set', t => {
headers: null,
compression: false,
warnings: null
}
},
id: 1
},
connection: {
id: 'http://localhost:9200'