Skip to content

Commit

Permalink
docs(config): add instrumentIncomingHTTPRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
Qard committed Sep 11, 2019
1 parent 6da4e06 commit e993455
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/configuration.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ A boolean specifying if the agent should collect performance metrics for the app

Note that both `active` and `instrument` needs to be `true` for instrumentation to be running.

[[instrument-incoming-http-requests]]
==== `instrumentIncomingHTTPRequests?:`

* *Type:* Boolean
* *Default:* `true`
* *Env:* `ELASTIC_APM_INSTRUMENT_INCOMING_HTTP_REQUESTS`

A boolean specifying if the agent should instrument incoming HTTP requests.

To configure if outgoing http requests should be instrumented,
see <<disable-instrumentations, `disableInstrumentations`>>.

[[central-config]]
==== `centralConfig`

Expand Down Expand Up @@ -660,6 +672,9 @@ see the https://github.com/elastic/apm-agent-nodejs/tree/master/lib/instrumentat
Note that not all modules represented in this directory will generate spans,
and adding those to this array has no effect.

To configure if incoming http requests should be instrumented,
see <<instrument-incoming-http-requests, `instrumentIncomingHTTPRequests`>>.

[[container-id]]
==== `containerId`

Expand Down
1 change: 0 additions & 1 deletion test/instrumentation/modules/http/disabling.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ if (cluster.isMaster) {
fn(res)
})
req.on('error', reject)
req.end()
})
}

Expand Down

0 comments on commit e993455

Please sign in to comment.