Skip to content

spans(hostname, pid)#4

Merged
Voronenko merged 4 commits intomasterfrom
hostname-span
Jun 14, 2018
Merged

spans(hostname, pid)#4
Voronenko merged 4 commits intomasterfrom
hostname-span

Conversation

@Voronenko
Copy link

No description provided.

Voronenko and others added 2 commits June 7, 2018 15:17
* improve(tests) refactored to hostname/pid providers
* improve(tests)
@Voronenko Voronenko requested review from TizianoPerrucci and removed request for TizianoPerrucci June 12, 2018 16:36
@Voronenko Voronenko changed the title spans(hostname, pid) [WIP] spans(hostname, pid) Jun 12, 2018
@Voronenko Voronenko changed the title [WIP] spans(hostname, pid) spans(hostname, pid) Jun 12, 2018
@Voronenko Voronenko requested a review from craffit June 14, 2018 08:02
@Override
public long getPid() {
String processName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
return Long.parseLong(processName.split("@")[0]);
Copy link

Choose a reason for hiding this comment

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

I like to see some comment here why we split on the '@', or alternatively: this implementation is probably based on some StackOverflow post or example, I'd like to see a link to that as a way of documentation.

@Voronenko Voronenko merged commit 6312a13 into master Jun 14, 2018
@Voronenko Voronenko deleted the hostname-span branch June 14, 2018 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants