-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: make API server to demonstrate distributed tracing #36
Conversation
api.js
Outdated
'use strict' | ||
|
||
var conf = require('./server/config') | ||
var apm = require('elastic-apm-node').start(conf.apm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@watson This currently shares the apm configs with the parent app. Should I give it a different serviceName
though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we want it to have a different service name to show up separately in the service map UI
This will require a corresponding change to either update or move the |
I put the API routes into a separate server and change the
/api
mount to use a proxy function withhttp.request
to demonstrate distributed tracing.