-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into async-requests
- Loading branch information
Showing
14 changed files
with
115 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# OpenTelemetry | ||
|
||
## Install Automatic Instrumentation | ||
|
||
* https://opentelemetry.io/docs/languages/python/automatic/ | ||
|
||
```shell | ||
python3 -m pip install -U opentelemetry-distro opentelemetry-exporter-otlp | ||
python3 -m pip install git+https://github.com/TheShellLand/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server | ||
opentelemetry-bootstrap --action install | ||
|
||
# python logging | ||
python3 -m pip install -U opentelemetry-instrumentation-logging | ||
|
||
# django | ||
python3 -m pip install -U opentelemetry-instrumentation-django | ||
``` | ||
|
||
## Known issues: | ||
|
||
### Problem 1 (fixed): | ||
|
||
fixed: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2053#issuecomment-1962248084 | ||
|
||
``` | ||
ERROR: No matching distribution found for opentelemetry-instrumentation-aiohttp-server==0.42b0 | ||
``` | ||
|
||
reference: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2053 | ||
|
||
Solution: | ||
|
||
* install using commit flag | ||
|
||
> I have added a new tag: 0.43b0hotfix. This can be used to install | ||
> opentelemetry-instrumentation-aiohttp-server and | ||
> opentelemetry-resource-detector-container with the following pip commands: | ||
opentelemetry-instrumentation-aiohttp-server: | ||
|
||
```shell | ||
python3 -m pip install git+https://github.com/open-telemetry/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server | ||
``` | ||
|
||
opentelemetry-resource-detector-container: | ||
|
||
```shell | ||
python3 -m pip install git+https://github.com/open-telemetry/[email protected]#subdirectory=resource/opentelemetry-resource-detector-container | ||
``` | ||
|
||
solution: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2053#issuecomment-1928485674 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .config import * |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM python:3 | ||
|
||
RUN python3 -m pip install -U opentelemetry-distro opentelemetry-exporter-otlp | ||
RUN python3 -m pip install git+https://github.com/TheShellLand/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server | ||
RUN opentelemetry-bootstrap --action install | ||
RUN python3 -m pip install -U opentelemetry-instrumentation-logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
# build image | ||
|
||
cd "$(dirname $0)" && set -xe | ||
|
||
docker build $@ -f Dockerfile -t opentelemetry-python . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# opentelemetry | ||
opentelemetry-distro>=0.44b0 | ||
opentelemetry-exporter-otlp>=1.22.0 | ||
opentelemetry-instrumentation-logging>=0.44b0 | ||
# workaround | ||
git+https://github.com/TheShellLand/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,13 @@ neo4j>=4.4.9 | |
python-keystoneclient>=4.2.0 | ||
python-swiftclient>=3.12.0 | ||
|
||
# opentelemetry | ||
opentelemetry-distro>=0.44b0 | ||
opentelemetry-exporter-otlp>=1.22.0 | ||
opentelemetry-instrumentation-logging>=0.44b0 | ||
# workaround | ||
git+https://github.com/TheShellLand/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server | ||
|
||
# splunk soar | ||
pytz>=2021.1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters