Skip to content

Commit

Permalink
Merge pull request #1919 from DataDog/ivoanjo/rename-code-provenance
Browse files Browse the repository at this point in the history
Rename `code_provenance.json` reported by profiler to `code-provenance.json`
  • Loading branch information
ivoanjo authored Feb 25, 2022
2 parents ca14214 + b7d503b commit b5bae3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/datadog/profiling/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ module HTTP
FORM_FIELD_PPROF_DATA = 'data[rubyprofile.pprof]'.freeze
PPROF_DEFAULT_FILENAME = 'rubyprofile.pprof.gz'.freeze

FORM_FIELD_CODE_PROVENANCE_DATA = 'data[code_provenance.json]'.freeze
CODE_PROVENANCE_FILENAME = 'code_provenance.json.gz'.freeze
FORM_FIELD_CODE_PROVENANCE_DATA = 'data[code-provenance.json]'.freeze
CODE_PROVENANCE_FILENAME = 'code-provenance.json.gz'.freeze
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

code_provenance_data = JSON.parse(
Datadog::Core::Utils::Compression.gunzip(
body.fetch('data[code_provenance.json]')
body.fetch('data[code-provenance.json]')
)
)

Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/profiling/transport/http/api/endpoint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
call

expect(env.form)
.to include('data[code_provenance.json]' => kind_of(Datadog::Core::Vendor::Multipart::Post::UploadIO))
.to include('data[code-provenance.json]' => kind_of(Datadog::Core::Vendor::Multipart::Post::UploadIO))
end
end
end
Expand Down

0 comments on commit b5bae3c

Please sign in to comment.