Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nine5two7 committed Nov 5, 2024
1 parent 46ca7e5 commit 3e1eab7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aws/logs_monitoring/steps/handlers/awslogs_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ def set_source(self, event):
self.metadata[DD_SOURCE] = parse_event_source(event, source)

# Special handling for customized log group of Lambda Functions and Step Functions
# Prefer to place the handling of customized log group at the bottom so that it can correct the source in some edge cases
# Multiple functions can share one single customized log group
# Need to parse logStream name to determine
# Multiple functions can share one single customized log group. Need to parse logStream name to determine
# Need to place the handling of customized log group at the bottom so that it can correct the source for some edge cases
if is_lambda_customized_log_group(log_stream):
self.metadata[DD_SOURCE] = str(AwsEventSource.LAMBDA)
# Regardless of whether the log group is customized, the corresponding log stream starts with 'states/'."
Expand Down

0 comments on commit 3e1eab7

Please sign in to comment.