|
23 | 23 | logger = getLogger(__file__)
|
24 | 24 |
|
25 | 25 |
|
26 |
| -# target library to desired instrumentor path/versioned package name |
| 26 | +# A mapping of "target library" to "desired instrumentor path/versioned package |
| 27 | +# name". Used as part of the `opentelemetry-bootstrap` command which looks at |
| 28 | +# libraries used by the application that is to be instrumented, and handles |
| 29 | +# automatically installing the appropriate instrumentations for that app. |
| 30 | +# This helps for those who prefer to turn on as much instrumentation as |
| 31 | +# possible, and don't want to go through the manual process of combing through |
| 32 | +# the libraries their application uses to figure which one can be |
| 33 | +# instrumented. |
| 34 | +# NOTE: system-metrics is not to be included. |
27 | 35 | instrumentations = {
|
| 36 | + "aiohttp-client": "opentelemetry-instrumentation-aiohttp-client>=0.15b0", |
| 37 | + "aiopg": "opentelemetry-instrumentation-aiopg>=0.15b0", |
28 | 38 | "asgi": "opentelemetry-instrumentation-asgi>=0.11b0",
|
29 | 39 | "asyncpg": "opentelemetry-instrumentation-asyncpg>=0.11b0",
|
30 | 40 | "boto": "opentelemetry-instrumentation-boto>=0.11b0",
|
|
33 | 43 | "dbapi": "opentelemetry-instrumentation-dbapi>=0.8b0",
|
34 | 44 | "django": "opentelemetry-instrumentation-django>=0.8b0",
|
35 | 45 | "elasticsearch": "opentelemetry-instrumentation-elasticsearch>=0.11b0",
|
36 |
| - "fastapi": "opentelemetry-instrumentation-fastapi>=0.11b0", |
37 | 46 | "falcon": "opentelemetry-instrumentation-falcon>=0.13b0",
|
| 47 | + "fastapi": "opentelemetry-instrumentation-fastapi>=0.11b0", |
38 | 48 | "flask": "opentelemetry-instrumentation-flask>=0.8b0",
|
39 | 49 | "grpc": "opentelemetry-instrumentation-grpc>=0.8b0",
|
40 | 50 | "jinja2": "opentelemetry-instrumentation-jinja2>=0.8b0",
|
|
46 | 56 | "pyramid": "opentelemetry-instrumentation-pyramid>=0.11b0",
|
47 | 57 | "redis": "opentelemetry-instrumentation-redis>=0.8b0",
|
48 | 58 | "requests": "opentelemetry-instrumentation-requests>=0.8b0",
|
| 59 | + "sklearn": "opentelemetry-instrumentation-sklearn>=0.15b0", |
49 | 60 | "sqlalchemy": "opentelemetry-instrumentation-sqlalchemy>=0.8b0",
|
50 | 61 | "sqlite3": "opentelemetry-instrumentation-sqlite3>=0.11b0",
|
51 | 62 | "starlette": "opentelemetry-instrumentation-starlette>=0.11b0",
|
|
55 | 66 |
|
56 | 67 | # relevant instrumentors and tracers to uninstall and check for conflicts for target libraries
|
57 | 68 | libraries = {
|
| 69 | + "aiohttp-client": ("opentelemetry-instrumentation-aiohttp-client",), |
| 70 | + "aiopg": ("opentelemetry-instrumentation-aiopg",), |
58 | 71 | "asgi": ("opentelemetry-instrumentation-asgi",),
|
59 | 72 | "asyncpg": ("opentelemetry-instrumentation-asyncpg",),
|
60 | 73 | "boto": ("opentelemetry-instrumentation-boto",),
|
|
63 | 76 | "dbapi": ("opentelemetry-instrumentation-dbapi",),
|
64 | 77 | "django": ("opentelemetry-instrumentation-django",),
|
65 | 78 | "elasticsearch": ("opentelemetry-instrumentation-elasticsearch",),
|
66 |
| - "fastapi": ("opentelemetry-instrumentation-fastapi",), |
67 | 79 | "falcon": ("opentelemetry-instrumentation-falcon",),
|
| 80 | + "fastapi": ("opentelemetry-instrumentation-fastapi",), |
68 | 81 | "flask": ("opentelemetry-instrumentation-flask",),
|
69 | 82 | "grpc": ("opentelemetry-instrumentation-grpc",),
|
70 | 83 | "jinja2": ("opentelemetry-instrumentation-jinja2",),
|
|
76 | 89 | "pyramid": ("opentelemetry-instrumentation-pyramid",),
|
77 | 90 | "redis": ("opentelemetry-instrumentation-redis",),
|
78 | 91 | "requests": ("opentelemetry-instrumentation-requests",),
|
| 92 | + "sklearn": ("opentelemetry-instrumentation-sklearn",), |
79 | 93 | "sqlalchemy": ("opentelemetry-instrumentation-sqlalchemy",),
|
80 | 94 | "sqlite3": ("opentelemetry-instrumentation-sqlite3",),
|
81 | 95 | "starlette": ("opentelemetry-instrumentation-starlette",),
|
|
0 commit comments