Skip to content

Add IoT Metrics Support#959

Merged
xiazhvera merged 37 commits intomainfrom
iot_metrics
Apr 7, 2026
Merged

Add IoT Metrics Support#959
xiazhvera merged 37 commits intomainfrom
iot_metrics

Conversation

@xiazhvera
Copy link
Copy Markdown
Contributor

@xiazhvera xiazhvera commented Jan 5, 2026

Issue #, if available:

Description of changes:

  • Bind IoTDeviceSDKMetrics and metrics related features , CRT is now appending AWS metrics by default.
  • Add enableMetrics option to allow user disable metrics.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment thread src/native/iot_device_sdk_metrics.h Outdated
Comment thread src/native/iot_device_sdk_metrics.h Outdated
Comment thread src/native/mqtt_connection.c
Comment thread src/native/mqtt_connection.c
Comment thread src/native/mqtt5_client.c
* @internal
* IoT Device SDK Metrics Structure
*/
public class IoTDeviceSDKMetrics {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trivial: This is an internal class, should we make this private in some way?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class must be public because it's used across different packages within the library:

  • software.amazon.awssdk.crt.mqtt.MqttClientConnection
  • software.amazon.awssdk.crt.mqtt5.Mqtt5ClientOptions

Java's package-private visibility only works within the same package, so it has to be public as it is used cross packages.
We added it to Internal Package to indicate it is not a public API

Copy link
Copy Markdown
Contributor

@sbSteveK sbSteveK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix and ship

@xiazhvera xiazhvera merged commit 65e4e97 into main Apr 7, 2026
56 of 60 checks passed
@xiazhvera xiazhvera deleted the iot_metrics branch April 7, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants