Skip to content
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

beater/middleware: add trace/log correlation #3136

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

axw
Copy link
Member

@axw axw commented Jan 10, 2020

In the logging middleware, add trace.id and transaction.id fields if the request is being traced. If traced, reuse the transaction ID for the existing request_id field, rather than generating another UUID.

I have manually tested this with apm-integration-testing (using --with-filebeat), checking that a user can jump between the APM and Logs app in both directions.

Closes #3075

Copy link
Contributor

@simitt simitt left a comment

Choose a reason for hiding this comment

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

Great enhancement!

@axw axw force-pushed the log-trace-correlation branch from bc4ddea to f078975 Compare January 13, 2020 01:07
@axw axw merged commit a2f56dd into elastic:master Jan 13, 2020
@axw axw deleted the log-trace-correlation branch January 13, 2020 01:35
axw added a commit to axw/apm-server that referenced this pull request Jan 13, 2020
axw added a commit that referenced this pull request Jan 13, 2020
* beater/middleware: add trace/log correlation (#3136)
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.

[self instrumentation] Implement trace/log correlation
2 participants