logfire icon indicating copy to clipboard operation
logfire copied to clipboard

Please add AWS S3 instrumentation support

Open cdeil opened this issue 5 months ago • 1 comments

Description

We are using AWS S3 in a FastAPI app and I'd like to monitor it (start, end, bytes, timeouts) since I think it's the slow part in many of our requests.

We are using cloudlibpath.s3client but I think that's using boto3 in the background, so opentelemetry-instrumentation-botocore should work for us.

Could you please support that, presumably via a logfire.instrument_boto3 or logfire.instrument_s3 function or something like that?

I'm new to OTel, so apologies if the feature request is too vague or incorrect somehow.

In the meantime for now could I use logfire for most things but for S3 use opentelemetry-instrumentation-botocore?

cdeil avatar Jul 30 '25 15:07 cdeil

This should work:

from opentelemetry.instrumentation.botocore import BotocoreInstrumentor
import logfire

logfire.configure()
BotocoreInstrumentor().instrument()

alexmojaki avatar Jul 30 '25 15:07 alexmojaki