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

feat: make API server to demonstrate distributed tracing #36

Merged
merged 9 commits into from
Oct 17, 2018

Conversation

Qard
Copy link
Contributor

@Qard Qard commented Sep 19, 2018

I put the API routes into a separate server and change the /api mount to use a proxy function with http.request to demonstrate distributed tracing.

api.js Outdated
'use strict'

var conf = require('./server/config')
var apm = require('elastic-apm-node').start(conf.apm)
Copy link
Contributor Author

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?

Copy link
Contributor

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

@Qard
Copy link
Contributor Author

Qard commented Sep 19, 2018

This will require a corresponding change to either update or move the process.config.js file here: https://github.com/elastic/apm-integration-testing/blob/master/docker/opbeans/node/processes.config.js

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants