Class: Datadog::Tracing::Contrib::Aws::Service::Kinesis
- Defined in:
- lib/datadog/tracing/contrib/aws/service/kinesis.rb
Overview
Kinesis tag handlers.
Instance Method Summary collapse
Instance Method Details
#add_tags(span, params) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/datadog/tracing/contrib/aws/service/kinesis.rb', line 13 def (span, params) stream_arn = params[:stream_arn] stream_name = params[:stream_name] if stream_arn # example stream_arn: arn:aws:kinesis:us-east-1:123456789012:stream/my-stream parts = stream_arn.split(':') stream_name = parts[-1].split('/')[-1] aws_account = parts[-2] span.set_tag(Aws::Ext::TAG_AWS_ACCOUNT, aws_account) end span.set_tag(Aws::Ext::TAG_STREAM_NAME, stream_name) end |