Skip to content

Commit 19358df

Browse files
committed
Move code definition and var
1 parent 46518b7 commit 19358df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ trace.set_tracer_provider(provider)
4747
"""
4848
CONFIGURATION
4949
"""
50-
code=f"{current_version}:{current_env}"
5150
current_version = "your-application-version"
5251
current_env = "your-application-envrionment"
52+
code=f"{current_version}:{current_env}"
5353
export_rate = 0.01
5454
repository_token="your-repository-profiling-token"
5555
untracked_export_rate = 0
@@ -140,9 +140,9 @@ If you are not using Django or Flask integration is still possible using the abo
140140

141141
## Configuration
142142

143-
- `code` -- A unique identifier for the current deployment across all environments where it may be deployed. Conventionally, this is a combination of version number and environment name, but can be anything as long as it is unique in each environment for the version being deployed.
144143
- `current_version` -- _(Required)_ The current version of the application. This can be semver, a commit SHA, or whatever is meaningful to you, but it should uniquely identify the particular version of the code.
145144
- `current_env` -- _(Required)_ The environment in which the application is currently running. Typically "production", but can be other values as well (e.g., "local" / "dev" for testing during setup of the package, "test" for instrumenting in your test environment, etc.)
145+
- `code` -- A unique identifier for the current deployment across all environments where it may be deployed. Conventionally, this is a combination of version number and environment name, but can be anything as long as it is unique in each environment for the version being deployed.
146146
- `export_rate` -- _(Required. Min: 0, Max: 1)_ The percentage of your application's calls that are instrumented using this package. Using this package does incur some performance overhead, and instrumenting 100% of calls is not required. Therefore, for most applications, it is recommended to use 0.01 to 0.05 as the default value. However, low traffic applications may want to use a larger number (such as 0.1 or more).
147147
- `repository_token` -- _(Required)_ The identifying token for this repository. Currently only obtainable by being selected for Codecov's [Runtime Insights Early Access Program](https://about.codecov.io/product/feature/runtime-insights/). It should be treated as a sensitive credential (e.g., not committed to source control, etc.)
148148
- `untracked_export_rate` -- Currently unused, should remain at 0.

0 commit comments

Comments
 (0)