Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit e35be89

Browse files
tcolgatekjin
authored andcommitted
fix: jaeger exporter process tags not set (fixes #86) (#87)
1 parent 0da334a commit e35be89

File tree

1 file changed

+2
-1
lines changed
  • packages/opencensus-exporter-jaeger/src

1 file changed

+2
-1
lines changed

packages/opencensus-exporter-jaeger/src/jaeger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ export class JaegerTraceExporter implements Exporter {
7171
tags[JaegerTraceExporter.TRACER_HOSTNAME_TAG_KEY] = os.hostname();
7272
tags[JaegerTraceExporter.PROCESS_IP] = Utils.ipToInt(Utils.myIp());
7373

74+
const _tags = Utils.convertObjectToTags(tags);
7475
this.process = {
7576
serviceName: options.serviceName,
76-
tags: options.tags ? ThriftUtils.getThriftTags(tags) : [],
77+
tags: ThriftUtils.getThriftTags(_tags),
7778
};
7879
this.sender.setProcess(this.process);
7980
}

0 commit comments

Comments
 (0)