Skip to content

Commit

Permalink
cds-1705 Enhance Metadata collection and dynamic allocation for App/S…
Browse files Browse the repository at this point in the history
…ubsystem Name (#121)

* added metadata context type

* implemented metadataContext type to handle metadata cross functinos and threads

* cargo

* updated JSONMessage type with new attribute names, added support functions to struct

* added additoinal metadata for sqs, ecr and kinesis events

* udpatd test

* modified metadata key names and updated MetadataContext struct

* fixed dynamic metadata replacement syntax

* add tests for metadataContext evaluation

* removed headers from LogExporterConfig as the option has been removed in upstream sdk

* added MetadataContext method to handle dynamic metadata allocation and removed old tests

* cargo update

* changelog

* updated README

* adjusted metadata name for s3.key to s3.object.key

* template version bump

* version bump

* fix README

* remove unnecessary clone

* move metadata eval regex to static declaration

* fixed regex to support _ and added \s* instead of \s? to allow more spaces

* removed unused handlebars crate
  • Loading branch information
daidokoro authored Dec 12, 2024
1 parent 1c470c2 commit 4a64ad3
Show file tree
Hide file tree
Showing 9 changed files with 1,450 additions and 873 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

### v1.1.0 / 2025-12-11
### 💡 Enhancements (Breaking) 💡
- cds-1705 - updated support for dynamic value allocation of Application and Subsystem names based on internal metadata
- cds-1706 - updated how metadata is recorded and propagated throughout the function, including adding more metadata fields and updating the names of others.
- stream_name --> cw.log.stream
- bucket_name --> s3.bucket
- key_name --> s3.object.key
- topic_name --> kafka.topic
- log_group_name --> cw.log.group

- [cds-1707] - Added new syntax for evaluating dynamic allocation fields. `{{ metadata | r'regex' }}`

## v1.0.16 / 2024-11-20
### 🧰 Bug fixes 🧰
- cds-1690 - Fixed a bug that when you update cloudwatch log group for an existing integraiotn from the CF the stack will fail.
Expand Down
Loading

0 comments on commit 4a64ad3

Please sign in to comment.