Skip to content

Commit 86fdc79

Browse files
committed
cleanup
1 parent 9981f89 commit 86fdc79

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/langtrace_python_sdk/instrumentation/pymongo/instrumentation.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@ def instrumentation_dependencies(self) -> Collection[str]:
3232
return ["pymongo >= 4.0.0"]
3333

3434
def _instrument(self, **kwargs):
35-
tracer_provider = kwargs.get("tracer_provider")
36-
tracer = get_tracer(__name__, "", tracer_provider)
37-
version = v("pymongo")
38-
_W(
39-
module="pymongo.collection",
40-
name="Collection.find",
41-
wrapper=generic_patch(version, tracer),
42-
)
35+
pass
4336

4437
def _uninstrument(self, **kwargs):
4538
pass
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
def generic_patch(version, tracer):
22
def traced_method(wrapped, instance, args, kwargs):
3-
print("kwargs", kwargs)
4-
print("args", args)
5-
print("instance", instance)
63
wrapped(*args, **kwargs)
74

85
return traced_method

0 commit comments

Comments
 (0)