Skip to content

Commit

Permalink
Merge branch 'main' into exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
Hansrajr committed Jan 7, 2025
2 parents dae5f70 + 1ebee9c commit 7e5984a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/monocle_apptrace/instrumentation/common/instrumentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ def _instrument(self, **kwargs):
wrapped_by(tracer, handler, method_config),
)
self.instrumented_method_list.append(method_config)
except ModuleNotFoundError as e:
logger.debug(f"ignoring module {e.name}")

except Exception as ex:
logger.error(f"""_instrument wrap Exception: {str(ex)}
logger.error(f"""_instrument wrap exception: {str(ex)}
for package: {target_package},
object:{target_object},
method:{target_method}""")
Expand All @@ -100,7 +103,7 @@ def _uninstrument(self, **kwargs):
wrap_method,
)
except Exception as ex:
logger.error(f"""_instrument unwrap Exception: {str(ex)}
logger.error(f"""_instrument unwrap exception: {str(ex)}
for package: {wrap_package},
object:{wrap_object},
method:{wrap_method}""")
Expand Down

0 comments on commit 7e5984a

Please sign in to comment.