Skip to content

Take advantage of dd-trace autoinject feature #8

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

Merged
merged 3 commits into from
Feb 25, 2020

Conversation

erickhun
Copy link
Collaborator

Take advantage of dd-trace to add trace to BuffLog.
This is based on @esclapes recommendation.

If a service want this feature, it will simply need to have those lines set at the beginning of the service:

// make sure to put those lines at the very beginning of your service
import tracer from "dd-trace";
tracer.init({
    //  will automatically append the traces to BuffLog
    logInjection: true

    // ... all other options...
});

@erickhun erickhun requested a review from esclapes February 25, 2020 02:24
@erickhun erickhun merged commit 43f6118 into master Feb 25, 2020
@erickhun erickhun deleted the task/log-autoinject branch February 25, 2020 02:30
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.

1 participant