File tree 4 files changed +17
-2
lines changed
instrumentation-genai/opentelemetry-instrumentation-openai-v2
opentelemetry-instrumentation/src/opentelemetry/instrumentation
4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
16
16
- ` opentelemetry-instrumentation-sqlalchemy ` Update unit tests to run with SQLALchemy 2
17
17
([ #2976 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2976 ) )
18
+ - Add ` opentelemetry-instrumentation-openai-v2 ` to ` opentelemetry-bootstrap `
19
+ ([ #2996 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2996 ) )
18
20
19
21
### Fixed
20
22
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies = [
32
32
33
33
[project .optional-dependencies ]
34
34
instruments = [
35
- " openai >= 1.0 .0" ,
35
+ " openai >= 1.26 .0" ,
36
36
]
37
37
38
38
[project .entry-points .opentelemetry_instrumentor ]
Original file line number Diff line number Diff line change 16
16
# RUN `python scripts/generate_instrumentation_bootstrap.py` TO REGENERATE.
17
17
18
18
libraries = [
19
+ {
20
+ "library" : "openai >= 1.26.0" ,
21
+ "instrumentation" : "opentelemetry-instrumentation-openai-v2==2.1b0.dev" ,
22
+ },
19
23
{
20
24
"library" : "aio_pika >= 7.2.0, < 10.0.0" ,
21
25
"instrumentation" : "opentelemetry-instrumentation-aio-pika==0.50b0.dev" ,
Original file line number Diff line number Diff line change 21
21
scripts_path = os .path .dirname (os .path .abspath (__file__ ))
22
22
root_path = os .path .dirname (scripts_path )
23
23
instrumentations_path = os .path .join (root_path , "instrumentation" )
24
+ genai_instrumentations_path = os .path .join (root_path , "instrumentation-genai" )
24
25
25
26
26
27
def get_instrumentation_packages ():
27
- for pkg in sorted (os .listdir (instrumentations_path )):
28
+ pkg_paths = []
29
+ for pkg in os .listdir (instrumentations_path ):
28
30
pkg_path = os .path .join (instrumentations_path , pkg )
29
31
if not os .path .isdir (pkg_path ):
30
32
continue
33
+ pkg_paths .append (pkg_path )
34
+ for pkg in os .listdir (genai_instrumentations_path ):
35
+ pkg_path = os .path .join (genai_instrumentations_path , pkg )
36
+ if not os .path .isdir (pkg_path ):
37
+ continue
38
+ pkg_paths .append (pkg_path )
31
39
40
+ for pkg_path in sorted (pkg_paths ):
32
41
try :
33
42
version = subprocess .check_output (
34
43
"hatch version" ,
You can’t perform that action at this time.
0 commit comments