Skip to content

Commit

Permalink
Disable XHR auto-instrumentation by default, update OpenTracing version
Browse files Browse the repository at this point in the history
  • Loading branch information
bcronin committed Mar 30, 2016
1 parent ddd3caa commit 0cffe1f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -58,7 +58,7 @@ test_all: build

# This is not run by default as currently too many tests fail
lint:
node_modules/eslint/bin/eslint.js --color src
node node_modules/eslint/bin/eslint.js --color src

# Dev convenience for automatically rebuilding on file changes
watch:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -46,7 +46,7 @@ Tracer.initGlobalTracer(LightStep.tracer({

**Browser-specific initialization options**

* `xhr_instrumentation` `bool` - if false, disables automatic instrumentation of XMLHttpRequests (XHRs). This must be set at initialization; changes after initialization will have no effect. Defaults to true.
* `xhr_instrumentation` `bool` - if false, disables automatic instrumentation of XMLHttpRequests (XHRs). This must be set at initialization; changes after initialization will have no effect. Defaults to false.

* `xhr_url_inclusion_patterns` `RegExp[]` - an array of regular expressions used to whitelist URLs for `XMLHttpRequest` auto-instrumentation. The default value is wildcard matching all strings. For a given URL to be instrumented, it must match at least one regular expression in `xhr_url_inclusion_patterns` and not match any regular expressions in `xhr_url_exclusion_patterns`.

Expand Down
2 changes: 1 addition & 1 deletion examples/browser-trivial/opentracing-browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0cffe1f

Please sign in to comment.