Speed up starting segments.
@@ -4,7 +4,6 @@ import (
"context"
"net/http"
"reflect"
- "strings"
newrelic "github.com/newrelic/go-agent"
"github.com/newrelic/go-agent/internal/integrationsupport"
@@ -65,7 +64,7 @@ func StartSegment(input StartSegmentInputs) *http.Request {
var segment endable
// Service name capitalization is different for v1 and v2.
- if strings.ToLower(input.ServiceName) == "dynamodb" {
+ if input.ServiceName == "dynamodb" || input.ServiceName == "DynamoDB" {
segment = &newrelic.DatastoreSegment{
Product: newrelic.DatastoreDynamoDB,
Collection: getTableName(input.Params),
