Skip to content

Commit

Permalink
set tag with form_id on active traces (#12823)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrabian authored May 26, 2023
1 parent 8c1069d commit 1382465
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'ddtrace'
require 'forms_api_submission/service'

module FormsApi
Expand All @@ -16,6 +17,8 @@ class UploadsController < ApplicationController
}.freeze

def submit
Datadog::Tracing.active_span&.set_tag('form_id', params[:form_number])

form_id = FORM_NUMBER_MAP[params[:form_number]]
filler = FormsApi::PdfFiller.new(form_number: form_id, data: JSON.parse(params.to_json))

Expand Down

0 comments on commit 1382465

Please sign in to comment.