File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
src/opentelemetry/file_configuration/_internal
opentelemetry-sdk/src/opentelemetry/sdk/trace Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 4
4
@session (python = ["3.11" ], reuse_venv = True )
5
5
def test (session ):
6
6
session .install ("." )
7
- session .install ("-r" , "requirements.txt" )
8
- session .install ("../opentelemetry-api" )
9
- session .install ("../opentelemetry-semantic-conventions" )
7
+ # session.install("-r", "requirements.txt")
8
+ # session.install("../opentelemetry-api")
9
+ # session.install("../opentelemetry-semantic-conventions")
10
10
session .install ("../opentelemetry-sdk" )
11
11
12
12
if session .posargs :
Original file line number Diff line number Diff line change @@ -161,6 +161,9 @@ def function(probability: float) -> SometimesMondaysOnSampler:
161
161
162
162
def resolve_schema (json_file_path ) -> dict :
163
163
164
+ from ipdb import set_trace
165
+ set_trace ()
166
+
164
167
root_path = json_file_path .absolute ()
165
168
166
169
with open (json_file_path , "r" ) as json_file :
Original file line number Diff line number Diff line change @@ -1211,12 +1211,10 @@ def __init__(
1211
1211
else :
1212
1212
self ._resource = resource
1213
1213
1214
- 1 / 0
1215
-
1214
+ self ._shutdown_on_exit = shutdown_on_exit
1216
1215
if not sampler :
1217
1216
# sampler = sampling._get_from_env_or_default()
1218
1217
self .sampler = 1
1219
- self ._shutdown_on_exit = self ._shutdown_on_exit
1220
1218
self .sampler = sampler
1221
1219
self ._span_limits = span_limits or SpanLimits ()
1222
1220
disabled = environ .get (OTEL_SDK_DISABLED , "" )
@@ -1227,8 +1225,6 @@ def __init__(
1227
1225
self ._atexit_handler = atexit .register (self .shutdown )
1228
1226
1229
1227
def __repr__ (self ) -> str :
1230
- from ipdb import set_trace
1231
- set_trace ()
1232
1228
return (
1233
1229
f"{ self .__class__ .__name__ } ("
1234
1230
f"sampler={ repr (self .sampler )} ,"
You can’t perform that action at this time.
0 commit comments