Skip to content

Commit 90edacf

Browse files
authored
Merge pull request #91 from autometrics-dev/envvars_feedback
Relax usage of environment variables
2 parents 0dd8e87 + be687b5 commit 90edacf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

specs/autometrics_v1.0.0.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ A URL to the user's project git or other scm repository. This SHOULD be a URL
316316
that makes sense for the repository type. For example, for a git repository, it
317317
MAY be a HTTP URL or a SSH URL.
318318

319-
A library MUST use the value from the `AUTOMETRICS_REPOSITORY_URL` environment
319+
A library SHOULD use the value from the `AUTOMETRICS_REPOSITORY_URL` environment
320320
variable, if set. It SHOULD also allow for a value to be specified in the
321321
initialization function. A library MAY also attempt to determine the repository
322322
by itself, but the user MUST be able to opt-out of this behavior.
@@ -328,7 +328,7 @@ use this to provider deeper integration. The value MUST be a freeform string to
328328
allow users to specify their own values.
329329

330330
A library MAY try to parse the `repository.url` to determine the provider. It
331-
MUST allow the user to specify their own value using the
331+
SHOULD allow the user to specify their own value using the
332332
`AUTOMETRICS_REPOSITORY_PROVIDER` environment variable. The library MAY use the
333333
initialization function to override this value as well.
334334

@@ -341,3 +341,4 @@ initialization function to override this value as well.
341341
- Add `caller.module` label to `function.calls` metric
342342
- Rename `caller` label to `caller.function` in `function.calls` metric
343343
- Add `repository.url` and `repository.provider` labels to `build_info` metric
344+
- Relax requirements of environment variables from MUST to SHOULD

0 commit comments

Comments
 (0)