Skip to content

Commit 8c4fca5

Browse files
authored
Update environment variable names (open-telemetry#904)
1 parent fc58032 commit 8c4fca5

File tree

17 files changed

+63
-61
lines changed

17 files changed

+63
-61
lines changed

docs/examples/django/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Execution of the Django app
3636

3737
Set these environment variables first:
3838

39-
#. ``export OPENTELEMETRY_PYTHON_DJANGO_INSTRUMENT=True``
39+
#. ``export OTEL_PYTHON_DJANGO_INSTRUMENT=True``
4040
#. ``export DJANGO_SETTINGS_MODULE=instrumentation_example.settings``
4141

4242
The way to achieve OpenTelemetry instrumentation for your Django app is to use

ext/opentelemetry-ext-django/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Update environment variable names, prefix changed from `OPENTELEMETRY` to `OTEL` ([#904](https://github.com/open-telemetry/opentelemetry-python/pull/904))
6+
57
## Version 0.11b0
68

79
Released 2020-07-28

ext/opentelemetry-ext-django/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Configuration
2020

2121
Exclude lists
2222
*************
23-
To exclude certain URLs from being tracked, set the environment variable ``OPENTELEMETRY_PYTHON_DJANGO_EXCLUDED_URLS`` with comma delimited regexes representing which URLs to exclude.
23+
To exclude certain URLs from being tracked, set the environment variable ``OTEL_PYTHON_DJANGO_EXCLUDED_URLS`` with comma delimited regexes representing which URLs to exclude.
2424

2525
For example,
2626

2727
::
2828

29-
export OPENTELEMETRY_PYTHON_DJANGO_EXCLUDED_URLS="client/.*/info,healthcheck"
29+
export OTEL_PYTHON_DJANGO_EXCLUDED_URLS="client/.*/info,healthcheck"
3030

3131
will exclude requests such as ``https://site/client/123/info`` and ``https://site/xyz/healthcheck``.
3232

ext/opentelemetry-ext-django/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717

1818
def pytest_sessionstart(session): # pylint: disable=unused-argument
19-
environ.setdefault("OPENTELEMETRY_PYTHON_DJANGO_INSTRUMENT", "True")
19+
environ.setdefault("OTEL_PYTHON_DJANGO_INSTRUMENT", "True")

ext/opentelemetry-ext-elasticsearch/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
## Unreleased
44

5+
- Update environment variable names, prefix changed from `OPENTELEMETRY` to `OTEL` ([#904](https://github.com/open-telemetry/opentelemetry-python/pull/904))
6+
57
## Version 0.10b0
68

79
Released 2020-06-23
810

9-
- Initial release
11+
- Initial release

ext/opentelemetry-ext-elasticsearch/src/opentelemetry/ext/elasticsearch/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
---
4141
4242
Elasticsearch instrumentation prefixes operation names with the string "Elasticsearch". This
43-
can be changed to a different string by either setting the `OPENTELEMETRY_PYTHON_ELASTICSEARCH_NAME_PREFIX`
43+
can be changed to a different string by either setting the `OTEL_PYTHON_ELASTICSEARCH_NAME_PREFIX`
4444
environment variable or by passing the prefix as an argument to the instrumentor. For example,
4545
4646
@@ -88,8 +88,7 @@ class ElasticsearchInstrumentor(BaseInstrumentor):
8888
def __init__(self, span_name_prefix=None):
8989
if not span_name_prefix:
9090
span_name_prefix = environ.get(
91-
"OPENTELEMETRY_PYTHON_ELASTICSEARCH_NAME_PREFIX",
92-
"Elasticsearch",
91+
"OTEL_PYTHON_ELASTICSEARCH_NAME_PREFIX", "Elasticsearch",
9392
)
9493
self._span_name_prefix = span_name_prefix.strip()
9594
super().__init__()

ext/opentelemetry-ext-elasticsearch/tests/test_elasticsearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_prefix_arg(self, request_mock):
9595

9696
def test_prefix_env(self, request_mock):
9797
prefix = "prefix-from-args"
98-
env_var = "OPENTELEMETRY_PYTHON_ELASTICSEARCH_NAME_PREFIX"
98+
env_var = "OTEL_PYTHON_ELASTICSEARCH_NAME_PREFIX"
9999
os.environ[env_var] = prefix
100100
ElasticsearchInstrumentor().uninstrument()
101101
ElasticsearchInstrumentor().instrument()

ext/opentelemetry-ext-flask/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Unreleased
44

5-
## Version 0.11b0
5+
- Update environment variable names, prefix changed from `OPENTELEMETRY` to `OTEL` ([#904](https://github.com/open-telemetry/opentelemetry-python/pull/904))
66

7-
Released 2020-07-28
7+
## Version 0.11b0
88

99
- Use one general exclude list instead of two ([#872](https://github.com/open-telemetry/opentelemetry-python/pull/872))
1010

ext/opentelemetry-ext-flask/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Configuration
2121

2222
Exclude lists
2323
*************
24-
To exclude certain URLs from being tracked, set the environment variable ``OPENTELEMETRY_PYTHON_FLASK_EXCLUDED_URLS`` with comma delimited regexes representing which URLs to exclude.
24+
To exclude certain URLs from being tracked, set the environment variable ``OTEL_PYTHON_FLASK_EXCLUDED_URLS`` with comma delimited regexes representing which URLs to exclude.
2525

2626
For example,
2727

2828
::
2929

30-
export OPENTELEMETRY_PYTHON_FLASK_EXCLUDED_URLS="client/.*/info,healthcheck"
30+
export OTEL_PYTHON_FLASK_EXCLUDED_URLS="client/.*/info,healthcheck"
3131

3232
will exclude requests such as ``https://site/client/123/info`` and ``https://site/xyz/healthcheck``.
3333

ext/opentelemetry-ext-pyramid/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Unreleased
44

5-
## Version 0.11b0
5+
- Update environment variable names, prefix changed from `OPENTELEMETRY` to `OTEL` ([#904](https://github.com/open-telemetry/opentelemetry-python/pull/904))
66

7-
Released 2020-07-28
7+
## Version 0.11b0
88

99
- Use one general exclude list instead of two ([#872](https://github.com/open-telemetry/opentelemetry-python/pull/872))
1010

1111
## 0.9b0
1212

1313
Released 2020-06-10
1414

15-
- Initial release
15+
- Initial release

0 commit comments

Comments
 (0)