Checkin for lambda telemetry api support for extension. by npande · Pull Request #19 · SumoLogic/sumologic-lambda-extensions
PR Details
Enhance AWS Lambda extension to incorporate Lambda Telemetry API to collect logs, metrics and spans (traces)
Provide a mechanism to drop spans if the user configures the environment variable. By default, spans are not to be dropped.
Description
In config/config.go file
- Flag related implementation is done - refer
- EnableSpanDrops
- enableSpanDrops
- SUMO_SPAN_DROP
In telemetryapiclient/telemetryapiclient.go file
New files are implemented for telemetry api support
In sumoclient/sumoclient.go file
Updated createCWLogLine(), enhanceLogs() to have new log supporting init duration, not dropping metrics and option to drop/not-drop spans
In sumologic-extension.go file
Updated runTimeAPIInit() for Subscribing Extension to Telemetry API
Related Issue
Refer the PR details
Checklist
- Updated CHANGELOG.md.
- Ran unit tests locally.