Skip to content

Add IoT SDK Metrics V2 with feature encoding and metadata support#994

Open
rakshil14-2 wants to merge 5 commits into
mainfrom
iot_metrics_improvement
Open

Add IoT SDK Metrics V2 with feature encoding and metadata support#994
rakshil14-2 wants to merge 5 commits into
mainfrom
iot_metrics_improvement

Conversation

@rakshil14-2
Copy link
Copy Markdown

Issue #, if available:

Description of changes:

  • Added metadata entries support to IoTDeviceSDKMetrics for passing key-value metrics through JNI to aws-c-mqtt
  • Added IoTMetricEncoder that encodes CRT-level features (protocol, socket, TLS, proxy, jitter, session, queue, topic alias) into compact "ID/Value" format
  • Added metrics creation/merge logic : auto-sets CRTVersion, validates IoTSDKMetricsVersion before merging SDK features
  • Added user-configurable metrics API (withMetrics() / setMetrics()) for IoT SDK layer
  • Renamed metricsEnableddisableMetrics (opt-out pattern, default false)
  • Stored TLS cipher preference and min TLS version on TlsContext for feature reporting
  • Updated JNI layer to parse metadata entries list and pass to C
  • Added unit tests for encoding, merging, and version validation

Breaking changes:

  • withMetricsEnabled(boolean)withDisableMetrics(boolean)
  • getMetricsEnabled()getDisableMetrics()

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

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.

1 participant