File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ const {
1212} = require ( "zipkin" ) ;
1313const { HttpLogger } = require ( "zipkin-transport-http" ) ;
1414const availableTags = require ( "opentracing" ) . Tags ;
15+ const {
16+ FORMAT_BINARY ,
17+ FORMAT_TEXT_MAP ,
18+ FORMAT_HTTP_HEADERS
19+ } = require ( "opentracing" ) ;
1520const { JSON_V2 } = jsonEncoder ;
1621
1722const HttpHeaders = {
@@ -289,9 +294,10 @@ class Tracing {
289294 }
290295}
291296
292- Tracing . FORMAT_TEXT_MAP = "FORMAT_TEXT_MAP" ;
293- Tracing . FORMAT_HTTP_HEADERS = "FORMAT_HTTP_HEADERS" ;
294- Tracing . FORMAT_BINARY = "FORMAT_BINARY" ;
297+ // These values should match https://github.com/opentracing/opentracing-javascript/blob/master/src/constants.ts
298+ Tracing . FORMAT_TEXT_MAP = FORMAT_TEXT_MAP ;
299+ Tracing . FORMAT_HTTP_HEADERS = FORMAT_HTTP_HEADERS ;
300+ Tracing . FORMAT_BINARY = FORMAT_BINARY ;
295301
296302// For testing purposes
297303Tracing . makeOptional = makeOptional ;
You can’t perform that action at this time.
0 commit comments