Skip to content

Commit

Permalink
fix(express): fixes typing for express middleware.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed Dec 1, 2019
1 parent b3b5a0c commit 2fda929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/zipkin-instrumentation-express/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import {Tracer} from 'zipkin';
* Note that if the next middleware makes async calls, it should either
* store the span id manually or use a CLSContext so that the annotations
* go to the correct spans
*
* @param {Object} options
* @property {Tracer} options.tracer
* @property {number} options.port
*/
export declare function expressMiddleware(
options: {tracer: Tracer, port?: number}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function formatRequestUrl(req) {
/**
* @typedef {Object} MiddlewareOptions
* @property {Object} tracer
* @property {string} serviceName
* @property {string} serviceName @deprecated use the localEndpoint in Tracer instead
* @property {number} port
*/

Expand Down

0 comments on commit 2fda929

Please sign in to comment.