dynatrace-extensions / dt-extensions-python-sdk

Dynatrace Python Extensions SDK
https://dynatrace-extensions.github.io/dt-extensions-python-sdk/
MIT License
8 stars 1 forks source link

add property to control eec enrichment for logs #21

Closed radu-stefan-dt closed 7 months ago

radu-stefan-dt commented 7 months ago

I've added a bool property at Extension level (self.log_event_enrichment) to control whether we want log events and log lines to be enriched by the EEC or not.

CommunicationClient and DebugClient now also have a eec_encrichment argument so this value can be passed on.

The effect is that we have an eec-enrichment header on send_events requests to reflect the value as needed.

Tests are still weird for me, so looking for guidance if this PR needs more attention.