Skip to content

Add IoT Metrics Support#959

Open
xiazhvera wants to merge 35 commits intomainfrom
iot_metrics
Open

Add IoT Metrics Support#959
xiazhvera wants to merge 35 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 on lines +49 to +52
// Indicates whether AWS IoT Metrics are enabled for this client, default to true.
// We don't expose this setting in the builder for now.
private IoTDeviceSDKMetrics iotDeviceSDKMetrics;
private boolean metricsEnabled = true;
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.

Is the "We don't expose this setting in the builder for now" part still true? There's withMetricsEnabled in Mqtt5ClientOptionsBuilder.

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.

We only allow user to enable/disable the metrics, but not directly make changes to the metrics. Let me update the comments to make it more clear.

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.

2 participants