Exporter/Jaeger: Set span status as tags.#1928
Exporter/Jaeger: Set span status as tags.#1928songy23 merged 3 commits intocensus-instrumentation:masterfrom
Conversation
rghetia
left a comment
There was a problem hiding this comment.
one nit. LGTM otherwise.
| new Tag("span.kind", TagType.STRING).setVStr("server"), | ||
| new Tag("status.code", TagType.LONG).setVLong(4), | ||
| new Tag("status.message", TagType.STRING).setVStr(statusMessage), | ||
| new Tag("error", TagType.BOOL).setVBool(true)); |
There was a problem hiding this comment.
nit:s/status.code/STATUS_CODE/
same with other strings.
|
Thanks for putting out a fix so quickly @songy23! I like mapping Status to I don't agree with automatically setting |
|
The Zipkin exporter also should use the same OT tags ( |
|
Thanks @songy23! LGTM. |
Fixes #1927.
Tags conversion matches Go Jaeger exporter:
https://github.com/census-ecosystem/opencensus-go-exporter-jaeger/blob/e8b55949d948652e47aae4378212f933ecee856b/jaeger.go#L210-L219