File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
## [ 1.5.0-0.24b0] ( https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.5.0-0.24b0 ) - 2021-08-26
15
15
16
16
17
+ - Add pre and post instrumentation entry points
18
+ ([ #1983 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/1983 ) )
17
19
- Fix documentation on well known exporters and variable OTEL_TRACES_EXPORTER which were misnamed
18
20
([ #2023 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/2023 ) )
19
21
- ` opentelemetry-sdk ` ` get_aggregated_resource() ` returns default resource and service name
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ def _load_instrumentors(distro):
60
60
# to handle users entering "requests , flask" or "requests, flask" with spaces
61
61
package_to_exclude = [x .strip () for x in package_to_exclude ]
62
62
63
+ for entry_point in iter_entry_points ("opentelemetry_pre_instrument" ):
64
+ entry_point .load ()()
65
+
63
66
for entry_point in iter_entry_points ("opentelemetry_instrumentor" ):
64
67
if entry_point .name in package_to_exclude :
65
68
logger .debug (
@@ -84,6 +87,9 @@ def _load_instrumentors(distro):
84
87
logger .exception ("Instrumenting of %s failed" , entry_point .name )
85
88
raise exc
86
89
90
+ for entry_point in iter_entry_points ("opentelemetry_post_instrument" ):
91
+ entry_point .load ()()
92
+
87
93
88
94
def _load_configurators ():
89
95
configured = None
You can’t perform that action at this time.
0 commit comments