-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tags in stats #4232
Add tags in stats #4232
Conversation
stat_tag = MAP_JOURNEY_TAG.get(tag, stat_pb2.JOURNEY_TAG_UNKNOWN) | ||
if stat_tag == stat_pb2.JOURNEY_TAG_UNKNOWN: | ||
logging.getLogger(__name__).warning("Stat tag not found for {} navitia tag.".format(tag)) | ||
result.add(stat_tag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure it is worthwhile to add the tag JOURNEY_TAG_UNKNOWN
to the stats proto message 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of empty value, better to use this one.
We better not communicate this information to any client and use only for internal analysis.
stat_tag = MAP_JOURNEY_TAG.get(tag, stat_pb2.JOURNEY_TAG_UNKNOWN) | ||
if stat_tag == stat_pb2.JOURNEY_TAG_UNKNOWN: | ||
logging.getLogger(__name__).warning("Stat tag not found for {} navitia tag.".format(tag)) | ||
result.add(stat_tag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of empty value, better to use this one.
We better not communicate this information to any client and use only for internal analysis.
|
Jira: NAV-2814