Learn how to modify span attributes in OpenTelemetry instrumentation using two approaches: custom SpanProcessors and request hooks. The guide demonstrates adding S3 bucket names to spans when using boto3 with BotocoreInstrumentor, showing practical code examples for both the on_start method in SpanProcessor and request_hook parameter in instrumentation setup.

4m read timeFrom faun.pub
Post cover image
Table of contents
How To Modify Span Attributes In OpenTelemetry Instrumentation Using Hooks and Span ProcessorsMotivationHow to add S3 bucket name to span attributes in OpenTelemetryModifying span attributes using SpanProcessorModifying span attributes using request hook

Sort: