add support for http transport for jaeger

This commit is contained in:
Dave Horton
2022-12-30 10:45:11 -05:00
parent 9e7c8f207a
commit 1fcfe08f9b
2 changed files with 241 additions and 174 deletions

View File

@@ -22,7 +22,7 @@ module.exports = (serviceName) => {
});
let exporter;
if (process.env.OTEL_EXPORTER_JAEGER_AGENT_HOST) {
if (process.env.OTEL_EXPORTER_JAEGER_AGENT_HOST || process.env.OTEL_EXPORTER_JAEGER_ENDPOINT) {
exporter = new JaegerExporter();
}
else if (process.env.OTEL_EXPORTER_ZIPKIN_URL) {