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'
});
Configuration
SDK's initialization can be configured with these values
- collectionId: Postman collectionId where requests will be added.
- apiToken: any api key needed for collector
- collectorEndpoint: where the data should be shipped to collector's http endpoint.
- testCollectorEndpoint: additional collector endpoint for testing.
- 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.