Class: Instana::Instrumentation::S3::Handler

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/instana/instrumentation/aws_sdk_s3.rb

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/instana/instrumentation/aws_sdk_s3.rb', line 8

def call(context)
  s3_tags = {
    op: format_operation(context.operation_name),
    bucket: bucket_name_from(context),
    key: key_from_context(context)
  }.reject { |_, v| v.nil? }

  ::Instana.tracer.in_span(:s3, attributes: {s3: s3_tags}) { @handler.call(context) }
end