Automatic code instrumentation and best practices for tracing with Laminar
instrumentModules
parameter to specify which modules to instrument.
Automatic instrumentation of imported modules may work, but it depends on many factors, such as the bundler you are using.initialize()
accepts an optional instrumentModules
parameter.
If you explicitly pass an empty object, no automatic instrumentations will be applied.tsx
, but not for ts-node
.initialize()
accepts
an optional instrumentModules
parameter. It takes in an object with string keys
and values are the entire modules you have imported. In this case we only want to pass anthropic
.