Skip to content

Commit

Permalink
Add event type for Nr Event API.
Browse files Browse the repository at this point in the history
  • Loading branch information
asllop committed Dec 19, 2023
1 parent c8df601 commit 2bc2662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/newrelic_logging/salesforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ def is_logfile_response(self, records):
return True

# TODO: Ensure NR API limits:
# - Use alternative timestamp attribute to avoid time limits (48h for Log API, 24h for Event API).
# - Check attribute key and value size limits (255 and 4094 bytes respectively).
# - Check max number of attributes per event (255).

Expand Down Expand Up @@ -363,6 +362,7 @@ def pack_event_into_log(self, rows):
attributes = row.pop('attributes', [])
if 'type' in attributes and type(attributes['type']) == str:
message = attributes['type']
row['EVENT_TYPE'] = attributes['type']

if created_date != "":
message = message + " " + created_date
Expand Down

0 comments on commit 2bc2662

Please sign in to comment.