Example usage for com.amazonaws Request getServiceName

List of usage examples for com.amazonaws Request getServiceName

Introduction

In this page you can find the example usage for com.amazonaws Request getServiceName.

Prototype

String getServiceName();

Source Link

Usage

From source file:io.opentracing.contrib.aws.SpanDecorator.java

License:Apache License

static void onRequest(Request request, Span span) {
    Tags.COMPONENT.set(span, COMPONENT_NAME);
    Tags.HTTP_METHOD.set(span, request.getHttpMethod().name());
    Tags.HTTP_URL.set(span, request.getEndpoint().toString());
    Tags.PEER_SERVICE.set(span, request.getServiceName());
}