triton-core
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "triton-core", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Triton Media Core Modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -91,3 +91,15 @@ /** | ||
return this._tracer.extract(opentracing.FORMAT_TEXT_MAP, data) | ||
}, | ||
/** | ||
* SerializeHTTP dumps opentracing context into an object | ||
* suitable for use in HTTP headers | ||
* @param {opentracing.Span} span - span to serialize | ||
* @returns {Object} kv | ||
*/ | ||
serializeHTTP: function(span) { | ||
const context = {} | ||
this._tracer.inject(span, opentracing.FORMAT_HTTP_HEADERS, context) | ||
return context | ||
} | ||
} |
160
4753
6