Skip to content
Snippets Groups Projects
Verified Commit e993e87b authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Fix mypy error for setting datetime as span attribute

#2
parent 59ac82a1
No related branches found
No related tags found
1 merge request!3Resolve "Add CRUD Repository for resources"
Pipeline #41761 passed
......@@ -50,5 +50,7 @@ async def get_s3_bucket_object(s3: S3ServiceResource, bucket_name: str, key: str
await obj.load()
except ClientError:
return None
span.set_attributes({"size": await obj.size, "last_modified": await obj.last_modified, "etag": await obj.e_tag})
span.set_attributes(
{"size": await obj.size, "last_modified": (await obj.last_modified).isoformat(), "etag": await obj.e_tag}
)
return obj
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment