Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Task: Export in .middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasR committed Apr 16, 2018
1 parent f59636b commit f3794c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Pass in a segment to create a subsegment for that call, identified by the host n
```js
const HttpTransport = require('@bbc/http-transport');
const AWSXRay = require('aws-xray-sdk');
const xray = require('@bbc/http-transport-xray');
const xray = require('@bbc/http-transport-xray').middleware;

const segment = new AWSXRay.Segment('mySegment');

Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = require('./lib/xray');
module.exports = {
middleware: require('./lib/xray')
};

0 comments on commit f3794c2

Please sign in to comment.