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

module/apmot: report error log records #415

Merged
merged 2 commits into from
Jan 9, 2019
Merged

Conversation

axw
Copy link
Member

@axw axw commented Jan 8, 2019

Implement Span.LogKV and Span.LogFields, sending
error log events to Elastic APM, ignoring all other
logs. We only implement this for spans created
through the OT API, and not the wrapper spans
synthesised for transactions/spans created via
the native APM API.

Span.FinishWithOptions now behaves as if LogFields
were called with each of the log records in the
options. If the log record timestamp is not set,
then the span finish time will be used if specified,
and the current time otherwise.

Closes #397

First step towards removing unsupportedSpanMethods.
Implement Span.LogKV and Span.LogFields, sending
error log events to Elastic APM, ignoring all other
logs. We only implement this for spans created
through the OT API, and not the wrapper spans
synthesised for transactions/spans created via
the native APM API.

Span.FinishWithOptions now behaves as if LogFields
were called with each of the log records in the
options. If the log record timestamp is not set,
then the span finish time will be used if specified,
and the current time otherwise.
@axw axw merged commit a97e463 into elastic:master Jan 9, 2019
@axw axw deleted the apmot-log-error branch January 9, 2019 02:27
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.

None yet

1 participant