Skip to content

Commit d3ab94f

Browse files
authored
embed awsiotsdk version in metrics string, instead of awscrt (#175)
mqtt_connection_builder.py used to live inside awscrt, so that's what it queried. But now this code lives inside the SDK, and that's the version we really care about.
1 parent 8bf9c0a commit d3ab94f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awsiot/mqtt_connection_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _get_metrics_str():
115115
try:
116116
import pkg_resources
117117
try:
118-
version = pkg_resources.get_distribution("awscrt").version
118+
version = pkg_resources.get_distribution("awsiotsdk").version
119119
_metrics_str = "?SDK=PythonV2&Version={}".format(version)
120120
except pkg_resources.DistributionNotFound:
121121
_metrics_str = "?SDK=PythonV2&Version=dev"

0 commit comments

Comments
 (0)