-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MonitoringFactory does not trigger callbacks for PutObject and GetObject #3135
Comments
On checking the code, PutObject and GetObject for crt client doesn't invoke the monitoring callback methods. While we explore how to add support for this, please also consider using telemetry provider already available in client configuration. |
Monitor support for s3 crt client get/put object is underway. |
We use AWS monitoring to get the following information:
@sbera87 could you provide a sample code for telemetry provider that demonstrates how to obtain this information? |
So, telemetry provides tracer (for logging data points) and a meter (for statistics on data points).
Span: src/aws-cpp-sdk-core/include/smithy/tracing/TraceSpan.h Meter: src/aws-cpp-sdk-core/include/smithy/tracing/Meter.h Example usage in sdk:
Usage of meter:
How sdk measures http metrics:
It does mean that with telemetry provider you need to implement those hooks that are called in the sdk |
Monitoring has been added for the concerned S3 APIs. Will close this for now . If any issue faced, please reopen this or create a new issue. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Used C++ SDK version 1.11.407
During the application working there was calls fro requests:
HeadBucket
CreateSession
CreateBucket
ListObjectsV2
DeleteObjects
But for previous version of SDK there was triggered also:
PutObject
GetObject
Also we have moved from cUrl and WinHttp to S3Crt and CrtHttp.
Do you need something else?
Expected Behavior
MonitoringFactory triggers:
PutObject
GetObject
Current Behavior
MonitoringFactory does not trigger:
PutObject
GetObject
Reproduction Steps
Currently step 3 does not happens.
Possible Solution
No response
Additional Information/Context
Application build for Mac Win and Al2 operations systems.
AWS CPP SDK version used
1.11.407
Compiler and Version used
clang-1500.3.9.4,
Operating System and version
Windows_Server-2022-English-Full-Base-2024.06.13, amzn-ec2-macos-14.6.1-20240814-230108, Amazon Linux 2 AMI (HVM) - Kernel 5.10
The text was updated successfully, but these errors were encountered: