Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Emmett Butler <[email protected]>
  • Loading branch information
majorgreys and emmettbutler authored Sep 8, 2023
1 parent 6a892fa commit 57317e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
11 changes: 1 addition & 10 deletions ddtrace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ._logger import configure_ddtrace_logger


# configure ddtrace logger before other modules log indeed
# configure ddtrace logger before other modules log
configure_ddtrace_logger() # noqa: E402

from ddtrace.internal import telemetry
Expand Down Expand Up @@ -46,15 +46,6 @@
# a global tracer instance with integration settings
tracer = Tracer()


# The telemetry writer is not started until data is queued but this creates a
# problem for CPython 3.12 which disallows thread creation at interpreter
# finalization. In order to support 3.12, we start the writer upon initialization.
# See https://github.com/python/cpython/pull/104826.
if sys.version_info >= (3, 12):
telemetry.telemetry_writer.enable()


__all__ = [
"patch",
"patch_all",
Expand Down
3 changes: 0 additions & 3 deletions ddtrace/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
from typing import TypeVar


# DELETEME: workaround to get circleci tests working


log = get_logger(__name__)


Expand Down
2 changes: 1 addition & 1 deletion hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [
"flake8-rst-docstrings",
"flake8-isort",
"pygments",
"riot==0.18.0",
"riot==0.19.0",
]

[envs.lint.scripts]
Expand Down

0 comments on commit 57317e6

Please sign in to comment.