Tags: alindeman/datadog-lambda-python
Tags
Update Dependencies (DataDog#218) * update dependencies * empty commit to trigger ci Co-authored-by: jcstorms1 <jcstorms1@users.noreply.github.com> Co-authored-by: AJ Stuyvenberg <astuyve@gmail.com>
[SLS-2141] Fix `keyError` issue when creating inferred span (DataDog#223 ) * Use .get to access dict keys * Bump version for black to 22.3.0 * Update snapshots
Support lambda function URLs (DataDog#220) * feat: Function URLs * feat: Use new standard for tagging service and resource names * feat: Use the right path * feat: black
update dependencies (DataDog#187) Co-authored-by: jcstorms1 <jcstorms1@users.noreply.github.com>
Cover string/b64 msg attribute trace extraction (DataDog#211) * Cover string/b64 msg attribute trace extraction * fix lint * double quote to single and try to fix install crossbuild deps ci error * try apt get update before * revert to old install crossbuild deps step * apt-get * bring back whitespace in build.yml * remove space but keep empty line * b64decode right after pulling binaryValue/Value, add comment, and exception if message attributes are not string or binary * remove unessessary tests, fix failing test by adding dataType to msgAttribute, and try to get BinaryValue vs binaryValue depending on how casing off comes in * remove TitleCase checks and new snapshots * edit snapshots * bump ddtrace and update poetry.lock * remove newline from logs * update snapshots * force gh actions * revert change * edit snapshots * snapshots * gh action * revert force github action * make exception a logger.warn * force gh action * revert change * warning->debug to stop integration test failure * format and lint
fix: Support Decimal for tag_object (DataDog#214) * fix: Support Decimal for tag_object * fix: black * fix: black * feat: --allow-releaseinfo-change * feat: --fix-missing * add apt-get update before apt install
feat: Use dd-trace-py 0.58.1 (DataDog#206) * feat: Use dd-trace-py 0.58.1 * feat: Update integration test snapshots * feat: Specify serverless 2.72.0 for integration tests * feat: use locally specified version of serverless framework instead of installing globally * fix: yarn install * feat: Back to 2.72.2 for specs * feat: Switch to datadoghq.com
Inferred spans for AWS Managed Services (DataDog#204) * Infer API Gateway spans (DataDog#172) * Infer spans from API Gateway events * Adding some prints. remove later * Change some info on the API Gateway span * Rename something * black * >:( * black * fix time * Support various API Gateway, HTTPAPI, and Websocket events * black * Add DD_INFERRED_SPANS env var to turn inferred spans on and off * infer spans in integration tests * specify which env var to set true in order to enable inferred spans * try setting inferred span name to inferred span URL * s/beta/experimental/ * Correctly create spans in separate services, assuming the extension is running and the tag is not set on the function * Remove function_name * Flush after closing spans * black * black * update snapshots * Make the snapshots valid json * black * Remove the inferredSpansFilter * Refactor inferred-span event type detection to use the trigger event type code * remove unused import * lines too long >=( * Finish refactor using _EventSource object * lol, remove println debugging * Update snapshots * Inferred spans get meta.span_type:inferred * [SLS-1594] Inferred spans for SQS & SNS (DataDog#190) * Simplify event source parsing logic * Add sns & sqs inferred spans * Fix default evt source bug & update comments * Use poetry for running unit tests * Add additional api gateway trigger tests * Fix bugs & refactor * Add inferred spans unit tests * Update integration tests * Run all tests for all python versions * Add missing change * Update _dd.span_type to span_type * Remove dependence on extension * Additional api gateway test * Remove log line & add todo * Fix api gateway integration test * Move call to get_first_record * Revert to using pip inside docker * [SLS-1671] Inferred Spans for Kineses, EventBridge, S3, DynamoDB (DataDog#191) * Add kinesis inferred span * Add dynamodb inferred span * Add s3 inferred span * Add eventbridge custom event inferred span * Comment out flaky units tests (TODO) * Add integration tests * Remove log line * Use timestamp instead of strftime (DataDog#194) * [SLS-1683] Add sync/async tag and set inferred span end time based on value (DataDog#195) * Add sync/async tag to inferred spans * End inferred span based on sync/async tag * Update tests * Fix issue with comparison * Fix small issues * Update integration test snapshots * [SLS-1713] Add tag for whether span should inherit service from lambda (DataDog#196) * Use service arg rather than service.name tag * Refactor inferred span metadata tags * black * Update inferred span keys * [SLS-1674] Additional attributes for different managed services (DataDog#200) * Additional attributes for sqs spans * Add additional attributes for sns * Add event subscription arn for sns * Add additional attributes for kinesis spans * Add additional attributes for dynamodb spans * Add additional attributes for s3 spans * Additional attribute for eventbridge spans * Add additional attributes for websocket spans * Fix websocket resource name * Additional attributes for apigateway v1 spans * Additional attributes for api-gateway v2 spans * Fix api-gateway v1 resource name * Fix merge issue * Add space to resource name * Update tests * black * Add typing_extensions to pyproject.toml * Update snapshots * Fix snapshots Co-authored-by: chris.agocs <chris.agocs@datadoghq.com> * [SLS-1824] SNS trace extractor (DataDog#201) * Extract trace context from sns payload * Fix extractor issue * Handle SNS message inside SQS event * Add extractor for Eventbridge context (DataDog#202) * Update expected breaking change date (DataDog#114) * change inferred_span to _inferred_span * Add extractor for eventbridge trace context * Add another test to test eventbridge extraction * Get tracing.Literal for pythons that don't have it already * Add _datadog to eventbridge extractor * Update integration tests * Remove init complete and main start logs Co-authored-by: Jorie Helwig <jorie.helwig@datadoghq.com> Co-authored-by: Harvinder Ghotra <ghotra.harvinder@gmail.com> * Remove duplicate entry * Kinesis extractor plus small fixes * Add snapshots * Add tests Co-authored-by: Christopher Agocs <agocs@users.noreply.github.com> Co-authored-by: Jorie Helwig <jorie.helwig@datadoghq.com> * Update stash * Address feedback * Default DD_TRACE_MANAGED_SERVICES to true Co-authored-by: Christopher Agocs <agocs@users.noreply.github.com> Co-authored-by: chris.agocs <chris.agocs@datadoghq.com> Co-authored-by: Jorie Helwig <jorie.helwig@datadoghq.com>
PreviousNext