Skip to content

Commit 29805ef

Browse files
committed
WIP
1 parent 88e3ea4 commit 29805ef

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

_file_configuration/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
@session(python=["3.11"], reuse_venv=True)
55
def test(session):
66
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")
1010
session.install("../opentelemetry-sdk")
1111

1212
if session.posargs:

_file_configuration/src/opentelemetry/file_configuration/_internal/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ def function(probability: float) -> SometimesMondaysOnSampler:
161161

162162
def resolve_schema(json_file_path) -> dict:
163163

164+
from ipdb import set_trace
165+
set_trace()
166+
164167
root_path = json_file_path.absolute()
165168

166169
with open(json_file_path, "r") as json_file:

opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,12 +1211,10 @@ def __init__(
12111211
else:
12121212
self._resource = resource
12131213

1214-
1 / 0
1215-
1214+
self._shutdown_on_exit = shutdown_on_exit
12161215
if not sampler:
12171216
# sampler = sampling._get_from_env_or_default()
12181217
self.sampler = 1
1219-
self._shutdown_on_exit = self._shutdown_on_exit
12201218
self.sampler = sampler
12211219
self._span_limits = span_limits or SpanLimits()
12221220
disabled = environ.get(OTEL_SDK_DISABLED, "")
@@ -1227,8 +1225,6 @@ def __init__(
12271225
self._atexit_handler = atexit.register(self.shutdown)
12281226

12291227
def __repr__(self) -> str:
1230-
from ipdb import set_trace
1231-
set_trace()
12321228
return (
12331229
f"{self.__class__.__name__}("
12341230
f"sampler={repr(self.sampler)},"

0 commit comments

Comments
 (0)