Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Aug 23, 2024
1 parent 88e3ea4 commit 29805ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions _file_configuration/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
@session(python=["3.11"], reuse_venv=True)
def test(session):
session.install(".")
session.install("-r", "requirements.txt")
session.install("../opentelemetry-api")
session.install("../opentelemetry-semantic-conventions")
# session.install("-r", "requirements.txt")
# session.install("../opentelemetry-api")
# session.install("../opentelemetry-semantic-conventions")
session.install("../opentelemetry-sdk")

if session.posargs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def function(probability: float) -> SometimesMondaysOnSampler:

def resolve_schema(json_file_path) -> dict:

from ipdb import set_trace
set_trace()

root_path = json_file_path.absolute()

with open(json_file_path, "r") as json_file:
Expand Down
6 changes: 1 addition & 5 deletions opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,12 +1211,10 @@ def __init__(
else:
self._resource = resource

1 / 0

self._shutdown_on_exit = shutdown_on_exit
if not sampler:
# sampler = sampling._get_from_env_or_default()
self.sampler = 1
self._shutdown_on_exit = self._shutdown_on_exit
self.sampler = sampler
self._span_limits = span_limits or SpanLimits()
disabled = environ.get(OTEL_SDK_DISABLED, "")
Expand All @@ -1227,8 +1225,6 @@ def __init__(
self._atexit_handler = atexit.register(self.shutdown)

def __repr__(self) -> str:
from ipdb import set_trace
set_trace()
return (
f"{self.__class__.__name__}("
f"sampler={repr(self.sampler)},"
Expand Down

0 comments on commit 29805ef

Please sign in to comment.