Skip to content

Commit 4542317

Browse files
authored
docs(language-sdks/python): Fix import and f-string (#4257)
* Import `os` so we can use `os.getenv()` * In order for the contents of a string to be evaluated it needs to start with `f`
1 parent d410cdf commit 4542317

File tree

1 file changed

+2
-1
lines changed
  • docs/sources/configure-client/language-sdks

1 file changed

+2
-1
lines changed

docs/sources/configure-client/language-sdks/python.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pyroscope.configure(
6666
Optionally, you can configure several additional parameters:
6767

6868
```python
69+
import os
6970
import pyroscope
7071

7172
pyroscope.configure(
@@ -77,7 +78,7 @@ pyroscope.configure(
7778
gil_only = True, # only include traces for threads that are holding on to the Global Interpreter Lock; default is True
7879
enable_logging = True, # does enable logging facility; default is False
7980
tags = {
80-
"region": '{os.getenv("REGION")}',
81+
"region": f'{os.getenv("REGION")}',
8182
}
8283
)
8384
```

0 commit comments

Comments
 (0)