Skip to content

Add multiple span route support#215

Merged
guotuofeng merged 48 commits intoplugin/0.2from
myguo/multispan
Jun 3, 2021
Merged

Add multiple span route support#215
guotuofeng merged 48 commits intoplugin/0.2from
myguo/multispan

Conversation

@guotuofeng
Copy link
Contributor

Add multiple span route support (part 1)

@guotuofeng
Copy link
Contributor Author

#156

WORKER_PATTERN = re.compile(r"""^(.*?) # worker name
# TODO: uncomment the following line when we need supprort multiple steps
# (?:\.\d+)? # optional timestamp like 1619499959628
(\.\d+)? # optional timestamp like 1619499959628 used as step name
Copy link
Contributor

Choose a reason for hiding this comment

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

used as "span time", not "step time".

worker = match.group(1)
workers.append((worker, path))
span = match.group(2)
if span:
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested that when match.group(2) fails then span will be None?

@guotuofeng guotuofeng merged commit ece4086 into plugin/0.2 Jun 3, 2021
@guotuofeng guotuofeng deleted the myguo/multispan branch June 3, 2021 07:26
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.

4 participants