Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b09df3b
Add origin detection
StephenWakely Jun 25, 2025
cf25b16
Add external env
StephenWakely Jun 26, 2025
7dee16a
Add tag cardinality option
StephenWakely Jun 27, 2025
c28b06a
Serialize fields
StephenWakely Jul 2, 2025
4df07b8
Update event serializer params
StephenWakely Jul 3, 2025
ff41013
Merge remote-tracking branch 'origin/master' into stephen/origin-dete…
StephenWakely Jul 4, 2025
5b48dd2
Add fields to service check
StephenWakely Jul 4, 2025
abb3b79
Use older fakefs version to test against Ruby v2
StephenWakely Jul 7, 2025
a50fafb
Ruby 2.1 compatible multiline strings
StephenWakely Jul 7, 2025
3e0ad4f
Only use old fakefs on old versions
StephenWakely Jul 7, 2025
deee154
Missed multiline
StephenWakely Jul 7, 2025
84f505a
Further fixes for windows
StephenWakely Jul 7, 2025
9c182b2
Fix content logic
StephenWakely Jul 7, 2025
6111742
Fudge allocation test
StephenWakely Jul 7, 2025
6282d13
Increase timing for macos
StephenWakely Jul 7, 2025
280b919
Try avoiding allocation
StephenWakely Jul 7, 2025
571458d
Trace the allocations
StephenWakely Jul 7, 2025
b7ed78a
Trace initialization
StephenWakely Jul 7, 2025
afb698b
Return block result
StephenWakely Jul 7, 2025
035cb88
Try warming up
StephenWakely Jul 8, 2025
4289183
Origin detection doesn't need to be a class
StephenWakely Jul 8, 2025
e7d35dd
Remove field serializer from event
StephenWakely Jul 8, 2025
922cd2e
Remove windows specific
StephenWakely Jul 8, 2025
7e1bb67
Return origin detection
StephenWakely Jul 8, 2025
dd1eb6a
Remove all linux specific alloction test
StephenWakely Jul 8, 2025
76486f8
Attempt to bound regex
StephenWakely Jul 8, 2025
166fd8b
Take substring of path.
StephenWakely Jul 8, 2025
cd89b8c
Replace regex with parser
StephenWakely Jul 8, 2025
556bfe1
Ruby <= 2.3 compliance
StephenWakely Jul 8, 2025
fcbd7f7
Remove trace allocations
StephenWakely Jul 8, 2025
29f4f08
Only turn origin detection off for linux
StephenWakely Jul 8, 2025
a4bd599
Make origin detection methods private
StephenWakely Jul 9, 2025
1c58afa
Remove unused instance vars
StephenWakely Jul 9, 2025
ecbbf3d
Add origin fields to telemetry metrics
StephenWakely Jul 10, 2025
373be59
Add delay serializer tests
StephenWakely Jul 10, 2025
cea7499
Fix field order
StephenWakely Jul 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove field serializer from event
  • Loading branch information
StephenWakely committed Jul 8, 2025
commit e7d35dd812101fe43905418e0d02363c4d2db976
8 changes: 4 additions & 4 deletions lib/datadog/statsd/serialization/event_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EventSerializer

def initialize(container_id, external_data, global_tags: [])
@tag_serializer = TagSerializer.new(global_tags)
@field_serializer = FieldSerializer.new(container_id, external_data)
#@field_serializer = FieldSerializer.new(container_id, external_data)
end

def format(title, text, options = EMPTY_OPTIONS)
Expand Down Expand Up @@ -48,9 +48,9 @@ def format(title, text, options = EMPTY_OPTIONS)
event << tags
end

if fields = field_serializer.format(options[:cardinality])
event << fields
end
#if fields = field_serializer.format(options[:cardinality])
# event << fields
#end

if event.bytesize > MAX_EVENT_SIZE
if options[:truncate_if_too_long]
Expand Down
Loading