release(v6.2.0): telemetry endpoint_type field#138
Merged
saurabhjain1592 merged 3 commits intomainfrom Apr 8, 2026
Merged
Conversation
#1525 — Add endpoint_type field to checkpoint telemetry - New _classify_endpoint() helper in axonflow/telemetry.py classifies the configured URL into one of: localhost, private_network, remote, unknown. The raw URL is never sent or hashed — only the classification. - _build_payload() now threads endpoint_type through; _do_ping() calls the classifier using the agent endpoint from the client config. - 11 new unit tests cover localhost (hostname, IPv4, IPv6, 0.0.0.0, *.localhost), private network (RFC1918 v4, link-local, *.local, *.internal, *.lan, *.intranet), remote (public IPv4, public hostnames), malformed URLs (unknown), and case-insensitivity. - The payload test explicitly asserts no URL-shaped strings leak into the serialized payload. Version bumps: - axonflow/_version.py: 6.1.0 → 6.2.0 - pyproject.toml: 6.0.0 → 6.2.0 (was a stale version-mismatch bug)
- Extract _LOCALHOST_HOSTS frozenset to scope the S104 'bind to all interfaces' lint suppression to the tuple literal (0.0.0.0 is a valid localhost indicator in a client-endpoint context) - Split try/else to satisfy TRY300 (return statement should be in else block, not after try) - Sort imports in test file (I001) - Keep PLR0911 too-many-returns ignore as noqa comment (splitting the classifier further would hurt readability without benefit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships Python SDK v6.2.0 (dated 2026-04-09) with the new telemetry
endpoint_typefield from issue #1525 (tracked in axonflow-enterprise).Changes
endpoint_typeclassifier inaxonflow/telemetry.py: classifies the configured endpoint intolocalhost/private_network/remote/unknownon the SDK side. The raw URL is never sent or hashed.*.internal/*.local/*.lan/*.intranethostnames, remote public hostnames, malformed URLs, case insensitivity, and an explicit test that the payload contains no URL-shaped strings.axonflow/_version.py6.1.0 → 6.2.0pyproject.toml6.0.0 → 6.2.0 (was a stale mismatch — both should track together)Non-goals (explicit)
deployment_modebased on URLTest plan
pytest tests/test_telemetry_endpoint_type.pypasses (11/11)endpoint_typedimension after lambda updateRelated