Example
Parameters
StrandsTelemetry
required
StrandsTelemetry instance for configuring trace exporters
instrumentation_dependencies()
Return the list of packages required for instrumentation.Returns
Collection of package names with version constraints
instrument()
Enable automatic instrumentation of Strands agents. Activates the instrumentor by registering the StrandsSpanProcessor with the tracer provider and patching Agent.init to automatically inject FiddlerInstrumentationHook into all agent instances. This method is idempotent - calling it multiple times has the same effect as calling it once. After activation, all newly created agents will automatically include Fiddler’s instrumentation hook.Parameters
Any
Additional instrumentation configuration (currently unused)
Example
uninstrument()
Disable automatic instrumentation and restore original behavior. Deactivates the instrumentor by restoring the original Agent.init method. Agents created after calling this method will no longer have FiddlerInstrumentationHook automatically injected. Note: This does not affect agents that were already created while instrumentation was active - those will retain their hooks.Parameters
Any
Additional uninstrumentation configuration (currently unused)