About
This SDK instrument express/sails app using OpenTelemetry. It captures the http request/response and uses them for auto-generating accurate postman collections
Installation
npm install @postman/postman-sdk
At the top of your app.js file, before app is initialized add this.
initialize({
collectionId: 'postman-collection-id'
apiKey: '<your-postman-api-key>'
});
Configuration
SDK's initialization can be configured with these values
- collectionId: Postman collectionId where requests will be added.
- apiKey: Postman api key needed for collector
- receiverBaseUrl: where the data should be shipped to collector's http endpoint.
- samplingRatio: sampling ration ( TO-DO)
- enable: enable or disable tracing.
- debug: enable debug logger
- dataTruncation: Changes data in request/response body from {key: value} to {key: { type: typeof(value) } }
- type: boolean
- default: false
- environment: instrumentation environment development/prod etc. ( implementation TO-DO)
- configFilePath: path to config YAML file.