If these properties are manually configured, use only
falsefor boolean values.
The behaviour of the Scope Agent can be modified using environment variables or a configuration file
scope.yml in the source root of the project.
These configuration settings can also be provided via CLI flags. Check out the CLI reference documentation for details.
Disabling Scope instrumentation
Scope auto instruments your code and tests by default. You can disable this behaviour.
Changing service name
You can specify the name of the service when sending data to Scope. Scope uses
default as fallback.
Setting Scope as Global Tracer
If you set Scope as OpenTracing Global Tracer, your own spans will be captured and shown as part of the Scope trace view for a certain test.
Change testing mode
This variable indicates whether the agent is running tests (
true) or it is being used for runtime instrumentation (
SCOPE_TESTING_MODE is not specified, the agent sets to
Adding agent metadata
You can send arbitrary metadata for every test associated with certain commit which will be shown in Scope.
Additionally, it is possible to set an environment variable as metadata value for a certain key, whose final value will be evaluated at runtime.
Include DB statements values in DB span tags
You can include DB statement values in the related DB spans.
By default, Scope Python Agent will not send DB statement values as they are considered sensitive information.
Include HTTP payloads in HTTP span tags
You can include HTTP payloads in the related HTTP spans, truncated to the first 512 bytes.
By default, Scope Python Agent will not send HTTP payloads as they are considered sensitive information.
Include additional HTTP Headers in HTTP span tags
You can include additional HTTP Headers in HTTP span tags.
By default, Scope Python agent will send common HTTP headers, filtering the content of those which can contain sensitive information:
Note that the content of every header configured explicitly to be shown in the HTTP span tags will not be redacted.
You can add Code Path information that will show the executed lines in a certain test at a certain commit.
Scope Intelligent Test Runner
Scope's Intelligent Test Runner will selectively run only the subset of tests affected by code changes. For more information go to Scope Intelligent Test Runner.
Enable or disable
Through this configuration parameter you can enable or disable Scope Intelligent Test Runner. The rest of
runner configuration parameters will have no effect if
enabled is false.
This parameter determines the number of times a test will be retried if it fails.
Included and excluded branches
There are two parameters to control the branches in which you want to run the Scope Intelligent Test Runner:
runner.exclude_branches. The way they work is the following:
runner.include_branchesis configured, only configured branches are included.
runner.exclude_branchesis configured, all branches except configured branches are included.
- If both
runner.exclude_branchesare configured, the runner will only take into account
runner.include_branches. If the same branch is configured, a warning message will be shown.