Skip to content

Commit a534220

Browse files
authored
Merge pull request #3847 from DataDog/ivoanjo/prof-10241-add-extra-crashtracker-tags
[PROF-10241] Add extra tags to crash reports
2 parents 1402a32 + b3d133a commit a534220

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/datadog/core/crashtracking/tag_builder.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def self.call(settings)
2323
'version' => settings.version,
2424
'git.repository_url' => Environment::Git.git_repository_url,
2525
'git.commit.sha' => Environment::Git.git_commit_sha,
26-
'is_crash' => true
26+
'is_crash' => 'true',
27+
'language' => 'ruby',
28+
'library_version' => Core::Environment::Identity.gem_datadog_version,
2729
}.compact
2830

2931
# Make sure everything is an utf-8 string, to avoid encoding issues in downstream

spec/datadog/core/crashtracking/tag_builder_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
'runtime_platform' => RUBY_PLATFORM,
1717
'runtime_version' => RUBY_VERSION,
1818
'is_crash' => 'true',
19+
'language' => 'ruby',
20+
'library_version' => Datadog::Core::Environment::Identity.gem_datadog_version,
1921
)
2022
end
2123

0 commit comments

Comments
 (0)