Skip to content

Starting navigation sends route retrieval performance event#1954

Merged
1ec5 merged 7 commits intomasterfrom
1ec5-event-route-retrieval
Feb 9, 2019
Merged

Starting navigation sends route retrieval performance event#1954
1ec5 merged 7 commits intomasterfrom
1ec5-event-route-retrieval

Conversation

@1ec5
Copy link
Contributor

@1ec5 1ec5 commented Feb 1, 2019

Send a route retrieval performance event, indicating how long a round-trip to the Directions API takes, when starting a navigation service (i.e., when starting navigation or getting rerouted). Instead of a single EventDetails class, now there are NavigationEventDetails and PerformanceEventDetails classes that share an EventDetails protocol.

This is a counterpart to mapbox/mapbox-navigation-android#1661 on Android that depends on mapbox/mapbox-events-ios#93 and mapbox/mapbox-directions-swift#335.

/cc @mapbox/navigation-ios @devotaaabel @rclee

@1ec5 1ec5 added this to the v0.29.0 milestone Feb 1, 2019
@1ec5 1ec5 self-assigned this Feb 1, 2019
@1ec5 1ec5 requested a review from JThramer February 1, 2019 19:17
Cartfile Outdated
Copy link
Contributor Author

@1ec5 1ec5 Feb 1, 2019

Choose a reason for hiding this comment

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

Ideally we’ll release MapboxDirections.swift v0.27.0 shortly before landing this PR. We’ll also need to update all three podspecs and the CocoaPods installation test’s podfiles to require the new release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just to demonstrate how we’d go about collecting analogous statistics about client-side route calculation if that were to become relevant in the future.

This comment was marked as outdated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never mind, we decided against storing the counters and attributes as flat dictionaries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is measured in seconds (as a floating-point number), but mapbox/mapbox-navigation-android#1661 implemented the field in nanoseconds as a long integer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@JThramer JThramer left a comment

Choose a reason for hiding this comment

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

1ec5 added 7 commits February 8, 2019 17:45
Send a route retrieval performance event, indicating how long a round-trip to the Directions API takes, when starting a navigation service (i.e., when starting navigation or getting rerouted).
This reverts commit 50593ae03a8293ee581c34dad642806474a66d1c.
@1ec5 1ec5 force-pushed the 1ec5-event-route-retrieval branch from 0bbee95 to 0576575 Compare February 9, 2019 01:49
@1ec5 1ec5 merged commit 4dd35f2 into master Feb 9, 2019
@1ec5 1ec5 deleted the 1ec5-event-route-retrieval branch February 9, 2019 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants