Skip to content

Commit

Permalink
sp
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Jan 9, 2025
1 parent 348b029 commit 538935a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/django/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def cursor(django, pin, func, instance, args, kwargs):
tags = {"django.db.vendor": vendor, "django.db.alias": alias}
tags.update(getattr(conn, "_datadog_tags", {}))

# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deperecation warning.
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deprecation warning.
# Remove this if statement when the `tracer` argument is removed
if pin.tracer is ddtrace.tracer:
pin = Pin(service, tags=tags)
Expand Down
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/mongoengine/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __call__(self, *args, **kwargs):
client = self.__wrapped__(*args, **kwargs)
pin = ddtrace.Pin.get_from(self)
if pin:
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deperecation warning.
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deprecation warning.
# Remove this if statement when the `tracer` argument is removed
if pin.tracer is ddtrace.tracer:
ddtrace.Pin(service=pin.service).onto(client)
Expand Down
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/pylibmc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, client=None, service=memcached.SERVICE, tracer=None, *args, *
super(TracedClient, self).__init__(client)

schematized_service = schematize_service_name(service)
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deperecation warning.
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deprecation warning.
# Remove this if statement when the `tracer` argument is removed
if tracer is ddtrace.tracer:
pin = ddtrace.Pin(service=schematized_service)
Expand Down
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/sqlalchemy/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, tracer, service, engine):
self.name = schematize_database_operation("%s.query" % self.vendor, database_provider=self.vendor)

# attach the PIN
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deperecation warning.
# Calling ddtrace.pin.Pin(...) with the `tracer` argument generates a deprecation warning.
# Remove this if statement when the `tracer` argument is removed
if self.tracer is ddtrace.tracer:
Pin(service=self.service).onto(engine)
Expand Down
4 changes: 2 additions & 2 deletions ddtrace/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(
# type: (...) -> None
if tracer is not None:
deprecate(
"Initalizing ddtrace.Pin with `tracer` argument is deprecated",
"Initializing ddtrace.Pin with `tracer` argument is deprecated",
message="All Pin instances should use the global tracer instance",
removal_version="3.0.0",
)
Expand Down Expand Up @@ -208,7 +208,7 @@ def clone(

if tracer is not None:
deprecate(
"Initalizing ddtrace.Pin with `tracer` argument is deprecated",
"Initializing ddtrace.Pin with `tracer` argument is deprecated",
message="All Pin instances should use the global tracer instance",
removal_version="3.0.0",
)
Expand Down

0 comments on commit 538935a

Please sign in to comment.