From ed7f3f871cb211e05122e30d8949b5beedb6d481 Mon Sep 17 00:00:00 2001 From: Tigran Najaryan Date: Mon, 16 Dec 2019 16:29:38 -0500 Subject: [PATCH] Revert "Add AWS X-Ray Exporter (#41)" This reverts commit 2b856d9cf206737d1e2c4487aaa7ce3df70b9e2e. --- exporter/awsxrayexporter/Makefile | 1 - exporter/awsxrayexporter/README.md | 64 -- exporter/awsxrayexporter/awsxray.go | 80 -- exporter/awsxrayexporter/awsxray_test.go | 219 ---- exporter/awsxrayexporter/config.go | 42 - exporter/awsxrayexporter/config_test.go | 60 -- exporter/awsxrayexporter/conn.go | 300 ------ exporter/awsxrayexporter/conn_test.go | 113 -- exporter/awsxrayexporter/doc.go | 17 - exporter/awsxrayexporter/factory.go | 68 -- exporter/awsxrayexporter/factory_test.go | 67 -- exporter/awsxrayexporter/go.mod | 19 - exporter/awsxrayexporter/go.sum | 984 ------------------ exporter/awsxrayexporter/testdata/config.yaml | 22 - exporter/awsxrayexporter/translator/aws.go | 176 ---- .../awsxrayexporter/translator/aws_test.go | 210 ---- exporter/awsxrayexporter/translator/cause.go | 102 -- .../awsxrayexporter/translator/cause_test.go | 102 -- exporter/awsxrayexporter/translator/http.go | 227 ---- .../awsxrayexporter/translator/http_test.go | 327 ------ .../awsxrayexporter/translator/segment.go | 318 ------ .../translator/segment_test.go | 385 ------- .../awsxrayexporter/translator/service.go | 49 - .../translator/service_test.go | 49 - exporter/awsxrayexporter/translator/sql.go | 75 -- .../awsxrayexporter/translator/sql_test.go | 64 -- .../awsxrayexporter/translator/writer_pool.go | 74 -- .../translator/writer_pool_test.go | 80 -- exporter/awsxrayexporter/xray_client.go | 85 -- go.mod | 1 + 30 files changed, 1 insertion(+), 4379 deletions(-) delete mode 100644 exporter/awsxrayexporter/Makefile delete mode 100644 exporter/awsxrayexporter/README.md delete mode 100644 exporter/awsxrayexporter/awsxray.go delete mode 100644 exporter/awsxrayexporter/awsxray_test.go delete mode 100644 exporter/awsxrayexporter/config.go delete mode 100644 exporter/awsxrayexporter/config_test.go delete mode 100644 exporter/awsxrayexporter/conn.go delete mode 100644 exporter/awsxrayexporter/conn_test.go delete mode 100644 exporter/awsxrayexporter/doc.go delete mode 100644 exporter/awsxrayexporter/factory.go delete mode 100644 exporter/awsxrayexporter/factory_test.go delete mode 100644 exporter/awsxrayexporter/go.mod delete mode 100644 exporter/awsxrayexporter/go.sum delete mode 100644 exporter/awsxrayexporter/testdata/config.yaml delete mode 100644 exporter/awsxrayexporter/translator/aws.go delete mode 100644 exporter/awsxrayexporter/translator/aws_test.go delete mode 100644 exporter/awsxrayexporter/translator/cause.go delete mode 100644 exporter/awsxrayexporter/translator/cause_test.go delete mode 100644 exporter/awsxrayexporter/translator/http.go delete mode 100644 exporter/awsxrayexporter/translator/http_test.go delete mode 100644 exporter/awsxrayexporter/translator/segment.go delete mode 100644 exporter/awsxrayexporter/translator/segment_test.go delete mode 100644 exporter/awsxrayexporter/translator/service.go delete mode 100644 exporter/awsxrayexporter/translator/service_test.go delete mode 100644 exporter/awsxrayexporter/translator/sql.go delete mode 100644 exporter/awsxrayexporter/translator/sql_test.go delete mode 100644 exporter/awsxrayexporter/translator/writer_pool.go delete mode 100644 exporter/awsxrayexporter/translator/writer_pool_test.go delete mode 100644 exporter/awsxrayexporter/xray_client.go diff --git a/exporter/awsxrayexporter/Makefile b/exporter/awsxrayexporter/Makefile deleted file mode 100644 index ded7a36092dc..000000000000 --- a/exporter/awsxrayexporter/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../../Makefile.Common diff --git a/exporter/awsxrayexporter/README.md b/exporter/awsxrayexporter/README.md deleted file mode 100644 index e291f62addf8..000000000000 --- a/exporter/awsxrayexporter/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# AWS X-Ray Tracing Exporter for OpenTelemetry Collector - -This exporter converts OpenTelemetry spans to -[AWS X-Ray Segment Documents](https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html) -and then sends them directly to X-Ray using the -[PutTraceSegements](https://docs.aws.amazon.com/xray/latest/api/API_PutTraceSegments.html) API. - -## Data Conversion - -Trace IDs and Span IDs are expected to be originally generated by either AWS API Gateway or AWS ALB and -propagated by them using the `X-Amzn-Trace-Id` HTTP header. However, other generation sources are -supported by replacing Trace IDs where necessary. For consistency, you may want to consider using the -X-Ray approach if generating Trace IDs within the application. - -> AWS X-Ray IDs are the same size as W3C Trace Context IDs but differ in that the first 32 bits of a Trace ID -> is the Unix epoch time when the trace was started. Since X-Ray only allows submission of Trace IDs from the -> past 30 days, received Trace IDs are checked. If outside the allowed range, a replacement is generated using -> the current time. - -The `http` object is populated when the `component` attribute value is `grpc` as well as `http`. Other -synchronous call types should also result in the `http` object being populated. - -## AWS Specific Attributes - -The following AWS-specific Span attributes are supported in addition to the standard names and values -defined in the OpenTelemetry Semantic Conventions. - -| Attribute name | Notes and examples | Required? | -| :--------------- | :--------------------------------------------------------------------- | --------- | -| `aws.operation` | The name of the API action invoked against an AWS service or resource. | No | -| `aws.account_id` | The AWS account number if accessing resource in different account. | No | -| `aws.region` | The AWS region if accessing resource in different region from app. | No | -| `aws.request_id` | AWS-generated unique identifier for the request. | No | -| `aws.queue_url` | For operations on an Amazon SQS queue, the queue's URL. | No | -| `aws.table_name` | For operations on a DynamoDB table, the name of the table. | No | - -Any of these values supplied are used to populate the `aws` object in addition to any relevant data supplied -by the Span Resource object. X-Ray uses this data to generate inferred segments for the remote APIs. - -## Exporter Configuration - -The following exporter configuration parameters are supported. They mirror and have the same affect as the -comparable AWS X-Ray Daemon configuration values. - -| Name | Description | Default | -| :---------------- | :--------------------------------------------------------------------- | ------- | -| `num_workers` | Maximum number of concurrent calls to AWS X-Ray to upload documents. | 8 | -| `endpoint` | Optionally override the default X-Ray service endpoint. | | -| `request_timeout` | Number of seconds before timing out a request. | 30 | -| `max_retries` | Maximun number of attempts to post a batch before failing. | 2 | -| `no_verify_ssl` | Enable or disable TLS certificate verification. | false | -| `proxy_address` | Upload segments to AWS X-Ray through a proxy. | | -| `region` | Send segments to AWS X-Ray service in a specific region. | | -| `local_mode` | Local mode to skip EC2 instance metadata check. | false | -| `resource_arn` | Amazon Resource Name (ARN) of the AWS resource running the collector. | | -| `role_arn` | IAM role to upload segments to a different account. | | - -## AWS Credential Configuration - -This exporter follows default credential resolution for the -[aws-sdk-go](https://docs.aws.amazon.com/sdk-for-go/api/index.html). - -Follow the [guidelines](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html) for the -credential configuration. diff --git a/exporter/awsxrayexporter/awsxray.go b/exporter/awsxrayexporter/awsxray.go deleted file mode 100644 index 8ac8cff63b3d..000000000000 --- a/exporter/awsxrayexporter/awsxray.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "context" - - "github.com/aws/aws-sdk-go/service/xray" - "github.com/open-telemetry/opentelemetry-collector/config/configmodels" - "github.com/open-telemetry/opentelemetry-collector/consumer/consumerdata" - "github.com/open-telemetry/opentelemetry-collector/exporter" - "github.com/open-telemetry/opentelemetry-collector/exporter/exporterhelper" - "go.uber.org/zap" - - "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter/translator" -) - -// NewTraceExporter creates an exporter.TraceExporter that converts to an X-Ray PutTraceSegments -// request and then posts the request to the configured region's X-Ray endpoint. -func NewTraceExporter(config configmodels.Exporter, logger *zap.Logger, cn connAttr) (exporter.TraceExporter, error) { - typeLog := zap.String("type", config.Type()) - nameLog := zap.String("name", config.Name()) - awsConfig, session, err := GetAWSConfigSession(logger, cn, config.(*Config)) - if err != nil { - return nil, err - } - xrayClient := NewXRay(logger, awsConfig, session) - return exporterhelper.NewTraceExporter( - config, - func(ctx context.Context, td consumerdata.TraceData) (int, error) { - logger.Debug("TraceExporter", typeLog, nameLog, zap.Int("#spans", len(td.Spans))) - droppedSpans, input := assembleRequest(td, logger) - logger.Debug("request: " + input.String()) - output, err := xrayClient.PutTraceSegments(input) - if config.(*Config).LocalMode { - err = nil // test mode, ignore errors - } - logger.Debug("response: " + output.String()) - if output != nil && output.UnprocessedTraceSegments != nil { - droppedSpans += len(output.UnprocessedTraceSegments) - } - return droppedSpans, err - }, - exporterhelper.WithTracing(true), - exporterhelper.WithMetrics(false), - exporterhelper.WithShutdown(logger.Sync), - ) -} - -func assembleRequest(td consumerdata.TraceData, logger *zap.Logger) (int, *xray.PutTraceSegmentsInput) { - documents := make([]*string, len(td.Spans)) - droppedSpans := int(0) - for i, span := range td.Spans { - if span == nil || span.Name == nil { - droppedSpans++ - continue - } - spanName := span.Name.Value - jsonStr, err := translator.MakeSegmentDocumentString(spanName, span) - if err != nil { - droppedSpans++ - logger.Warn("Unable to convert span", zap.Error(err)) - } - logger.Debug(jsonStr) - documents[i] = &jsonStr - } - return droppedSpans, &xray.PutTraceSegmentsInput{TraceSegmentDocuments: documents} -} diff --git a/exporter/awsxrayexporter/awsxray_test.go b/exporter/awsxrayexporter/awsxray_test.go deleted file mode 100644 index e7a03edf4d0d..000000000000 --- a/exporter/awsxrayexporter/awsxray_test.go +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "context" - "encoding/binary" - "fmt" - "math/rand" - "os" - "reflect" - "testing" - "time" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - "github.com/golang/protobuf/ptypes/timestamp" - "github.com/golang/protobuf/ptypes/wrappers" - "github.com/open-telemetry/opentelemetry-collector/consumer/consumerdata" - "github.com/open-telemetry/opentelemetry-collector/exporter" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - "github.com/stretchr/testify/assert" - "go.uber.org/zap" -) - -func TestTraceExport(t *testing.T) { - traceExporter := initializeTraceExporter() - ctx := context.Background() - td := constructSpanData() - err := traceExporter.ConsumeTraceData(ctx, td) - assert.Nil(t, err) -} - -func initializeTraceExporter() exporter.TraceExporter { - os.Setenv("AWS_ACCESS_KEY_ID", "AKIASSWVJUY4PZXXXXXX") - os.Setenv("AWS_SECRET_ACCESS_KEY", "XYrudg2H87u+ADAAq19Wqx3D41a09RsTXXXXXXXX") - os.Setenv("AWS_DEFAULT_REGION", "us-east-1") - os.Setenv("AWS_REGION", "us-east-1") - logger := zap.NewNop() - factory := Factory{} - config := factory.CreateDefaultConfig() - config.(*Config).Region = "us-east-1" - config.(*Config).LocalMode = true - mconn := new(mockConn) - mconn.sn, _ = getDefaultSession(logger) - traceExporter, err := NewTraceExporter(config, logger, mconn) - if err != nil { - panic(err) - } - return traceExporter -} - -func constructSpanData() consumerdata.TraceData { - resource := constructResource() - spans := make([]*tracepb.Span, 2) - spans[0] = constructHTTPClientSpan() - spans[0].Resource = resource - spans[1] = constructHTTPServerSpan() - spans[1].Resource = resource - return consumerdata.TraceData{ - Node: nil, - Resource: resource, - Spans: spans, - SourceFormat: "oc", - } -} - -func constructResource() *resourcepb.Resource { - labels := make(map[string]string) - labels[semconventions.AttributeServiceName] = "signup_aggregator" - labels[semconventions.AttributeContainerName] = "signup_aggregator" - labels[semconventions.AttributeContainerImage] = "otel/signupaggregator" - labels[semconventions.AttributeContainerTag] = "v1" - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "999999998" - labels[semconventions.AttributeCloudRegion] = "us-west-2" - labels[semconventions.AttributeCloudZone] = "us-west-1b" - return &resourcepb.Resource{ - Type: "container", - Labels: labels, - } -} - -func constructHTTPClientSpan() *tracepb.Span { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/users/junit" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - endTime := time.Now().Round(time.Second) - startTime := endTime.Add(-90 * time.Second) - spanAttributes := constructSpanAttributes(attributes) - - return &tracepb.Span{ - TraceId: newTraceID(), - SpanId: newSegmentID(), - ParentSpanId: newSegmentID(), - Name: &tracepb.TruncatableString{Value: "/users/junit"}, - Kind: tracepb.Span_CLIENT, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: 0, - Message: "OK", - }, - SameProcessAsParentSpan: &wrappers.BoolValue{Value: false}, - Tracestate: &tracepb.Span_Tracestate{ - Entries: []*tracepb.Span_Tracestate_Entry{ - {Key: "foo", Value: "bar"}, - {Key: "a", Value: "b"}, - }, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - } -} - -func constructHTTPServerSpan() *tracepb.Span { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/users/junit" - attributes[semconventions.AttributeHTTPClientIP] = "192.168.15.32" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - endTime := time.Now().Round(time.Second) - startTime := endTime.Add(-90 * time.Second) - spanAttributes := constructSpanAttributes(attributes) - - return &tracepb.Span{ - TraceId: newTraceID(), - SpanId: newSegmentID(), - ParentSpanId: newSegmentID(), - Name: &tracepb.TruncatableString{Value: "/users/junit"}, - Kind: tracepb.Span_SERVER, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: 0, - Message: "OK", - }, - SameProcessAsParentSpan: &wrappers.BoolValue{Value: false}, - Tracestate: &tracepb.Span_Tracestate{ - Entries: []*tracepb.Span_Tracestate_Entry{ - {Key: "foo", Value: "bar"}, - {Key: "a", Value: "b"}, - }, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - } -} - -func convertTimeToTimestamp(t time.Time) *timestamp.Timestamp { - if t.IsZero() { - return nil - } - nanoTime := t.UnixNano() - return ×tamp.Timestamp{ - Seconds: nanoTime / 1e9, - Nanos: int32(nanoTime % 1e9), - } -} - -func constructSpanAttributes(attributes map[string]interface{}) map[string]*tracepb.AttributeValue { - attrs := make(map[string]*tracepb.AttributeValue) - for key, value := range attributes { - valType := reflect.TypeOf(value) - var attrVal tracepb.AttributeValue - if valType.Kind() == reflect.Int { - attrVal = tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: int64(value.(int)), - }} - } else if valType.Kind() == reflect.Int64 { - attrVal = tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: value.(int64), - }} - } else { - attrVal = tracepb.AttributeValue{Value: &tracepb.AttributeValue_StringValue{ - StringValue: &tracepb.TruncatableString{Value: fmt.Sprintf("%v", value)}, - }} - } - attrs[key] = &attrVal - } - return attrs -} - -func newTraceID() []byte { - var r [16]byte - epoch := time.Now().Unix() - binary.BigEndian.PutUint32(r[0:4], uint32(epoch)) - _, err := rand.Read(r[4:]) - if err != nil { - panic(err) - } - return r[:] -} - -func newSegmentID() []byte { - var r [8]byte - _, err := rand.Read(r[:]) - if err != nil { - panic(err) - } - return r[:] -} diff --git a/exporter/awsxrayexporter/config.go b/exporter/awsxrayexporter/config.go deleted file mode 100644 index e7839bfb622e..000000000000 --- a/exporter/awsxrayexporter/config.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import "github.com/open-telemetry/opentelemetry-collector/config/configmodels" - -// Config defines configuration for AWS X-Ray exporter. -type Config struct { - configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. - // Maximum number of concurrent calls to AWS X-Ray to upload documents. - NumberOfWorkers int `mapstructure:"num_workers"` - // X-Ray service endpoint to which the collector sends segment documents. - Endpoint string `mapstructure:"endpoint"` - // Number of seconds before timing out a request. - RequestTimeoutSeconds int `mapstructure:"request_timeout_seconds"` - // Maximum number of retries before abandoning an attempt to post data. - MaxRetries int `mapstructure:"max_retries"` - // Enable or disable TLS certificate verification. - NoVerifySSL bool `mapstructure:"no_verify_ssl"` - // Upload segments to AWS X-Ray through a proxy. - ProxyAddress string `mapstructure:"proxy_address"` - // Send segments to AWS X-Ray service in a specific region. - Region string `mapstructure:"region"` - // Local mode to skip EC2 instance metadata check. - LocalMode bool `mapstructure:"local_mode"` - // Amazon Resource Name (ARN) of the AWS resource running the collector. - ResourceARN string `mapstructure:"resource_arn"` - // IAM role to upload segments to a different account. - RoleARN string `mapstructure:"role_arn"` -} diff --git a/exporter/awsxrayexporter/config_test.go b/exporter/awsxrayexporter/config_test.go deleted file mode 100644 index 3f0dfebccee2..000000000000 --- a/exporter/awsxrayexporter/config_test.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "path" - "testing" - - "github.com/open-telemetry/opentelemetry-collector/config" - "github.com/open-telemetry/opentelemetry-collector/config/configmodels" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestLoadConfig(t *testing.T) { - factories, err := config.ExampleComponents() - assert.Nil(t, err) - - factory := &Factory{} - factories.Exporters[typeStr] = factory - cfg, err := config.LoadConfigFile( - t, path.Join(".", "testdata", "config.yaml"), factories, - ) - - require.NoError(t, err) - require.NotNil(t, cfg) - - assert.Equal(t, len(cfg.Exporters), 2) - - r0 := cfg.Exporters["awsxray"] - assert.Equal(t, r0, factory.CreateDefaultConfig()) - - r1 := cfg.Exporters["awsxray/customname"].(*Config) - assert.Equal(t, r1, - &Config{ - ExporterSettings: configmodels.ExporterSettings{TypeVal: typeStr, NameVal: "awsxray/customname"}, - NumberOfWorkers: 8, - Endpoint: "", - RequestTimeoutSeconds: 30, - MaxRetries: 2, - NoVerifySSL: false, - ProxyAddress: "", - Region: "eu-west-1", - LocalMode: false, - ResourceARN: "arn:aws:ec2:us-east1:123456789:instance/i-293hiuhe0u", - RoleARN: "arn:aws:iam::123456789:role/monitoring-EKS-NodeInstanceRole", - }) -} diff --git a/exporter/awsxrayexporter/conn.go b/exporter/awsxrayexporter/conn.go deleted file mode 100644 index 924bfcb0b660..000000000000 --- a/exporter/awsxrayexporter/conn.go +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// Portions of this file Copyright 2018-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "crypto/tls" - "net/http" - "net/url" - "os" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/aws/aws-sdk-go/aws/credentials/stscreds" - "github.com/aws/aws-sdk-go/aws/ec2metadata" - "github.com/aws/aws-sdk-go/aws/endpoints" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/sts" - "go.uber.org/zap" - "golang.org/x/net/http2" -) - -type connAttr interface { - newAWSSession(logger *zap.Logger, roleArn string, region string) (*session.Session, error) - getEC2Region(s *session.Session) (string, error) -} - -// Conn implements connAttr interface. -type Conn struct{} - -func (c *Conn) getEC2Region(s *session.Session) (string, error) { - return ec2metadata.New(s).Region() -} - -// AWS STS endpoint constants -const ( - STSEndpointPrefix = "https://sts." - STSEndpointSuffix = ".amazonaws.com" - STSAwsCnPartitionIDSuffix = ".amazonaws.com.cn" // AWS China partition. -) - -// newHTTPClient returns new HTTP client instance with provided configuration. -func newHTTPClient(logger *zap.Logger, maxIdle int, requestTimeout int, noVerify bool, - proxyAddress string) (*http.Client, error) { - logger.Debug("Using proxy address: ", - zap.String("proxyAddr", proxyAddress), - ) - tls := &tls.Config{ - InsecureSkipVerify: false, - } - - finalProxyAddress := getProxyAddress(proxyAddress) - proxyURL, err := getProxyURL(finalProxyAddress) - if err != nil { - logger.Error("unable to obtain proxy URL", zap.Error(err)) - return nil, err - } - transport := &http.Transport{ - MaxIdleConnsPerHost: maxIdle, - TLSClientConfig: tls, - Proxy: http.ProxyURL(proxyURL), - } - - // is not enabled by default as we configure TLSClientConfig for supporting SSL to data plane. - // http2.ConfigureTransport will setup transport layer to use HTTP2 - http2.ConfigureTransport(transport) - http := &http.Client{ - Transport: transport, - Timeout: time.Second * time.Duration(requestTimeout), - } - return http, err -} - -func getProxyAddress(proxyAddress string) string { - var finalProxyAddress string - if proxyAddress != "" { - finalProxyAddress = proxyAddress - } else if proxyAddress == "" && os.Getenv("HTTPS_PROXY") != "" { - finalProxyAddress = os.Getenv("HTTPS_PROXY") - } else { - finalProxyAddress = "" - } - return finalProxyAddress -} - -func getProxyURL(finalProxyAddress string) (*url.URL, error) { - var proxyURL *url.URL - var err error - if finalProxyAddress != "" { - proxyURL, err = url.Parse(finalProxyAddress) - } else { - proxyURL = nil - err = nil - } - return proxyURL, err -} - -// GetAWSConfigSession returns AWS config and session instances. -func GetAWSConfigSession(logger *zap.Logger, cn connAttr, cfg *Config) (*aws.Config, *session.Session, error) { - var s *session.Session - var err error - var awsRegion string - http, err := newHTTPClient(logger, cfg.NumberOfWorkers, cfg.RequestTimeoutSeconds, cfg.NoVerifySSL, cfg.ProxyAddress) - if err != nil { - logger.Error("unable to obtain proxy URL", zap.Error(err)) - return nil, nil, err - } - regionEnv := os.Getenv("AWS_REGION") - if cfg.Region == "" && regionEnv != "" { - awsRegion = regionEnv - logger.Debug("Fetch region from environment variables", zap.String("region", awsRegion)) - } else if cfg.Region != "" { - awsRegion = cfg.Region - logger.Debug("Fetch region from commandline/config file", zap.String("region", awsRegion)) - } else if !cfg.NoVerifySSL { - es, err := getDefaultSession(logger) - if err != nil { - logger.Error("Unable to retrieve default session", zap.Error(err)) - } else { - awsRegion, err = cn.getEC2Region(es) - if err != nil { - logger.Error("Unable to retrieve the region from the EC2 instance", zap.Error(err)) - } else { - logger.Debug("Fetch region from ec2 metadata", zap.String("region", awsRegion)) - } - } - } - if awsRegion == "" { - msg := "Cannot fetch region variable from config file, environment variables and ec2 metadata." - logger.Error(msg) - return nil, nil, awserr.New("NoAwsRegion", msg, nil) - } - s, err = cn.newAWSSession(logger, cfg.RoleARN, awsRegion) - if err != nil { - return nil, nil, err - } - - config := &aws.Config{ - Region: aws.String(awsRegion), - DisableParamValidation: aws.Bool(true), - MaxRetries: aws.Int(cfg.MaxRetries), - Endpoint: aws.String(cfg.Endpoint), - HTTPClient: http, - } - return config, s, nil -} - -// ProxyServerTransport configures HTTP transport for TCP Proxy Server. -func ProxyServerTransport(logger *zap.Logger, config *Config) (*http.Transport, error) { - tls := &tls.Config{ - InsecureSkipVerify: config.NoVerifySSL, - } - - proxyAddr := getProxyAddress(config.ProxyAddress) - proxyURL, err := getProxyURL(proxyAddr) - if err != nil { - logger.Error("unable to obtain proxy URL", zap.Error(err)) - return nil, err - } - - // Connection timeout in seconds - idleConnTimeout := time.Duration(config.RequestTimeoutSeconds) * time.Second - - transport := &http.Transport{ - MaxIdleConns: config.NumberOfWorkers, - MaxIdleConnsPerHost: config.NumberOfWorkers, - IdleConnTimeout: idleConnTimeout, - Proxy: http.ProxyURL(proxyURL), - TLSClientConfig: tls, - - // If not disabled the transport will add a gzip encoding header - // to requests with no `accept-encoding` header value. The header - // is added after we sign the request which invalidates the - // signature. - DisableCompression: true, - } - - return transport, nil -} - -func (c *Conn) newAWSSession(logger *zap.Logger, roleArn string, region string) (*session.Session, error) { - var s *session.Session - var err error - if roleArn == "" { - s, err = getDefaultSession(logger) - if err != nil { - return s, err - } - } else { - stsCreds, _ := getSTSCreds(logger, region, roleArn) - - s, err = session.NewSession(&aws.Config{ - Credentials: stsCreds, - }) - - if err != nil { - logger.Error("Error in creating session object : ", zap.Error(err)) - return s, err - } - } - return s, nil -} - -// getSTSCreds gets STS credentials from regional endpoint. ErrCodeRegionDisabledException is received if the -// STS regional endpoint is disabled. In this case STS credentials are fetched from STS primary regional endpoint -// in the respective AWS partition. -func getSTSCreds(logger *zap.Logger, region string, roleArn string) (*credentials.Credentials, error) { - t, err := getDefaultSession(logger) - if err != nil { - return nil, err - } - - stsCred := getSTSCredsFromRegionEndpoint(logger, t, region, roleArn) - // Make explicit call to fetch credentials. - _, err = stsCred.Get() - if err != nil { - if aerr, ok := err.(awserr.Error); ok { - err = nil - switch aerr.Code() { - case sts.ErrCodeRegionDisabledException: - logger.Error("Region ", zap.String("region", region), zap.String("error", aerr.Error())) - stsCred = getSTSCredsFromPrimaryRegionEndpoint(logger, t, roleArn, region) - } - } - } - return stsCred, err -} - -// getSTSCredsFromRegionEndpoint fetches STS credentials for provided roleARN from regional endpoint. -// AWS STS recommends that you provide both the Region and endpoint when you make calls to a Regional endpoint. -// Reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#id_credentials_temp_enable-regions_writing_code -func getSTSCredsFromRegionEndpoint(logger *zap.Logger, sess *session.Session, region string, - roleArn string) *credentials.Credentials { - regionalEndpoint := getSTSRegionalEndpoint(region) - // if regionalEndpoint is "", the STS endpoint is Global endpoint for classic regions except ap-east-1 - (HKG) - // for other opt-in regions, region value will create STS regional endpoint. - // This will be only in the case, if provided region is not present in aws_regions.go - c := &aws.Config{Region: aws.String(region), Endpoint: ®ionalEndpoint} - st := sts.New(sess, c) - logger.Info("STS Endpoint ", zap.String("endpoint", st.Endpoint)) - return stscreds.NewCredentialsWithClient(st, roleArn) -} - -// getSTSCredsFromPrimaryRegionEndpoint fetches STS credentials for provided roleARN from primary region endpoint in -// the respective partition. -func getSTSCredsFromPrimaryRegionEndpoint(logger *zap.Logger, t *session.Session, roleArn string, - region string) *credentials.Credentials { - logger.Info("Credentials for provided RoleARN being fetched from STS primary region endpoint.") - partitionID := getPartition(region) - if partitionID == endpoints.AwsPartitionID { - return getSTSCredsFromRegionEndpoint(logger, t, endpoints.UsEast1RegionID, roleArn) - } else if partitionID == endpoints.AwsCnPartitionID { - return getSTSCredsFromRegionEndpoint(logger, t, endpoints.CnNorth1RegionID, roleArn) - } else if partitionID == endpoints.AwsUsGovPartitionID { - return getSTSCredsFromRegionEndpoint(logger, t, endpoints.UsGovWest1RegionID, roleArn) - } - - return nil -} - -func getSTSRegionalEndpoint(r string) string { - p := getPartition(r) - - var e string - if p == endpoints.AwsPartitionID || p == endpoints.AwsUsGovPartitionID { - e = STSEndpointPrefix + r + STSEndpointSuffix - } else if p == endpoints.AwsCnPartitionID { - e = STSEndpointPrefix + r + STSAwsCnPartitionIDSuffix - } - return e -} - -func getDefaultSession(logger *zap.Logger) (*session.Session, error) { - result, serr := session.NewSession() - if serr != nil { - logger.Error("Error in creating session object ", zap.Error(serr)) - return result, serr - } - return result, nil -} - -// getPartition return AWS Partition for the provided region. -func getPartition(region string) string { - p, _ := endpoints.PartitionForRegion(endpoints.DefaultPartitions(), region) - return p.ID() -} diff --git a/exporter/awsxrayexporter/conn_test.go b/exporter/awsxrayexporter/conn_test.go deleted file mode 100644 index 649a54ea9f07..000000000000 --- a/exporter/awsxrayexporter/conn_test.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "errors" - "os" - "path" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/open-telemetry/opentelemetry-collector/config" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/mock" - "go.uber.org/zap" -) - -var ec2Region = "us-east-1" - -type mockConn struct { - mock.Mock - sn *session.Session -} - -func (c *mockConn) getEC2Region(s *session.Session) (string, error) { - args := c.Called(nil) - errorStr := args.String(0) - var err error - if errorStr != "" { - err = errors.New(errorStr) - return "", err - } - return ec2Region, nil -} - -func (c *mockConn) newAWSSession(logger *zap.Logger, roleArn string, region string) (*session.Session, error) { - return c.sn, nil -} - -// fetch region value from ec2 meta data service -func TestEC2Session(t *testing.T) { - logger := zap.NewNop() - xrayExporterCfg := loadExporterConfig(t) - m := new(mockConn) - m.On("getEC2Region", nil).Return("").Once() - var expectedSession *session.Session - expectedSession, _ = session.NewSession() - m.sn = expectedSession - cfg, s, err := GetAWSConfigSession(logger, m, xrayExporterCfg) - assert.Equal(t, s, expectedSession, "Expect the session object is not overridden") - assert.Equal(t, *cfg.Region, ec2Region, "Region value fetched from ec2-metadata service") - assert.Nil(t, err) -} - -// fetch region value from environment variable -func TestRegionEnv(t *testing.T) { - logger := zap.NewNop() - xrayExporterCfg := loadExporterConfig(t) - region := "us-west-2" - env := stashEnv() - defer popEnv(env) - os.Setenv("AWS_REGION", region) - - var m = &mockConn{} - var expectedSession *session.Session - expectedSession, _ = session.NewSession() - m.sn = expectedSession - cfg, s, err := GetAWSConfigSession(logger, m, xrayExporterCfg) - assert.Equal(t, s, expectedSession, "Expect the session object is not overridden") - assert.Equal(t, *cfg.Region, region, "Region value fetched from environment") - assert.Nil(t, err) -} - -func loadExporterConfig(t *testing.T) *Config { - factories, err := config.ExampleComponents() - assert.Nil(t, err) - factory := &Factory{} - factories.Exporters[factory.Type()] = factory - otelcfg, _ := config.LoadConfigFile( - t, path.Join(".", "testdata", "config.yaml"), factories, - ) - xrayExporterCfg := otelcfg.Exporters["awsxray"].(*Config) - return xrayExporterCfg -} - -func stashEnv() []string { - env := os.Environ() - os.Clearenv() - - return env -} - -func popEnv(env []string) { - os.Clearenv() - - for _, e := range env { - p := strings.SplitN(e, "=", 2) - os.Setenv(p[0], p[1]) - } -} diff --git a/exporter/awsxrayexporter/doc.go b/exporter/awsxrayexporter/doc.go deleted file mode 100644 index ec2c4046b6a6..000000000000 --- a/exporter/awsxrayexporter/doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package awsxrayexporter implements an OpenTelemetry Collector exporter that sends trace data to -// AWS X-Ray in the region the collector is running in using the PutTraceSegments API. -package awsxrayexporter diff --git a/exporter/awsxrayexporter/factory.go b/exporter/awsxrayexporter/factory.go deleted file mode 100644 index af3e4b8cc164..000000000000 --- a/exporter/awsxrayexporter/factory.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "github.com/open-telemetry/opentelemetry-collector/config/configerror" - "github.com/open-telemetry/opentelemetry-collector/config/configmodels" - "github.com/open-telemetry/opentelemetry-collector/exporter" - "go.uber.org/zap" -) - -const ( - // The value of "type" key in configuration. - typeStr = "awsxray" -) - -// Factory is the factory for AWS X-Ray exporter. -type Factory struct { -} - -// Type gets the type of the Exporter config created by this factory. -func (f *Factory) Type() string { - return typeStr -} - -// CreateDefaultConfig creates the default configuration for exporter. -func (f *Factory) CreateDefaultConfig() configmodels.Exporter { - return &Config{ - ExporterSettings: configmodels.ExporterSettings{ - TypeVal: typeStr, - NameVal: typeStr, - }, - NumberOfWorkers: 8, - Endpoint: "", - RequestTimeoutSeconds: 30, - MaxRetries: 2, - NoVerifySSL: false, - ProxyAddress: "", - Region: "", - LocalMode: false, - ResourceARN: "", - RoleARN: "", - } -} - -// CreateTraceExporter creates a trace exporter based on this config. -func (f *Factory) CreateTraceExporter(logger *zap.Logger, cfg configmodels.Exporter) (exporter.TraceExporter, error) { - eCfg := cfg.(*Config) - return NewTraceExporter(eCfg, logger, &Conn{}) -} - -// CreateMetricsExporter always returns nil. -func (f *Factory) CreateMetricsExporter(logger *zap.Logger, - cfg configmodels.Exporter) (exporter.MetricsExporter, error) { - return nil, configerror.ErrDataTypeIsNotSupported -} diff --git a/exporter/awsxrayexporter/factory_test.go b/exporter/awsxrayexporter/factory_test.go deleted file mode 100644 index f6cf4a88b0d9..000000000000 --- a/exporter/awsxrayexporter/factory_test.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "path" - "testing" - - "github.com/open-telemetry/opentelemetry-collector/config" - "github.com/open-telemetry/opentelemetry-collector/config/configcheck" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "go.uber.org/zap" -) - -func TestCreateDefaultConfig(t *testing.T) { - factory := Factory{} - cfg := factory.CreateDefaultConfig() - assert.NotNil(t, cfg, "failed to create default config") - assert.NoError(t, configcheck.ValidateConfig(cfg)) -} - -func TestCreateTraceExporter(t *testing.T) { - logger := zap.NewNop() - - factories, err := config.ExampleComponents() - require.NoError(t, err) - factory := Factory{} - factories.Exporters[typeStr] = &factory - cfg, err := config.LoadConfigFile( - t, path.Join(".", "testdata", "config.yaml"), factories, - ) - require.NoError(t, err) - - exporter, err := factory.CreateTraceExporter(logger, cfg.Exporters["awsxray/customname"]) - assert.Nil(t, err) - assert.NotNil(t, exporter) -} - -func TestCreateMetricsExporter(t *testing.T) { - logger := zap.NewNop() - - factories, err := config.ExampleComponents() - require.NoError(t, err) - factory := Factory{} - factories.Exporters[typeStr] = &factory - cfg, err := config.LoadConfigFile( - t, path.Join(".", "testdata", "config.yaml"), factories, - ) - require.NoError(t, err) - - exporter, err := factory.CreateMetricsExporter(logger, cfg.Exporters["awsxray/customname"]) - assert.NotNil(t, err) - assert.Nil(t, exporter) -} diff --git a/exporter/awsxrayexporter/go.mod b/exporter/awsxrayexporter/go.mod deleted file mode 100644 index 228808d3cb2d..000000000000 --- a/exporter/awsxrayexporter/go.mod +++ /dev/null @@ -1,19 +0,0 @@ -module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter - -go 1.12 - -require ( - github.com/apache/thrift v0.12.0 // indirect - github.com/aws/aws-sdk-go v1.23.12 - github.com/census-instrumentation/opencensus-proto v0.2.1 - github.com/golang/protobuf v1.3.2 - github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect - github.com/mattn/go-isatty v0.0.10 // indirect - // TODO: pin a released version - github.com/open-telemetry/opentelemetry-collector v0.2.1-0.20191205151336-8e2473c5e754 - github.com/stretchr/testify v1.4.0 - go.uber.org/zap v1.10.0 - golang.org/x/net v0.0.0-20190923162816-aa69164e4478 - golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect - golang.org/x/tools v0.0.0-20191030062658-86caa796c7ab // indirect -) diff --git a/exporter/awsxrayexporter/go.sum b/exporter/awsxrayexporter/go.sum deleted file mode 100644 index c8a49efe1a34..000000000000 --- a/exporter/awsxrayexporter/go.sum +++ /dev/null @@ -1,984 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1 h1:7gXaI3V/b4DRaK++rTqhRajcT7z8gtP0qKMZTXqlySM= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -contrib.go.opencensus.io/exporter/jaeger v0.1.1-0.20190430175949-e8b55949d948 h1:xdP25yLqNGSnpfDmEChwA9ZuKLdiyL0jqJKPm/Ypfag= -contrib.go.opencensus.io/exporter/jaeger v0.1.1-0.20190430175949-e8b55949d948/go.mod h1:ukdzwIYYHgZ7QYtwVFQUjiT28BJHiMhTERo32s6qVgM= -contrib.go.opencensus.io/exporter/ocagent v0.6.0 h1:Z1n6UAyr0QwM284yUuh5Zd8JlvxUGAhFZcgMJkMPrGM= -contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeSEBLPA9YJp5bjrofdU3pIXs= -contrib.go.opencensus.io/exporter/prometheus v0.1.0 h1:SByaIoWwNgMdPSgl5sMqM2KDE5H/ukPWBRo314xiDvg= -contrib.go.opencensus.io/exporter/prometheus v0.1.0/go.mod h1:cGFniUXGZlKRjzOyuZJ6mgB+PgBcCIa79kEKR8YCW+A= -contrib.go.opencensus.io/resource v0.1.2 h1:b4WFJV8u7/NzPWHeTqj3Ec2AW8OGhtJxC/hbphIOvbU= -contrib.go.opencensus.io/resource v0.1.2/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcigGlFvXwEGEnkRLA= -github.com/Azure/azure-sdk-for-go v23.2.0+incompatible h1:bch1RS060vGpHpY3zvQDV4rOiRw25J1zmR/B9a76aSA= -github.com/Azure/azure-sdk-for-go v23.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/go-autorest v11.1.2+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest v11.2.8+incompatible h1:Q2feRPMlcfVcqz3pF87PJzkm5lZrL+x6BDtzhODzNJM= -github.com/Azure/go-autorest v11.2.8+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/DataDog/datadog-go v2.2.0+incompatible h1:V5BKkxACZLjzHjSgBbr2gvLA2Ae49yhc6CSY7MLy5k4= -github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46 h1:lsxEuwrXEAokXB9qhlbKWPpo3KMLZQ5WB5WLQRW1uq0= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/OneOfOne/xxhash v1.2.5 h1:zl/OfRA6nftbBK9qTohYBJ5xvw6C/oNKizR7cZGl3cI= -github.com/OneOfOne/xxhash v1.2.5/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= -github.com/OpenPeeDeeP/depguard v1.0.1 h1:VlW4R6jmBIv3/u1JNlawEvJMM4J+dPORPaZasQee8Us= -github.com/OpenPeeDeeP/depguard v1.0.1/go.mod h1:xsIw86fROiiwelg+jB2uM9PiKihMMmUx/1V+TNhjQvM= -github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/Shopify/sarama v1.19.0 h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= -github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4 h1:Hs82Z41s6SdL1CELW+XaDYmOH4hkBN4/N9og/AsOv7E= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/apache/thrift v0.0.0-20161221203622-b2a4d4ae21c7 h1:Fv9bK1Q+ly/ROk4aJsVMeuIwPel4bEnD8EPiI91nZMg= -github.com/apache/thrift v0.0.0-20161221203622-b2a4d4ae21c7/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.12.0 h1:pODnxUFNcjP9UTLZGTdeh+j16A8lJbRvD3rOtrk/7bs= -github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878 h1:EFSB7Zo9Eg91v7MJPVsifUysc/wPdN+NOnVe6bWbdBM= -github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/aws/aws-sdk-go v1.23.12 h1:2UnxgNO6Y5J1OrkXS8XNp0UatDxD1bWHiDT62RDPggI= -github.com/aws/aws-sdk-go v1.23.12/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b h1:AP/Y7sqYicnjGDfD5VcY4CIfh1hRXBUavxrvELjTiOE= -github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b/go.mod h1:ac9efd0D1fsDb3EJvhqgXRbFx7bs2wqZ10HQPeU8U/Q= -github.com/bombsimon/wsl v1.2.5 h1:9gTOkIwVtoDZywvX802SDHokeX4kW1cKnV8ZTVAPkRs= -github.com/bombsimon/wsl v1.2.5/go.mod h1:43lEF/i0kpXbLCeDXL9LMT8c92HyBywXb0AsgMHYngM= -github.com/cenkalti/backoff v0.0.0-20181003080854-62661b46c409 h1:Da6uN+CAo1Wf09Rz1U4i9QN8f0REjyNJ73BEwAq/paU= -github.com/cenkalti/backoff v0.0.0-20181003080854-62661b46c409/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v0.0.0-20181017004759-096ff4a8a059/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY= -github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= -github.com/circonus-labs/circonusllhist v0.1.3 h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA= -github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= -github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/coreos/bbolt v1.3.2 h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-semver v0.2.0 h1:3Jm3tLmsgAYcjC+4Up7hJrFBPr+n7rAqYeSw/SZazuY= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/creack/pty v1.1.7 h1:6pwm8kMQKCmgUg0ZHTm5+/YvRK0s3THD/28+T6/kk4A= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgrijalva/jwt-go v0.0.0-20160705203006-01aeca54ebda/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dgryski/go-sip13 v0.0.0-20190329191031-25c5027a8c7b h1:Yqiad0+sloMPdd/0Fg22actpFx0dekpzt1xJmVNVkU0= -github.com/dgryski/go-sip13 v0.0.0-20190329191031-25c5027a8c7b/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96 h1:cenwrSVm+Z7QLSV/BsnenAOcDXdX4cMv4wP0B/5QbPg= -github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/eapache/go-resiliency v1.1.0 h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= -github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e h1:p1yVGRW3nmb85p1Sh1ZJSDm4A4iKLS5QNbvUHMgGu/M= -github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633 h1:H2pdYOb3KQ1/YsqVWoWNLQO+fusocsw354rqGTZtAgw= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/envoyproxy/go-control-plane v0.6.9 h1:deEH9W8ZAUGNbCdX+9iNzBOGrAOrnpJGoy0PcTqk/tE= -github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= -github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.5.0+incompatible h1:ouOWdg56aJriqS0huScTkVXPC5IcNrDCXZ6OoTAWu7M= -github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8 h1:DujepqpGd1hyOd7aW59XpK7Qymp8iy83xq74fLr21is= -github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/go-critic/go-critic v0.3.5-0.20190904082202-d79a9f0c64db h1:GYXWx7Vr3+zv833u+8IoXbNnQY0AdXsxAgI0kX7xcwA= -github.com/go-critic/go-critic v0.3.5-0.20190904082202-d79a9f0c64db/go.mod h1:+sE8vrLDS2M0pZkBk0wy6+nLdKexVDrl/jBqQOTDThA= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0 h1:wDJmvq38kDhkVxi50ni9ykkdUr1PKgqKOoi01fa0Mdk= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-lintpack/lintpack v0.5.2 h1:DI5mA3+eKdWeJ40nU4d6Wc26qmdG8RCi/btYq0TuRN0= -github.com/go-lintpack/lintpack v0.5.2/go.mod h1:NwZuYi2nUHho8XEIZ6SIxihrnPoqBTDqfpXvXAN0sXM= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0 h1:MP4Eh7ZCb31lleYCFuwm0oe4/YGak+5l1vA2NOE80nA= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logr/logr v0.1.0 h1:M1Tv3VzNlEHg6uyACnRdtrploV2P7wZqH8BoQMtz0cg= -github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= -github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= -github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= -github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.17.2/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.4 h1:1TjOzrWkj+9BrjnM1yPAICbaoC0FyfD49oVkTBrSSa0= -github.com/go-openapi/analysis v0.19.4/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.17.2/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.19.2 h1:a2kIyV3w+OS3S97zxUndRVD46+FhGOUBDFY7nmu4CsY= -github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= -github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.17.2/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.19.2 h1:A9+F4Dc/MCNB5jibxf6rRvOvR/iFgQdyNx9eIhnGqq0= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= -github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.17.2/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.2 h1:o20suLFB4Ri0tuzpWtyHlh7E7HnkqTNLq6aR6WVNS1w= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.17.2/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.2 h1:rf5ArTHmIJxyV5Oiks+Su0mUens1+AjpkPoWr5xFRcI= -github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= -github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= -github.com/go-openapi/runtime v0.18.0/go.mod h1:uI6pHuxWYTy94zZxgcwJkUWa9wbIlhteGfloI10GD4U= -github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= -github.com/go-openapi/runtime v0.19.3 h1:pyVE0l7ybsThmn9Y9kWRK3o/cUmaT8WVfd6pDCIKeNE= -github.com/go-openapi/runtime v0.19.3/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= -github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= -github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.17.2/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.19.2 h1:SStNd1jRcYtfKCN7R0laGNs80WYYvn5CbBjM2sOmCrE= -github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= -github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.17.2/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= -github.com/go-openapi/strfmt v0.19.2 h1:clPGfBnJohokno0e+d7hs6Yocrzjlgz6EsQSDncCRnE= -github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= -github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.17.2/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.4 h1:i/65mCM9s1h8eCkT07F5Z/C1e/f8VTgEwer+00yevpA= -github.com/go-openapi/swag v0.19.4/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/validate v0.17.2/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= -github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= -github.com/go-openapi/validate v0.19.2 h1:ky5l57HjyVRrsJfd2+Ro5Z9PjGuKbsmftwyMtk8H7js= -github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= -github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-toolsmith/astcast v1.0.0 h1:JojxlmI6STnFVG9yOImLeGREv8W2ocNUM+iOhR6jE7g= -github.com/go-toolsmith/astcast v1.0.0/go.mod h1:mt2OdQTeAQcY4DQgPSArJjHCcOwlX+Wl/kwN+LbLGQ4= -github.com/go-toolsmith/astcopy v1.0.0 h1:OMgl1b1MEpjFQ1m5ztEO06rz5CUd3oBv9RF7+DyvdG8= -github.com/go-toolsmith/astcopy v1.0.0/go.mod h1:vrgyG+5Bxrnz4MZWPF+pI4R8h3qKRjjyvV/DSez4WVQ= -github.com/go-toolsmith/astequal v0.0.0-20180903214952-dcb477bfacd6/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= -github.com/go-toolsmith/astequal v1.0.0 h1:4zxD8j3JRFNyLN46lodQuqz3xdKSrur7U/sr0SDS/gQ= -github.com/go-toolsmith/astequal v1.0.0/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY= -github.com/go-toolsmith/astfmt v0.0.0-20180903215011-8f8ee99c3086/go.mod h1:mP93XdblcopXwlyN4X4uodxXQhldPGZbcEJIimQHrkg= -github.com/go-toolsmith/astfmt v1.0.0 h1:A0vDDXt+vsvLEdbMFJAUBI/uTbRw1ffOPnxsILnFL6k= -github.com/go-toolsmith/astfmt v1.0.0/go.mod h1:cnWmsOAuq4jJY6Ct5YWlVLmcmLMn1JUPuQIHCY7CJDw= -github.com/go-toolsmith/astinfo v0.0.0-20180906194353-9809ff7efb21/go.mod h1:dDStQCHtmZpYOmjRP/8gHHnCCch3Zz3oEgCdZVdtweU= -github.com/go-toolsmith/astp v0.0.0-20180903215135-0af7e3c24f30/go.mod h1:SV2ur98SGypH1UjcPpCatrV5hPazG6+IfNHbkDXBRrk= -github.com/go-toolsmith/astp v1.0.0 h1:alXE75TXgcmupDsMK1fRAy0YUzLzqPVvBKoyWV+KPXg= -github.com/go-toolsmith/astp v1.0.0/go.mod h1:RSyrtpVlfTFGDYRbrjyWP1pYu//tSFcvdYrA8meBmLI= -github.com/go-toolsmith/pkgload v0.0.0-20181119091011-e9e65178eee8/go.mod h1:WoMrjiy4zvdS+Bg6z9jZH82QXwkcgCBX6nOfnmdaHks= -github.com/go-toolsmith/pkgload v1.0.0 h1:4DFWWMXVfbcN5So1sBNW9+yeiMqLFGl1wFLTL5R0Tgg= -github.com/go-toolsmith/pkgload v1.0.0/go.mod h1:5eFArkbO80v7Z0kdngIxsRXRMTaX4Ilcwuh3clNrQJc= -github.com/go-toolsmith/strparse v1.0.0 h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4= -github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= -github.com/go-toolsmith/typep v1.0.0 h1:zKymWyA1TRYvqYrYDrfEMZULyrhcnGY3x7LDKU2XQaA= -github.com/go-toolsmith/typep v1.0.0/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= -github.com/gofrs/flock v0.0.0-20190320160742-5135e617513b h1:ekuhfTjngPhisSjOJ0QWKpPQE8/rbknHaes6WVJj5Hw= -github.com/gofrs/flock v0.0.0-20190320160742-5135e617513b/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/googleapis v1.3.0 h1:M695OaDJ5ipWvDPcoAg/YL9c3uORAegkEfBqTQF/fTQ= -github.com/gogo/googleapis v1.3.0/go.mod h1:d+q1s/xVJxZGKWwC/6UfPIF33J+G1Tq4GYv9Y+Tg/EU= -github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.0 h1:G8O7TerXerS4F6sx9OV7/nRfJdnXgHZu/S/7F2SN+UE= -github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 h1:ZgQEtGgCBiWRM39fZuwSd1LwSqqSW0hOdXCYYDX0R3I= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/errcheck v0.0.0-20181223084120-ef45e06d44b6 h1:YYWNAGTKWhKpcLLt7aSj/odlKrSrelQwlovBpDuf19w= -github.com/golangci/errcheck v0.0.0-20181223084120-ef45e06d44b6/go.mod h1:DbHgvLiFKX1Sh2T1w8Q/h4NAI8MHIpzCdnBUDTXU3I0= -github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613 h1:9kfjN3AdxcbsZBf8NjltjWihK2QfBBBZuv91cMFfDHw= -github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613/go.mod h1:SyvUF2NxV+sN8upjjeVYr5W7tyxaT1JVtvhKhOn2ii8= -github.com/golangci/goconst v0.0.0-20180610141641-041c5f2b40f3 h1:pe9JHs3cHHDQgOFXJJdYkK6fLz2PWyYtP4hthoCMvs8= -github.com/golangci/goconst v0.0.0-20180610141641-041c5f2b40f3/go.mod h1:JXrF4TWy4tXYn62/9x8Wm/K/dm06p8tCKwFRDPZG/1o= -github.com/golangci/gocyclo v0.0.0-20180528134321-2becd97e67ee h1:J2XAy40+7yz70uaOiMbNnluTg7gyQhtGqLQncQh+4J8= -github.com/golangci/gocyclo v0.0.0-20180528134321-2becd97e67ee/go.mod h1:ozx7R9SIwqmqf5pRP90DhR2Oay2UIjGuKheCBCNwAYU= -github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a h1:iR3fYXUjHCR97qWS8ch1y9zPNsgXThGwjKPrYfqMPks= -github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/golangci-lint v1.21.0 h1:HxAxpR8Z0M8omihvQdsD3PF0qPjlqYqp2vMJzstoKeI= -github.com/golangci/golangci-lint v1.21.0/go.mod h1:phxpHK52q7SE+5KpPnti4oZTdFCEsn/tKN+nFvCKXfk= -github.com/golangci/ineffassign v0.0.0-20190609212857-42439a7714cc h1:gLLhTLMk2/SutryVJ6D4VZCU3CUqr8YloG7FPIBWFpI= -github.com/golangci/ineffassign v0.0.0-20190609212857-42439a7714cc/go.mod h1:e5tpTHCfVze+7EpLEozzMB3eafxo2KT5veNg1k6byQU= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= -github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770 h1:EL/O5HGrF7Jaq0yNhBLucz9hTuRzj2LdwGBOaENgxIk= -github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA= -github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21 h1:leSNB7iYzLYSSx3J/s5sVf4Drkc68W2wm4Ixh/mr0us= -github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21/go.mod h1:tf5+bzsHdTM0bsB7+8mt0GUMvjCgwLpTapNZHU8AajI= -github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0 h1:HVfrLniijszjS1aiNg8JbBMO2+E1WIQ+j/gL4SQqGPg= -github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0/go.mod h1:qOQCunEYvmd/TLamH+7LlVccLvUH5kZNhbCgTHoBbp4= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= -github.com/google/addlicense v0.0.0-20190510175307-22550fa7c1b0 h1:ydbHzabf84uucKri5fcfiqYxGg+rYgP/zQfLLN8lyP0= -github.com/google/addlicense v0.0.0-20190510175307-22550fa7c1b0/go.mod h1:QtPG26W17m+OIQgE6gQ24gC1M6pUaMBAbFrTIDtwG/E= -github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= -github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= -github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190723021845-34ac40c74b70 h1:XTnP8fJpa4Kvpw2qARB4KS9izqxPS0Sd92cDlY3uk+w= -github.com/google/pprof v0.0.0-20190723021845-34ac40c74b70/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gnostic v0.0.0-20170426233943-68f4ded48ba9/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.3.0 h1:CcQijm0XKekKjP/YCz28LXVSpgguuB+nCxaSjCe09y0= -github.com/googleapis/gnostic v0.3.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/gophercloud/gophercloud v0.0.0-20190126172459-c818fa66e4c8/go.mod h1:3WdhXV3rUYy9p6AUW8d94kr+HS62Y4VL9mBnFxsD8q4= -github.com/gophercloud/gophercloud v0.3.0 h1:6sjpKIpVwRIIwmcEGp+WwNovNsem+c+2vm6oxshRpL8= -github.com/gophercloud/gophercloud v0.3.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= -github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3 h1:JVnpOZS+qxli+rgVl98ILOXVNbW+kb5wcxeGx8ShUIw= -github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= -github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7 h1:6TSoaYExHper8PYsJu23GWVNOyYRCSnIFyxKgLSZ54w= -github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.4/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.11.1 h1:/dBYI+n4xIL+Y9SKXQrjlKTmJJDwCSlNLRwZ5nBhIek= -github.com/grpc-ecosystem/grpc-gateway v1.11.1/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/api v1.2.0 h1:oPsuzLp2uk7I7rojPKuncWbZ+m5TMoD4Ivs+2Rkeh4Y= -github.com/hashicorp/consul/api v1.2.0/go.mod h1:1SIkFYi2ZTXUE5Kgt179+4hH33djo11+0Eo2XgTAtkw= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.2.0 h1:GWFYFmry/k4b1hEoy7kSkmU8e30GAyI4VZHk0fRxeL4= -github.com/hashicorp/consul/sdk v0.2.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.1 h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-immutable-radix v1.1.0 h1:vN9wG1D6KG6YHRTWr8512cxGOVgTMEfgEdSj/hr8MPc= -github.com/hashicorp/go-immutable-radix v1.1.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI= -github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-retryablehttp v0.5.3 h1:QlWt0KvWT0lq8MFppF9tsJGF+ynG7ztc2KIPhzRGk7s= -github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-rootcerts v1.0.1 h1:DMo4fmknnz0E0evoNYnV48RjWndOsmd6OW+09R3cEP8= -github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc= -github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= -github.com/hashicorp/go-syslog v1.0.0 h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go.net v0.0.1 h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8Bppgk= -github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0 h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/memberlist v0.1.4 h1:gkyML/r71w3FL8gUi74Vk76avkj/9lYAY9lvg0OcoGs= -github.com/hashicorp/memberlist v0.1.4/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hashicorp/serf v0.8.3 h1:MWYcmct5EtKz0efYooPcL0yNkem+7kWxqXDi/UIh+8k= -github.com/hashicorp/serf v0.8.3/go.mod h1:UpNcs7fFbpKIyZaUuSW6EPiH+eZC7OuyFD+wc1oal+k= -github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q= -github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/influxdata/influxdb v1.7.7 h1:UvNzAPfBrKMENVbQ4mr4ccA9sW+W1Ihl0Yh1s0BiVAg= -github.com/influxdata/influxdb v1.7.7/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= -github.com/jaegertracing/jaeger v1.14.0 h1:C0En+gfcxf3NsAriMAvQ6LcSFrQ5VQGXddqfty1EpTI= -github.com/jaegertracing/jaeger v1.14.0/go.mod h1:LUWPSnzNPGRubM8pk0inANGitpiMOOxihXx0+53llXI= -github.com/jessevdk/go-flags v0.0.0-20180331124232-1c38ed7ad0cc h1:0L2sGkaj6MWuV1BfXsrLJ/+XA8RzKKVsYlLVXNkK1Lw= -github.com/jessevdk/go-flags v0.0.0-20180331124232-1c38ed7ad0cc/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7 h1:K//n/AqR5HjG3qxbrBCL4vJPW0MVFSs9CPK1OOJdRME= -github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7/go.mod h1:2iMrUgbbvHEiQClaW2NsSzMyGHqN+rDFqY705q49KG0= -github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7 h1:KfgG9LzI+pYjr4xvmz/5H4FXjokeP+rlHLhv3iH62Fo= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 h1:rBMNdlhTLzJjJSDIjNEXX1Pz3Hmwmz91v+zycvx9PJc= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/julienschmidt/httprouter v1.2.0 h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0 h1:reN85Pxc5larApoH1keMBiu2GWtPqXQ1nc9gx+jOU+E= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2 h1:DB17ag19krx9CFsz4o3enTrPXyIXCl+2iCXH/aMAp9s= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5 h1:hyz3dwM5QLc1Rfoz4FuWJQG5BN7tc6K1MndAUnGpQr4= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -github.com/kr/pty v1.1.8 h1:AkaSdXYQOWeaO3neb8EM634ahkXXe3jYbVh/F9lq+GI= -github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kylelemons/godebug v0.0.0-20160406211939-eadb3ce320cb h1:iiMILPl9HQFqdFXIuwfYT73NYtH0KApnCmyF7y5wYhs= -github.com/kylelemons/godebug v0.0.0-20160406211939-eadb3ce320cb/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= -github.com/lib/pq v1.2.0 h1:LXpIM/LZ5xGFhOpXAQUIMM1HdyqzVYM13zNdjCEEcA0= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= -github.com/lyft/protoc-gen-validate v0.0.13 h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA= -github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/matoous/godox v0.0.0-20190911065817-5d6d842e92eb h1:RHba4YImhrUVQDHUCe2BNSOz4tVy2yGyXhvYDvxGgeE= -github.com/matoous/godox v0.0.0-20190911065817-5d6d842e92eb/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= -github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW10= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= -github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.15 h1:CSSIDtllwGLMoA6zjdKnaE6Tx6eVUxQ29LUgGetiDCI= -github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-ps v0.0.0-20190716172923-621e5597135b/go.mod h1:r1VsdOzOPt1ZSrGZWFoNhsAedKnEd6r9Np1+5blZCWk= -github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/gox v0.4.0 h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/mozilla/tls-observatory v0.0.0-20190404164649-a3c1b6cfecfd/go.mod h1:SrKMQvPiws7F7iqYp8/TX+IhxCYhzr6N/1yb8cwHsGk= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d h1:7PxY7LVfSZm7PEeBTyK1rj1gABdCO2mbri6GKO1cMDs= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d h1:AREM5mwr4u1ORQBMvzfzBgpsctsbQikCVpvC+tX285E= -github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d/go.mod h1:o96djdrsSGy3AWPyBgZMAGfxZNfgntdJG+11KU4QvbU= -github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/oklog/ulid v0.0.0-20170117200651-66bb6560562f/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.8.0 h1:VkHVNpR4iVnU8XQR6DBm8BqYjN7CRzw+xKUbVVbbW9w= -github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.1 h1:q/mM8GF/n0shIN8SaAZ0V+jnLPzen6WIVZdiwrRlMlo= -github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.5.0 h1:izbySO9zDPmjJ8rDjLvkA2zJHIo+HkYXHnf7eN7SSyo= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= -github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/open-telemetry/opentelemetry-collector v0.2.1-0.20191205151336-8e2473c5e754 h1:gG2Ig+OgvWCyKLk3/Mz10HkSFolKjsWerT8kE9u+qig= -github.com/open-telemetry/opentelemetry-collector v0.2.1-0.20191205151336-8e2473c5e754/go.mod h1:WxiK9mcisb/hM6M6+2BRV/VIU2c8VzlCRJED2S1MWns= -github.com/opentracing-contrib/go-stdlib v0.0.0-20190519235532-cf7a6c988dc9 h1:QsgXACQhd9QJhEmRumbsMQQvBtmdS0mafoVEBplWXEg= -github.com/opentracing-contrib/go-stdlib v0.0.0-20190519235532-cf7a6c988dc9/go.mod h1:PLldrQSroqzH70Xl+1DQcGnefIbqsKR7UDaiux3zV+w= -github.com/opentracing/opentracing-go v1.1.0 h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/openzipkin/zipkin-go v0.2.1 h1:noL5/5Uf1HpVl3wNsfkZhIKbSWCVi5jgqkONNx8PXcA= -github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/orijtech/prometheus-go-metrics-exporter v0.0.3-0.20190313163149-b321c5297f60 h1:vN7d/Zv6aOXqhspiqoEMkb6uFHNARVESmYn5XtNeyrk= -github.com/orijtech/prometheus-go-metrics-exporter v0.0.3-0.20190313163149-b321c5297f60/go.mod h1:+Mu9w51Uc2RNKSUTA95d6Pvy8cxFiRX3ANRPlCcnGLA= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= -github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pavius/impi v0.0.0-20180302134524-c1cbdcb8df2b h1:yS0+/i6mwRZCdssUd+MkFJkCn/Evh1PlUKCYe3aCtQw= -github.com/pavius/impi v0.0.0-20180302134524-c1cbdcb8df2b/go.mod h1:x/hU0bfdWIhuOT1SKwiJg++yvkk6EuOtJk8WtDZqgr8= -github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1 h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/prashantv/protectmem v0.0.0-20171002184600-e20412882b3a h1:AA9vgIBDjMHPC2McaGPojgV2dcI78ZC0TLNhYCXEKH8= -github.com/prashantv/protectmem v0.0.0-20171002184600-e20412882b3a/go.mod h1:lzZQ3Noex5pfAy7mkAeCjcBDteYU85uWWnJ/y6gKU8k= -github.com/prometheus/alertmanager v0.18.0 h1:sPppYFge7kdf9O96KIh3fd093D1xN8JxIp03wW6yAEE= -github.com/prometheus/alertmanager v0.18.0/go.mod h1:WcxHBl40VSPuOaqWae6l6HpnEOVRIycEJ7i9iYkadEE= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.1.0 h1:BQ53HtBmfOitExawJ6LokA4x8ov/z0SYYb0+HxJfRI8= -github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= -github.com/prometheus/common v0.7.0 h1:L+1lyG48J1zAQXA3RBX/nG/B3gjlHq0zTt2tlbJLyCY= -github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.3 h1:CTwfnzjQ+8dS6MhHHu4YswVAD99sL2wjPqP+VkURmKE= -github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= -github.com/prometheus/prometheus v0.0.0-20180315085919-58e2a31db8de/go.mod h1:oAIUtOny2rjMX0OWN5vPR5/q/twIROJvdqnQKDdil/s= -github.com/prometheus/prometheus v1.8.2-0.20190924101040-52e0504f83ea h1:DkijwrDmxCei6erPY2JZPJMOr8srbkbOJVkWbhSYWH4= -github.com/prometheus/prometheus v1.8.2-0.20190924101040-52e0504f83ea/go.mod h1:elNqjVbwD3sCZJqKzyN7uEuwGcCpeJvv67D6BrHsDbw= -github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rs/cors v1.6.0 h1:G9tHG9lebljV9mfp9SNPDL36nCDxmo3zTlAf1YgvzmI= -github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= -github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/ryanuber/columnize v2.1.0+incompatible h1:j1Wcmh8OrK4Q7GXY+V7SVSY8nUWQxHW5TkBe7YUl+2s= -github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/samuel/go-zookeeper v0.0.0-20190810000440-0ceca61e4d75 h1:cA+Ubq9qEVIQhIWvP2kNuSZ2CmnfBJFSRq+kO1pu2cc= -github.com/samuel/go-zookeeper v0.0.0-20190810000440-0ceca61e4d75/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/satori/go.uuid v0.0.0-20160603004225-b111a074d5ef h1:RoeI7K0oZIcUirMHsFpQjTVDrl1ouNh8T7v3eNsUxL0= -github.com/satori/go.uuid v0.0.0-20160603004225-b111a074d5ef/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/securego/gosec v0.0.0-20191002120514-e680875ea14d h1:BzRvVq1EHuIjxpijCEKpAxzKUUMurOQ4sknehIATRh8= -github.com/securego/gosec v0.0.0-20191002120514-e680875ea14d/go.mod h1:w5+eXa0mYznDkHaMCXA4XYffjlH+cy1oyKbfzJXa2Do= -github.com/shirou/gopsutil v0.0.0-20190901111213-e4ec7b275ada/go.mod h1:WWnYX4lzhCH5h/3YBfyVA3VbLYjlMZZAQcW9ojMexNc= -github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4/go.mod h1:qsXQc7+bwAM3Q1u/4XEfrquwF8Lw7D7y5cD8CuHnfIc= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e h1:MZM7FHLqUHYI0Y/mQAt3d2aYa0SiNms/hFqC9qJYolM= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041 h1:llrF3Fs4018ePo4+G/HV/uQUqEI1HMDjCeOf2V6puPc= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= -github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 h1:bUGsEnyNbVPw06Bs80sCeARAlK8lhwqGyi6UT8ymuGk= -github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= -github.com/shurcooL/vfsgen v0.0.0-20180825020608-02ddb050ef6b/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= -github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd h1:ug7PpSOB5RBPK1Kg6qskGBoP3Vnj/aNYFTznWvlkGo0= -github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/soheilhy/cmux v0.1.4 h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sourcegraph/go-diff v0.5.1 h1:gO6i5zugwzo1RVTvgvfwCOSVegNuvnNi6bAD1QCmkHs= -github.com/sourcegraph/go-diff v0.5.1/go.mod h1:j2dHj3m8aZgQO8lMTcTnBcXkRRRqi34cd2MNlA9u1mE= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= -github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.5 h1:f0B+LkLX6DtmRH1isoNA9VTtNUK9K8xYd28JNNfOv/s= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.4.1-0.20190911140308-99520c81d86e h1:D4jmJ9BqzeMv7BvAqjooNtXH2PXG7m+pcYRnj2Ojlrk= -github.com/spf13/viper v1.4.1-0.20190911140308-99520c81d86e/go.mod h1:jUyf+v/KTOnRyUy2/AsjF537WfJWVv3AnlcKSNd+AIg= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94 h1:0ngsPmuP6XIjiFRNFYlvKwSr5zff2v+uPHaffZ6/M4k= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/quantile v0.0.0-20150917103942-b0c588724d25 h1:7z3LSn867ex6VSaahyKadf4WtSsJIgne6A1WLOAGM8A= -github.com/streadway/quantile v0.0.0-20150917103942-b0c588724d25/go.mod h1:lbP8tGiBjZ5YWIc2fzuRpTaz0b/53vT6PEs3QuAWzuU= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= -github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e h1:RumXZ56IrCj4CL+g1b9OL/oH0QnsF976bC8xQFYUD5Q= -github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 h1:LnC5Kc/wtumK+WB441p7ynQJzVuNRJiqddSIE3IlSEQ= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926 h1:G3dpKMzFDjgEh2q1Z7zUUtKa8ViPtH+ocF0bE0g00O8= -github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/uber-go/atomic v1.4.0 h1:yOuPqEq4ovnhEjpHmfFwsqBXDYbQeT6Nb0bwD6XnD5o= -github.com/uber-go/atomic v1.4.0/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g= -github.com/uber/jaeger-client-go v2.15.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-client-go v2.16.0+incompatible h1:Q2Pp6v3QYiocMxomCaJuwQGFt7E53bPYqEgug/AoBtY= -github.com/uber/jaeger-client-go v2.16.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-lib v2.2.0+incompatible h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw= -github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= -github.com/uber/tchannel-go v1.10.0 h1:YOihLHuvkwT3nzvpgqFtexFW+pb5vD1Tz7h/bIWApgE= -github.com/uber/tchannel-go v1.10.0/go.mod h1:Rrgz1eL8kMjW/nEzZos0t+Heq0O4LhnUJVA32OvWKHo= -github.com/ugorji/go v1.1.4 h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 h1:3SVOIvH7Ae1KRYyQWRjXWJEA9sS/c/pjvH++55Gr648= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ultraware/funlen v0.0.2 h1:Av96YVBwwNSe4MLR7iI/BIa3VyI7/djnto/pK3Uxbdo= -github.com/ultraware/funlen v0.0.2/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= -github.com/ultraware/whitespace v0.0.4 h1:If7Va4cM03mpgrNH9k49/VOicWpGoG70XPBFFODYDsg= -github.com/ultraware/whitespace v0.0.4/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= -github.com/uudashr/gocognit v0.0.0-20190926065955-1655d0de0517 h1:ChMKTho2hWKpks/nD/FL2KqM1wuVt62oJeiE8+eFpGs= -github.com/uudashr/gocognit v0.0.0-20190926065955-1655d0de0517/go.mod h1:j44Ayx2KW4+oB6SWMv8KsmHzZrOInQav7D3cQMJ5JUM= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.2.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s= -github.com/valyala/quicktemplate v1.2.0/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6 h1:YdYsPAZ2pC6Tow/nPZOPQ96O3hm/ToAkGsPLzedXERk= -github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -go.etcd.io/bbolt v1.3.2 h1:Z/90sZLPOeCy2PwprqkFa25PdkusRzaj9P8zm/KNyvk= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.0.4 h1:bHxbjH6iwh1uInchXadI6hQR107KEbgYsMzoblDONmQ= -go.mongodb.org/mongo-driver v1.0.4/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.1 h1:8dP3SGL7MPB94crU3bEPplMPe83FI4EouesJUeFHv50= -go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= -go.uber.org/atomic v1.4.0 h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/multierr v1.1.0 h1:HoEmRHQPVSqub6w2z2d2EOVs2fjyFRGyofhKuyDq0QI= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/zap v1.10.0 h1:ORx85nbTijNz8ljznvCMR1ZBIPKFn3jQrag10X2AsuM= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181025213731-e84da0312774/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392 h1:ACG4HJsFiNMf47Y4PeRoebLNy/2lXT9EtprMuTFWt1M= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522 h1:OeRHuibLsmZkFj773W4LcfAGsSxJgfPONhr8cmO+eLA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067 h1:KYGJGHOQy8oSi1fDlSpcZF0+juKwk/hEMv5SiwHogR0= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422 h1:QzoH/1pFpZguR8NrRHLcO6jKqfv2zpuSqZLgdm7ZmjI= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6 h1:Tus/Y4w3V77xDsGwKUC8a/QrV7jScpU557J77lFffNs= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e h1:JgcxKXxCjrA2tyDP/aNU9K0Ck5Czfk6C7e2tMw7+bSI= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190206173232-65e2d4e15006/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 h1:Ao/3l156eZf2AW5wK8a7/smtodRU+gha3+BeqJ69lRk= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478 h1:l5EDrHhldLYb3ZRHDUhXF7Om7MvYXnkV9/iQNo1lX6g= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180805044716-cb6730876b98/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/time v0.0.0-20161028155119-f51c12702a4d/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181117154741-2ddaf7f79a09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190110163146-51295c7ec13a/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190118193359-16909d206f00/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190322203728-c1a832b0ad89/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190521203540-521d6ed310dd/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190719005602-e377ae9d6386/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= -golang.org/x/tools v0.0.0-20190813034749-528a2984e271/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190930201159-7c411dea38b0/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191030062658-86caa796c7ab h1:tpc/nJ4vD66vAk/2KN0sw/DvQIz2sKmCpWvyKtPmfMQ= -golang.org/x/tools v0.0.0-20191030062658-86caa796c7ab/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.10.0 h1:7tmAxx3oKE98VMZ+SBZzvYYWRQ9HODBxmC8mXUsraSQ= -google.golang.org/api v0.10.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64 h1:iKtrH9Y8mcbADOP0YFaEMth7OfuHY9xHOwNj4znpM1A= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.0 h1:AzbTB6ux+okLTzP8Ru1Xs41C303zdcfEht7MQnYJt5A= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/fsnotify/fsnotify.v1 v1.4.7 h1:XNNYLJHt73EyYiCZi6+xjupS9CpvmiDgjPTAjrBlQbo= -gopkg.in/fsnotify/fsnotify.v1 v1.4.7/go.mod h1:Fyux9zXlo4rWoMSIzpn9fDAYjalPqJ/K1qJ27s+7ltE= -gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/resty.v1 v1.12.0 h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -k8s.io/api v0.0.0-20190620084959-7cf5895f2711/go.mod h1:TBhBqb1AWbBQbW3XRusr7n7E4v2+5ZY8r8sAMnyFC5A= -k8s.io/api v0.0.0-20190813020757-36bff7324fb7 h1:4uJOjRn9kWq4AqJRE8+qzmAy+lJd9rh8TY455dNef4U= -k8s.io/api v0.0.0-20190813020757-36bff7324fb7/go.mod h1:3Iy+myeAORNCLgjd/Xu9ebwN7Vh59Bw0vh9jhoX+V58= -k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719/go.mod h1:I4A+glKBHiTgiEjQiCCQfCAIcIMFGt291SmsvcrFzJA= -k8s.io/apimachinery v0.0.0-20190809020650-423f5d784010 h1:pyoq062NftC1y/OcnbSvgolyZDJ8y4fmUPWMkdA6gfU= -k8s.io/apimachinery v0.0.0-20190809020650-423f5d784010/go.mod h1:Waf/xTS2FGRrgXCkO5FP3XxTOWh0qLf2QhL1qFZZ/R8= -k8s.io/client-go v0.0.0-20190620085101-78d2af792bab/go.mod h1:E95RaSlHr79aHaX0aGSwcPNfygDiPKOVXdmivCIZT0k= -k8s.io/client-go v12.0.0+incompatible h1:YlJxncpeVUC98/WMZKC3JZGk/OXQWCZjAB4Xr3B17RY= -k8s.io/client-go v12.0.0+incompatible/go.mod h1:E95RaSlHr79aHaX0aGSwcPNfygDiPKOVXdmivCIZT0k= -k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6 h1:4s3/R4+OYYYUKptXPhZKjQ04WJ6EhQQVFdjOFvCazDk= -k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.3.1/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.4.0 h1:lCJCxf/LIowc2IGS9TPjWDyXY4nOmdGdfcwwDQCOURQ= -k8s.io/klog v0.4.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= -k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc= -k8s.io/kube-openapi v0.0.0-20190709113604-33be087ad058/go.mod h1:nfDlWeOsu3pUf4yWGL+ERqohP4YsZcBJXWMK+gkzOA4= -k8s.io/kube-openapi v0.0.0-20190722073852-5e22f3d471e6 h1:s9IxTKe9GwDH0S/WaX62nFYr0or32DsTWex9AileL7U= -k8s.io/kube-openapi v0.0.0-20190722073852-5e22f3d471e6/go.mod h1:RZvgC8MSN6DjiMV6oIfEE9pDL9CYXokkfaCKZeHm3nc= -k8s.io/utils v0.0.0-20190221042446-c2654d5206da/go.mod h1:8k8uAuAQ0rXslZKaEWd0c3oVhZz7sSzSiPnVZayjIX0= -k8s.io/utils v0.0.0-20190809000727-6c36bc71fc4a h1:uy5HAgt4Ha5rEMbhZA+aM1j2cq5LmR6LQ71EYC2sVH4= -k8s.io/utils v0.0.0-20190809000727-6c36bc71fc4a/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= -mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f h1:Cq7MalBHYACRd6EesksG1Q8EoIAKOsiZviGKbOLIej4= -mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw= -rsc.io/binaryregexp v0.2.0 h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e h1:4Z09Hglb792X0kfOBBJUPFEyvVfQWrYT/l8h5EKA6JQ= -sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI= -sigs.k8s.io/yaml v1.1.0 h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4 h1:JPJh2pk3+X4lXAkZIk2RuE/7/FoK9maXw+TNPJhVS/c= -sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/exporter/awsxrayexporter/testdata/config.yaml b/exporter/awsxrayexporter/testdata/config.yaml deleted file mode 100644 index f820c387ddc0..000000000000 --- a/exporter/awsxrayexporter/testdata/config.yaml +++ /dev/null @@ -1,22 +0,0 @@ -receivers: - examplereceiver: - -processors: - exampleprocessor: - -exporters: - awsxray: - awsxray/customname: - region: eu-west-1 - resource_arn: "arn:aws:ec2:us-east1:123456789:instance/i-293hiuhe0u" - role_arn: "arn:aws:iam::123456789:role/monitoring-EKS-NodeInstanceRole" - awsxray/disabled: # will be ignored - disabled: true - -service: - pipelines: - traces: - receivers: [examplereceiver] - processors: [exampleprocessor] - exporters: [awsxray] - diff --git a/exporter/awsxrayexporter/translator/aws.go b/exporter/awsxrayexporter/translator/aws.go deleted file mode 100644 index cf5f3cdeb0e6..000000000000 --- a/exporter/awsxrayexporter/translator/aws.go +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strconv" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" -) - -// AWS-specific OpenTelemetry attribute names -const ( - AWSOperationAttribute = "aws.operation" - AWSAccountAttribute = "aws.account_id" - AWSRegionAttribute = "aws.region" - AWSRequestIDAttribute = "aws.request_id" - AWSQueueURLAttribute = "aws.queue_url" - AWSTableNameAttribute = "aws.table_name" -) - -// AWSData provides the shape for unmarshalling AWS resource data. -type AWSData struct { - AccountID string `json:"account_id,omitempty"` - BeanstalkMetadata *BeanstalkMetadata `json:"elastic_beanstalk,omitempty"` - ECSMetadata *ECSMetadata `json:"ecs,omitempty"` - EC2Metadata *EC2Metadata `json:"ec2,omitempty"` - Operation string `json:"operation,omitempty"` - RemoteRegion string `json:"region,omitempty"` - RequestID string `json:"request_id,omitempty"` - QueueURL string `json:"queue_url,omitempty"` - TableName string `json:"table_name,omitempty"` -} - -// EC2Metadata provides the shape for unmarshalling EC2 metadata. -type EC2Metadata struct { - InstanceID string `json:"instance_id"` - AvailabilityZone string `json:"availability_zone"` -} - -// ECSMetadata provides the shape for unmarshalling ECS metadata. -type ECSMetadata struct { - ContainerName string `json:"container"` -} - -// BeanstalkMetadata provides the shape for unmarshalling Elastic Beanstalk environment metadata. -type BeanstalkMetadata struct { - Environment string `json:"environment_name"` - VersionLabel string `json:"version_label"` - DeploymentID int64 `json:"deployment_id"` -} - -func makeAws(attributes map[string]string, resource *resourcepb.Resource) (map[string]string, *AWSData) { - var ( - cloud string - account string - zone string - hostID string - container string - namespace string - deployID string - ver string - origin string - operation string - remoteRegion string - requestID string - queueURL string - tableName string - ec2 *EC2Metadata - ecs *ECSMetadata - ebs *BeanstalkMetadata - ) - if resource == nil { - return attributes, nil - } - filtered := make(map[string]string) - for key, value := range resource.Labels { - switch key { - case semconventions.AttributeCloudProvider: - cloud = value - case semconventions.AttributeCloudAccount: - account = value - case semconventions.AttributeCloudZone: - zone = value - case semconventions.AttributeHostID: - hostID = value - case semconventions.AttributeContainerName: - if container == "" { - container = value - } - case semconventions.AttributeK8sPod: - container = value - case semconventions.AttributeServiceNamespace: - namespace = value - case semconventions.AttributeServiceInstance: - deployID = value - } - } - for key, value := range attributes { - switch key { - case AWSOperationAttribute: - operation = value - case AWSAccountAttribute: - if value != "" { - account = value - } - case AWSRegionAttribute: - remoteRegion = value - case AWSRequestIDAttribute: - requestID = value - case AWSQueueURLAttribute: - queueURL = value - case AWSTableNameAttribute: - tableName = value - default: - filtered[key] = value - } - } - if cloud != "aws" && cloud != "" { - return filtered, nil // not AWS so return nil - } - // progress from least specific to most specific origin so most specific ends up as origin - // as per X-Ray docs - if hostID != "" { - origin = OriginEC2 - ec2 = &EC2Metadata{ - InstanceID: hostID, - AvailabilityZone: zone, - } - } - if container != "" { - origin = OriginECS - ecs = &ECSMetadata{ - ContainerName: container, - } - } - if deployID != "" { - origin = OriginEB - deployNum, err := strconv.ParseInt(deployID, 10, 64) - if err != nil { - deployNum = 0 - } - ebs = &BeanstalkMetadata{ - Environment: namespace, - VersionLabel: ver, - DeploymentID: deployNum, - } - } - if origin == "" { - return filtered, nil - } - awsData := &AWSData{ - AccountID: account, - BeanstalkMetadata: ebs, - ECSMetadata: ecs, - EC2Metadata: ec2, - Operation: operation, - RemoteRegion: remoteRegion, - RequestID: requestID, - QueueURL: queueURL, - TableName: tableName, - } - return filtered, awsData -} diff --git a/exporter/awsxrayexporter/translator/aws_test.go b/exporter/awsxrayexporter/translator/aws_test.go deleted file mode 100644 index c6b8d67b164a..000000000000 --- a/exporter/awsxrayexporter/translator/aws_test.go +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strings" - "testing" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - "github.com/stretchr/testify/assert" -) - -func TestAwsFromEc2Resource(t *testing.T) { - instanceID := "i-00f7c0bcb26da2a99" - labels := make(map[string]string) - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "123456789" - labels[semconventions.AttributeCloudZone] = "us-east-1c" - labels[semconventions.AttributeHostID] = instanceID - labels[semconventions.AttributeHostType] = "m5.xlarge" - resource := &resourcepb.Resource{ - Type: "vm", - Labels: labels, - } - attributes := make(map[string]string) - - filtered, awsData := makeAws(attributes, resource) - - assert.NotNil(t, filtered) - assert.NotNil(t, awsData) - assert.NotNil(t, awsData.EC2Metadata) - assert.Nil(t, awsData.ECSMetadata) - assert.Nil(t, awsData.BeanstalkMetadata) - w := testWriters.borrow() - if err := w.Encode(awsData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, instanceID)) -} - -func TestAwsFromEcsResource(t *testing.T) { - instanceID := "i-00f7c0bcb26da2a99" - containerID := "signup_aggregator-x82ufje83" - labels := make(map[string]string) - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "123456789" - labels[semconventions.AttributeCloudZone] = "us-east-1c" - labels[semconventions.AttributeContainerName] = "signup_aggregator" - labels[semconventions.AttributeContainerImage] = "otel/signupaggregator" - labels[semconventions.AttributeContainerTag] = "v1" - labels[semconventions.AttributeK8sCluster] = "production" - labels[semconventions.AttributeK8sNamespace] = "default" - labels[semconventions.AttributeK8sDeployment] = "signup_aggregator" - labels[semconventions.AttributeK8sPod] = containerID - labels[semconventions.AttributeHostID] = instanceID - labels[semconventions.AttributeHostType] = "m5.xlarge" - resource := &resourcepb.Resource{ - Type: "container", - Labels: labels, - } - attributes := make(map[string]string) - - filtered, awsData := makeAws(attributes, resource) - - assert.NotNil(t, filtered) - assert.NotNil(t, awsData) - assert.NotNil(t, awsData.EC2Metadata) - assert.NotNil(t, awsData.ECSMetadata) - assert.Nil(t, awsData.BeanstalkMetadata) - w := testWriters.borrow() - if err := w.Encode(awsData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, containerID)) -} - -func TestAwsFromBeanstalkResource(t *testing.T) { - deployID := "232" - labels := make(map[string]string) - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "123456789" - labels[semconventions.AttributeCloudZone] = "us-east-1c" - labels[semconventions.AttributeServiceNamespace] = "production" - labels[semconventions.AttributeServiceInstance] = deployID - resource := &resourcepb.Resource{ - Type: "vm", - Labels: labels, - } - attributes := make(map[string]string) - - filtered, awsData := makeAws(attributes, resource) - - assert.NotNil(t, filtered) - assert.NotNil(t, awsData) - assert.Nil(t, awsData.EC2Metadata) - assert.Nil(t, awsData.ECSMetadata) - assert.NotNil(t, awsData.BeanstalkMetadata) - w := testWriters.borrow() - if err := w.Encode(awsData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, deployID)) -} - -func TestAwsWithAwsSqsResources(t *testing.T) { - instanceID := "i-00f7c0bcb26da2a99" - containerID := "signup_aggregator-x82ufje83" - labels := make(map[string]string) - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "123456789" - labels[semconventions.AttributeCloudZone] = "us-east-1c" - labels[semconventions.AttributeContainerName] = "signup_aggregator" - labels[semconventions.AttributeContainerImage] = "otel/signupaggregator" - labels[semconventions.AttributeContainerTag] = "v1" - labels[semconventions.AttributeK8sCluster] = "production" - labels[semconventions.AttributeK8sNamespace] = "default" - labels[semconventions.AttributeK8sDeployment] = "signup_aggregator" - labels[semconventions.AttributeK8sPod] = containerID - labels[semconventions.AttributeHostID] = instanceID - labels[semconventions.AttributeHostType] = "m5.xlarge" - resource := &resourcepb.Resource{ - Type: "container", - Labels: labels, - } - queueURL := "https://sqs.use1.amazonaws.com/Meltdown-Alerts" - attributes := make(map[string]string) - attributes[AWSOperationAttribute] = "SendMessage" - attributes[AWSAccountAttribute] = "987654321" - attributes[AWSRegionAttribute] = "us-east-2" - attributes[AWSQueueURLAttribute] = queueURL - attributes["employee.id"] = "XB477" - - filtered, awsData := makeAws(attributes, resource) - - assert.NotNil(t, filtered) - assert.NotNil(t, awsData) - assert.NotNil(t, awsData.EC2Metadata) - assert.NotNil(t, awsData.ECSMetadata) - assert.Nil(t, awsData.BeanstalkMetadata) - w := testWriters.borrow() - if err := w.Encode(awsData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, containerID)) - assert.True(t, strings.Contains(jsonStr, queueURL)) -} - -func TestAwsWithAwsDynamoDbResources(t *testing.T) { - instanceID := "i-00f7c0bcb26da2a99" - containerID := "signup_aggregator-x82ufje83" - labels := make(map[string]string) - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "123456789" - labels[semconventions.AttributeCloudZone] = "us-east-1c" - labels[semconventions.AttributeContainerName] = "signup_aggregator" - labels[semconventions.AttributeContainerImage] = "otel/signupaggregator" - labels[semconventions.AttributeContainerTag] = "v1" - labels[semconventions.AttributeK8sCluster] = "production" - labels[semconventions.AttributeK8sNamespace] = "default" - labels[semconventions.AttributeK8sDeployment] = "signup_aggregator" - labels[semconventions.AttributeK8sPod] = containerID - labels[semconventions.AttributeHostID] = instanceID - labels[semconventions.AttributeHostType] = "m5.xlarge" - resource := &resourcepb.Resource{ - Type: "container", - Labels: labels, - } - tableName := "WIDGET_TYPES" - attributes := make(map[string]string) - attributes[AWSOperationAttribute] = "PutItem" - attributes[AWSRequestIDAttribute] = "75107C82-EC8A-4F75-883F-4440B491B0AB" - attributes[AWSTableNameAttribute] = tableName - - filtered, awsData := makeAws(attributes, resource) - - assert.NotNil(t, filtered) - assert.NotNil(t, awsData) - assert.NotNil(t, awsData.EC2Metadata) - assert.NotNil(t, awsData.ECSMetadata) - assert.Nil(t, awsData.BeanstalkMetadata) - w := testWriters.borrow() - if err := w.Encode(awsData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, containerID)) - assert.True(t, strings.Contains(jsonStr, tableName)) -} diff --git a/exporter/awsxrayexporter/translator/cause.go b/exporter/awsxrayexporter/translator/cause.go deleted file mode 100644 index a297d6a94f9a..000000000000 --- a/exporter/awsxrayexporter/translator/cause.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "encoding/hex" - - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - tracetranslator "github.com/open-telemetry/opentelemetry-collector/translator/trace" -) - -// CauseData provides the shape for unmarshalling data that records exception. -type CauseData struct { - WorkingDirectory string `json:"working_directory,omitempty"` - Paths []string `json:"paths,omitempty"` - Exceptions []Exception `json:"exceptions,omitempty"` -} - -// Exception provides the shape for unmarshalling an exception. -type Exception struct { - ID string `json:"id,omitempty"` - Type string `json:"type,omitempty"` - Message string `json:"message,omitempty"` - Stack []Stack `json:"stack,omitempty"` - Remote bool `json:"remote,omitempty"` -} - -// Stack provides the shape for unmarshalling an stack. -type Stack struct { - Path string `json:"path,omitempty"` - Line int `json:"line,omitempty"` - Label string `json:"label,omitempty"` -} - -func makeCause(status *tracepb.Status, attributes map[string]string) (isError, isFault bool, - filtered map[string]string, cause *CauseData) { - if status.Code == 0 { - return false, false, attributes, nil - } - var ( - message = status.GetMessage() - errorKind string - errorObject string - ) - - filtered = make(map[string]string) - for key, value := range attributes { - switch key { - case semconventions.AttributeHTTPStatusText: - if message == "" { - message = value - } - default: - filtered[key] = value - } - } - if message == "" { - message = errorObject - } - - if message != "" { - id := newSegmentID() - hexID := hex.EncodeToString(id) - - cause = &CauseData{ - Exceptions: []Exception{ - { - ID: hexID, - Type: errorKind, - Message: message, - }, - }, - } - } - - if isClientError(status.Code) { - isError = true - isFault = false - } else { - isError = false - isFault = true - } - return isError, isFault, filtered, cause -} - -func isClientError(code int32) bool { - httpStatus := tracetranslator.HTTPStatusCodeFromOCStatus(code) - return httpStatus >= 400 && httpStatus < 500 -} diff --git a/exporter/awsxrayexporter/translator/cause_test.go b/exporter/awsxrayexporter/translator/cause_test.go deleted file mode 100644 index 588f82ddc464..000000000000 --- a/exporter/awsxrayexporter/translator/cause_test.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strings" - "testing" - "time" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - "github.com/stretchr/testify/assert" -) - -func TestCauseWithStatusMessage(t *testing.T) { - errorMsg := "this is a test" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeHTTPMethod] = "POST" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/widgets" - attributes[semconventions.AttributeHTTPStatusCode] = 500 - span := constructExceptionServerSpan(attributes) - span.Status.Message = errorMsg - filtered, _ := makeHTTP(span) - - isError, isFault, filtered, cause := makeCause(span.Status, filtered) - - assert.False(t, isError) - assert.True(t, isFault) - assert.NotNil(t, filtered) - assert.NotNil(t, cause) - w := testWriters.borrow() - if err := w.Encode(cause); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, errorMsg)) -} - -func TestCauseWithHttpStatusMessage(t *testing.T) { - errorMsg := "this is a test" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeHTTPMethod] = "POST" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/widgets" - attributes[semconventions.AttributeHTTPStatusCode] = 500 - attributes[semconventions.AttributeHTTPStatusText] = errorMsg - span := constructExceptionServerSpan(attributes) - filtered, _ := makeHTTP(span) - - isError, isFault, filtered, cause := makeCause(span.Status, filtered) - - assert.False(t, isError) - assert.True(t, isFault) - assert.NotNil(t, filtered) - assert.NotNil(t, cause) - w := testWriters.borrow() - if err := w.Encode(cause); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, errorMsg)) -} - -func constructExceptionServerSpan(attributes map[string]interface{}) *tracepb.Span { - endTime := time.Now().Round(time.Second) - startTime := endTime.Add(-90 * time.Second) - spanAttributes := constructSpanAttributes(attributes) - - return &tracepb.Span{ - TraceId: newTraceID(), - SpanId: newSegmentID(), - ParentSpanId: newSegmentID(), - Name: &tracepb.TruncatableString{Value: "/widgets"}, - Kind: tracepb.Span_SERVER, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: 13, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - Resource: &resourcepb.Resource{ - Type: "container", - Labels: constructDefaultResourceLabels(), - }, - } -} diff --git a/exporter/awsxrayexporter/translator/http.go b/exporter/awsxrayexporter/translator/http.go deleted file mode 100644 index 6a77a63fa5c7..000000000000 --- a/exporter/awsxrayexporter/translator/http.go +++ /dev/null @@ -1,227 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strconv" - - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - tracetranslator "github.com/open-telemetry/opentelemetry-collector/translator/trace" -) - -// HTTPData provides the shape for unmarshalling request and response data. -type HTTPData struct { - Request RequestData `json:"request,omitempty"` - Response ResponseData `json:"response,omitempty"` -} - -// RequestData provides the shape for unmarshalling request data. -type RequestData struct { - Method string `json:"method,omitempty"` - URL string `json:"url,omitempty"` // http(s)://host/path - ClientIP string `json:"client_ip,omitempty"` - UserAgent string `json:"user_agent,omitempty"` - XForwardedFor bool `json:"x_forwarded_for,omitempty"` - Traced bool `json:"traced,omitempty"` -} - -// ResponseData provides the shape for unmarshalling response data. -type ResponseData struct { - Status int64 `json:"status,omitempty"` - ContentLength int64 `json:"content_length,omitempty"` -} - -func makeHTTP(span *tracepb.Span) (map[string]string, *HTTPData) { - var ( - info HTTPData - filtered = make(map[string]string) - urlParts = make(map[string]string) - componentValue string - ) - - for key, value := range span.Attributes.AttributeMap { - switch key { - case semconventions.AttributeComponent: - componentValue = value.GetStringValue().GetValue() - filtered[key] = componentValue - case semconventions.AttributeHTTPMethod: - info.Request.Method = value.GetStringValue().GetValue() - case semconventions.AttributeHTTPClientIP: - info.Request.ClientIP = value.GetStringValue().GetValue() - info.Request.XForwardedFor = true - case semconventions.AttributeHTTPStatusCode: - info.Response.Status = value.GetIntValue() - case semconventions.AttributeHTTPURL: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributeHTTPScheme: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributeHTTPHost: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributeHTTPTarget: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributeHTTPServerName: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributeHostName: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributeHTTPHostPort: - urlParts[key] = value.GetStringValue().GetValue() - if len(urlParts[key]) == 0 { - urlParts[key] = strconv.FormatInt(value.GetIntValue(), 10) - } - case semconventions.AttributePeerHost: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributePeerPort: - urlParts[key] = value.GetStringValue().GetValue() - if len(urlParts[key]) == 0 { - urlParts[key] = strconv.FormatInt(value.GetIntValue(), 10) - } - case semconventions.AttributePeerIpv4: - urlParts[key] = value.GetStringValue().GetValue() - case semconventions.AttributePeerIpv6: - urlParts[key] = value.GetStringValue().GetValue() - default: - filtered[key] = value.GetStringValue().GetValue() - } - } - - if (componentValue != semconventions.ComponentTypeHTTP && componentValue != semconventions.ComponentTypeGRPC) || - info.Request.Method == "" { - return filtered, nil - } - - if tracepb.Span_SERVER == span.Kind { - info.Request.URL = constructServerURL(componentValue, urlParts) - } else { - info.Request.URL = constructClientURL(componentValue, urlParts) - } - - if info.Response.Status == 0 { - info.Response.Status = int64(tracetranslator.HTTPStatusCodeFromOCStatus(span.Status.Code)) - } - - info.Response.ContentLength = extractResponseSizeFromEvents(span) - - return filtered, &info -} - -func extractResponseSizeFromEvents(span *tracepb.Span) int64 { - var size int64 - if span.TimeEvents != nil { - for _, te := range span.TimeEvents.TimeEvent { - anno := te.GetAnnotation() - if anno != nil { - attrMap := anno.Attributes.AttributeMap - typeVal := attrMap[semconventions.AttributeMessageType] - if typeVal != nil { - if typeVal.GetStringValue().GetValue() == "RECEIVED" { - sizeVal := attrMap[semconventions.AttributeMessageUncompressedSize] - if sizeVal != nil { - size = sizeVal.GetIntValue() - } - } - } - } - } - } - return size -} - -func constructClientURL(component string, urlParts map[string]string) string { - // follows OpenTelemetry specification-defined combinations for client spans described in - // https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/data-http.md - url, ok := urlParts[semconventions.AttributeHTTPURL] - if ok { - // full URL available so no need to assemble - return url - } - - scheme, ok := urlParts[semconventions.AttributeHTTPScheme] - if !ok { - if component == semconventions.ComponentTypeGRPC { - scheme = "dns" - } else { - scheme = "http" - } - } - port := "" - host, ok := urlParts[semconventions.AttributeHTTPHost] - if !ok { - host, ok = urlParts[semconventions.AttributePeerHost] - if !ok { - host, ok = urlParts[semconventions.AttributePeerIpv4] - if !ok { - host = urlParts[semconventions.AttributePeerIpv6] - } - } - port, ok = urlParts[semconventions.AttributePeerPort] - if !ok { - port = "" - } - } - url = scheme + "://" + host - if len(port) > 0 && !(scheme == "http" && port == "80") && !(scheme == "https" && port == "443") { - url += ":" + port - } - target, ok := urlParts[semconventions.AttributeHTTPTarget] - if ok { - url += target - } else { - url += "/" - } - return url -} - -func constructServerURL(component string, urlParts map[string]string) string { - // follows OpenTelemetry specification-defined combinations for server spans described in - // https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/data-http.md - url, ok := urlParts[semconventions.AttributeHTTPURL] - if ok { - // full URL available so no need to assemble - return url - } - - scheme, ok := urlParts[semconventions.AttributeHTTPScheme] - if !ok { - if component == semconventions.ComponentTypeGRPC { - scheme = "dns" - } else { - scheme = "http" - } - } - port := "" - host, ok := urlParts[semconventions.AttributeHTTPHost] - if !ok { - host, ok = urlParts[semconventions.AttributeHTTPServerName] - if !ok { - host = urlParts[semconventions.AttributeHostName] - } - port, ok = urlParts[semconventions.AttributeHTTPHostPort] - if !ok { - port = "" - } - } - url = scheme + "://" + host - if len(port) > 0 && !(scheme == "http" && port == "80") && !(scheme == "https" && port == "443") { - url += ":" + port - } - target, ok := urlParts[semconventions.AttributeHTTPTarget] - if ok { - url += target - } else { - url += "/" - } - return url -} diff --git a/exporter/awsxrayexporter/translator/http_test.go b/exporter/awsxrayexporter/translator/http_test.go deleted file mode 100644 index b197fd9713e5..000000000000 --- a/exporter/awsxrayexporter/translator/http_test.go +++ /dev/null @@ -1,327 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strings" - "testing" - "time" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - "github.com/golang/protobuf/ptypes/wrappers" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - "github.com/stretchr/testify/assert" -) - -func TestClientSpanWithURLAttribute(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/users/junit" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - span := constructHTTPClientSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "https://api.example.com/users/junit")) -} - -func TestClientSpanWithSchemeHostTargetAttributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "https" - attributes[semconventions.AttributeHTTPHost] = "api.example.com" - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - attributes["user.id"] = "junit" - span := constructHTTPClientSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "https://api.example.com/users/junit")) -} - -func TestClientSpanWithPeerAttributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "http" - attributes[semconventions.AttributePeerHost] = "kb234.example.com" - attributes[semconventions.AttributePeerPort] = 8080 - attributes[semconventions.AttributePeerIpv4] = "10.8.17.36" - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - span := constructHTTPClientSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "http://kb234.example.com:8080/users/junit")) -} - -func TestClientSpanWithPeerIp4Attributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "http" - attributes[semconventions.AttributePeerIpv4] = "10.8.17.36" - attributes[semconventions.AttributePeerPort] = "8080" - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - span := constructHTTPClientSpan(attributes) - - filtered, httpData := makeHTTP(span) - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "http://10.8.17.36:8080/users/junit")) -} - -func TestClientSpanWithPeerIp6Attributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "https" - attributes[semconventions.AttributePeerIpv6] = "2001:db8:85a3::8a2e:370:7334" - attributes[semconventions.AttributePeerPort] = "443" - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - span := constructHTTPClientSpan(attributes) - - filtered, httpData := makeHTTP(span) - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "https://2001:db8:85a3::8a2e:370:7334/users/junit")) -} - -func TestServerSpanWithURLAttribute(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/users/junit" - attributes[semconventions.AttributeHTTPClientIP] = "192.168.15.32" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - span := constructHTTPServerSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "https://api.example.com/users/junit")) -} - -func TestServerSpanWithSchemeHostTargetAttributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "https" - attributes[semconventions.AttributeHTTPHost] = "api.example.com" - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - attributes[semconventions.AttributeHTTPClientIP] = "192.168.15.32" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - span := constructHTTPServerSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "https://api.example.com/users/junit")) -} - -func TestServerSpanWithSchemeServernamePortTargetAttributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "https" - attributes[semconventions.AttributeHTTPServerName] = "api.example.com" - attributes[semconventions.AttributeHTTPHostPort] = 443 - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - attributes[semconventions.AttributeHTTPClientIP] = "192.168.15.32" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - span := constructHTTPServerSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "https://api.example.com/users/junit")) -} - -func TestServerSpanWithSchemeNamePortTargetAttributes(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "http" - attributes[semconventions.AttributeHostName] = "kb234.example.com" - attributes[semconventions.AttributeHTTPHostPort] = 8080 - attributes[semconventions.AttributeHTTPTarget] = "/users/junit" - attributes[semconventions.AttributeHTTPClientIP] = "192.168.15.32" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - span := constructHTTPServerSpan(attributes) - timeEvents := constructTimedEventsWithReceivedMessageEvent(span.EndTime) - span.TimeEvents = &timeEvents - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "http://kb234.example.com:8080/users/junit")) -} - -func TestHttpStatusFromSpanStatus(t *testing.T) { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/users/junit" - span := constructHTTPClientSpan(attributes) - - filtered, httpData := makeHTTP(span) - - assert.NotNil(t, httpData) - assert.NotNil(t, filtered) - w := testWriters.borrow() - if err := w.Encode(httpData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "200")) -} - -func constructHTTPClientSpan(attributes map[string]interface{}) *tracepb.Span { - endTime := time.Now().Round(time.Second) - startTime := endTime.Add(-90 * time.Second) - spanAttributes := constructSpanAttributes(attributes) - - return &tracepb.Span{ - TraceId: newTraceID(), - SpanId: newSegmentID(), - ParentSpanId: newSegmentID(), - Name: &tracepb.TruncatableString{Value: "/users/junit"}, - Kind: tracepb.Span_CLIENT, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: 0, - Message: "OK", - }, - SameProcessAsParentSpan: &wrappers.BoolValue{Value: false}, - Tracestate: &tracepb.Span_Tracestate{ - Entries: []*tracepb.Span_Tracestate_Entry{ - {Key: "foo", Value: "bar"}, - {Key: "a", Value: "b"}, - }, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - Resource: &resourcepb.Resource{ - Type: "container", - Labels: constructDefaultResourceLabels(), - }, - } -} - -func constructHTTPServerSpan(attributes map[string]interface{}) *tracepb.Span { - endTime := time.Now().Round(time.Second) - startTime := endTime.Add(-90 * time.Second) - spanAttributes := constructSpanAttributes(attributes) - - return &tracepb.Span{ - TraceId: newTraceID(), - SpanId: newSegmentID(), - ParentSpanId: newSegmentID(), - Name: &tracepb.TruncatableString{Value: "/users/junit"}, - Kind: tracepb.Span_SERVER, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: 0, - Message: "OK", - }, - SameProcessAsParentSpan: &wrappers.BoolValue{Value: false}, - Tracestate: &tracepb.Span_Tracestate{ - Entries: []*tracepb.Span_Tracestate_Entry{ - {Key: "foo", Value: "bar"}, - {Key: "a", Value: "b"}, - }, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - Resource: &resourcepb.Resource{ - Type: "container", - Labels: constructDefaultResourceLabels(), - }, - } -} diff --git a/exporter/awsxrayexporter/translator/segment.go b/exporter/awsxrayexporter/translator/segment.go deleted file mode 100644 index 0d54e927e845..000000000000 --- a/exporter/awsxrayexporter/translator/segment.go +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "encoding/binary" - "encoding/hex" - "math/rand" - "reflect" - "regexp" - "time" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - "github.com/golang/protobuf/ptypes/timestamp" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - tracetranslator "github.com/open-telemetry/opentelemetry-collector/translator/trace" -) - -// AWS X-Ray acceptable values for origin field. -const ( - OriginEC2 = "AWS::EC2::Instance" - OriginECS = "AWS::ECS::Container" - OriginEB = "AWS::ElasticBeanstalk::Environment" -) - -var ( - zeroSpanID = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} -) - -var ( - // reInvalidSpanCharacters defines the invalid letters in a span name as per - // https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html - reInvalidSpanCharacters = regexp.MustCompile(`[^ 0-9\p{L}N_.:/%&#=+,\-@]`) - // reInvalidAnnotationCharacters defines the invalid letters in an annotation key as per - // https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html - reInvalidAnnotationCharacters = regexp.MustCompile(`[^a-zA-Z0-9_]`) -) - -const ( - // defaultSpanName will be used if there are no valid xray characters in the span name - defaultSegmentName = "span" - // maxSegmentNameLength the maximum length of a Segment name - maxSegmentNameLength = 200 -) - -const ( - traceIDLength = 35 // fixed length of aws trace id - identifierOffset = 11 // offset of identifier within traceID -) - -// Segment provides the shape for unmarshalling segment data. -type Segment struct { - // Required - TraceID string `json:"trace_id,omitempty"` - ID string `json:"id"` - Name string `json:"name"` - StartTime float64 `json:"start_time"` - EndTime float64 `json:"end_time,omitempty"` - - // Optional - InProgress bool `json:"in_progress,omitempty"` - ParentID string `json:"parent_id,omitempty"` - Fault bool `json:"fault,omitempty"` - Error bool `json:"error,omitempty"` - Throttle bool `json:"throttle,omitempty"` - Cause *CauseData `json:"cause,omitempty"` - ResourceARN string `json:"resource_arn,omitempty"` - Origin string `json:"origin,omitempty"` - - Type string `json:"type,omitempty"` - Namespace string `json:"namespace,omitempty"` - User string `json:"user,omitempty"` - PrecursorIDs []string `json:"precursor_ids,omitempty"` - - HTTP *HTTPData `json:"http,omitempty"` - AWS *AWSData `json:"aws,omitempty"` - - Service *ServiceData `json:"service,omitempty"` - - // SQL - SQL *SQLData `json:"sql,omitempty"` - - // Metadata - Annotations map[string]interface{} `json:"annotations,omitempty"` - Metadata map[string]map[string]interface{} `json:"metadata,omitempty"` -} - -var ( - writers = newWriterPool(2048) -) - -// MakeSegmentDocumentString converts an OpenCensus Span to an X-Ray Segment and then serialzies to JSON -func MakeSegmentDocumentString(name string, span *tracepb.Span) (string, error) { - segment := MakeSegment(name, span) - w := writers.borrow() - if err := w.Encode(segment); err != nil { - return "", err - } - jsonStr := w.String() - writers.release(w) - return jsonStr, nil -} - -// MakeSegment converts an OpenCensus Span to an X-Ray Segment -func MakeSegment(name string, span *tracepb.Span) Segment { - var ( - traceID = convertToAmazonTraceID(span.TraceId) - startTime = timestampToFloatSeconds(span.StartTime, span.StartTime) - endTime = timestampToFloatSeconds(span.EndTime, span.StartTime) - httpfiltered, http = makeHTTP(span) - isError, isFault, causefiltered, cause = makeCause(span.Status, httpfiltered) - isThrottled = span.Status.Code == tracetranslator.OCResourceExhausted - origin = determineAwsOrigin(span.Resource) - awsfiltered, aws = makeAws(causefiltered, span.Resource) - service = makeService(span.Resource) - sqlfiltered, sql = makeSQL(awsfiltered) - annotations = makeAnnotations(sqlfiltered) - namespace string - ) - - if name == "" { - name = fixSegmentName(span.Name.String()) - } - if span.ParentSpanId != nil { - namespace = "remote" - } - - return Segment{ - ID: convertToAmazonSpanID(span.SpanId), - TraceID: traceID, - Name: name, - StartTime: startTime, - EndTime: endTime, - ParentID: convertToAmazonSpanID(span.ParentSpanId), - Fault: isFault, - Error: isError, - Throttle: isThrottled, - Cause: cause, - Origin: origin, - Namespace: namespace, - HTTP: http, - AWS: aws, - Service: service, - SQL: sql, - Annotations: annotations, - Metadata: nil, - } -} - -// newTraceID generates a new valid X-Ray TraceID -func newTraceID() []byte { - var r [16]byte - epoch := time.Now().Unix() - binary.BigEndian.PutUint32(r[0:4], uint32(epoch)) - _, err := rand.Read(r[4:]) - if err != nil { - panic(err) - } - return r[:] -} - -// newSegmentID generates a new valid X-Ray SegmentID -func newSegmentID() []byte { - var r [8]byte - _, err := rand.Read(r[:]) - if err != nil { - panic(err) - } - return r[:] -} - -func determineAwsOrigin(resource *resourcepb.Resource) string { - origin := OriginEC2 - if resource == nil { - return origin - } - _, ok := resource.Labels[semconventions.AttributeContainerName] - if ok { - origin = OriginECS - } - return origin -} - -// convertToAmazonTraceID converts a trace ID to the Amazon format. -// -// A trace ID unique identifier that connects all segments and subsegments -// originating from a single client request. -// * A trace_id consists of three numbers separated by hyphens. For example, -// 1-58406520-a006649127e371903a2de979. This includes: -// * The version number, that is, 1. -// * The time of the original request, in Unix epoch time, in 8 hexadecimal digits. -// * For example, 10:00AM December 2nd, 2016 PST in epoch time is 1480615200 seconds, -// or 58406520 in hexadecimal. -// * A 96-bit identifier for the trace, globally unique, in 24 hexadecimal digits. -func convertToAmazonTraceID(traceID []byte) string { - const ( - // maxAge of 28 days. AWS has a 30 day limit, let's be conservative rather than - // hit the limit - maxAge = 60 * 60 * 24 * 28 - - // maxSkew allows for 5m of clock skew - maxSkew = 60 * 5 - ) - - var ( - content = [traceIDLength]byte{} - epochNow = time.Now().Unix() - epoch = int64(binary.BigEndian.Uint32(traceID[0:4])) - b = [4]byte{} - ) - - // If AWS traceID originally came from AWS, no problem. However, if oc generated - // the traceID, then the epoch may be outside the accepted AWS range of within the - // past 30 days. - // - // In that case, we use the current time as the epoch and accept that a new span - // may be created - if delta := epochNow - epoch; delta > maxAge || delta < -maxSkew { - epoch = epochNow - } - - binary.BigEndian.PutUint32(b[0:4], uint32(epoch)) - - content[0] = '1' - content[1] = '-' - hex.Encode(content[2:10], b[0:4]) - content[10] = '-' - hex.Encode(content[identifierOffset:], traceID[4:16]) // overwrite with identifier - - return string(content[0:traceIDLength]) -} - -// convertToAmazonSpanID generates an Amazon spanID from a trace.SpanID - a 64-bit identifier -// for the Segment, unique among segments in the same trace, in 16 hexadecimal digits. -func convertToAmazonSpanID(v []byte) string { - if v == nil || reflect.DeepEqual(v, zeroSpanID) { - return "" - } - return hex.EncodeToString(v[0:8]) -} - -func timestampToFloatSeconds(ts *timestamp.Timestamp, startTs *timestamp.Timestamp) float64 { - var ( - t time.Time - ) - if ts == nil { - t = time.Now() - } else if startTs == nil { - t = time.Unix(ts.Seconds, int64(ts.Nanos)) - } else { - t = time.Unix(startTs.Seconds, int64(ts.Nanos)) - } - return float64(t.UnixNano()) / 1e9 -} - -func sanitizeAndTransferAnnotations(dest map[string]interface{}, src map[string]string) { - for key, value := range src { - key = fixAnnotationKey(key) - dest[key] = value - } -} - -func makeAnnotations(attributes map[string]string) map[string]interface{} { - var ( - result = map[string]interface{}{} - ) - - delete(attributes, semconventions.AttributeComponent) - sanitizeAndTransferAnnotations(result, attributes) - - if len(result) == 0 { - return nil - } - return result -} - -// fixSegmentName removes any invalid characters from the span name. AWS X-Ray defines -// the list of valid characters here: -// https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html -func fixSegmentName(name string) string { - if reInvalidSpanCharacters.MatchString(name) { - // only allocate for ReplaceAllString if we need to - name = reInvalidSpanCharacters.ReplaceAllString(name, "") - } - - if length := len(name); length > maxSegmentNameLength { - name = name[0:maxSegmentNameLength] - } else if length == 0 { - name = defaultSegmentName - } - - return name -} - -// fixAnnotationKey removes any invalid characters from the annotaiton key. AWS X-Ray defines -// the list of valid characters here: -// https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html -func fixAnnotationKey(key string) string { - if reInvalidAnnotationCharacters.MatchString(key) { - // only allocate for ReplaceAllString if we need to - key = reInvalidAnnotationCharacters.ReplaceAllString(key, "_") - } - - return key -} diff --git a/exporter/awsxrayexporter/translator/segment_test.go b/exporter/awsxrayexporter/translator/segment_test.go deleted file mode 100644 index 6b3371ad9306..000000000000 --- a/exporter/awsxrayexporter/translator/segment_test.go +++ /dev/null @@ -1,385 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "fmt" - "reflect" - "strings" - "testing" - "time" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - "github.com/golang/protobuf/ptypes/timestamp" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - tracetranslator "github.com/open-telemetry/opentelemetry-collector/translator/trace" - "github.com/stretchr/testify/assert" -) - -var ( - testWriters = newWriterPool(2048) -) - -func TestClientSpanWithGrpcComponent(t *testing.T) { - spanName := "platformapi.widgets.searchWidgets" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeGRPC - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "ipv6" - attributes[semconventions.AttributePeerIpv6] = "2607:f8b0:4000:80c::2004" - attributes[semconventions.AttributePeerPort] = "9443" - attributes[semconventions.AttributeHTTPTarget] = spanName - labels := constructDefaultResourceLabels() - span := constructClientSpan(nil, spanName, 0, "OK", attributes, labels) - timeEvents := constructTimedEventsWithSentMessageEvent(span.StartTime) - span.TimeEvents = &timeEvents - - jsonStr, err := MakeSegmentDocumentString(spanName, span) - - assert.NotNil(t, jsonStr) - assert.Nil(t, err) - assert.True(t, strings.Contains(jsonStr, spanName)) -} - -func TestClientSpanWithAwsSdkClient(t *testing.T) { - spanName := "AmazonDynamoDB.getItem" - parentSpanID := newSegmentID() - user := "testingT" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "POST" - attributes[semconventions.AttributeHTTPScheme] = "https" - attributes[semconventions.AttributeHTTPHost] = "dynamodb.us-east-1.amazonaws.com" - attributes[semconventions.AttributeHTTPTarget] = "/" - attributes[AWSOperationAttribute] = "GetItem" - attributes[AWSRequestIDAttribute] = "18BO1FEPJSSAOGNJEDPTPCMIU7VV4KQNSO5AEMVJF66Q9ASUAAJG" - attributes[AWSTableNameAttribute] = "otel-dev-Testing" - labels := constructDefaultResourceLabels() - span := constructClientSpan(parentSpanID, spanName, 0, "OK", attributes, labels) - - jsonStr, err := MakeSegmentDocumentString(spanName, span) - - assert.NotNil(t, jsonStr) - assert.Nil(t, err) - assert.True(t, strings.Contains(jsonStr, spanName)) - assert.False(t, strings.Contains(jsonStr, user)) - assert.False(t, strings.Contains(jsonStr, semconventions.AttributeComponent)) -} - -func TestServerSpanWithInternalServerError(t *testing.T) { - spanName := "/api/locations" - parentSpanID := newSegmentID() - errorMessage := "java.lang.NullPointerException" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "POST" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.org/api/locations" - attributes[semconventions.AttributeHTTPTarget] = "/api/locations" - attributes[semconventions.AttributeHTTPStatusCode] = 500 - attributes[semconventions.AttributeHTTPStatusText] = "java.lang.NullPointerException" - labels := constructDefaultResourceLabels() - span := constructServerSpan(parentSpanID, spanName, tracetranslator.OCInternal, errorMessage, attributes, labels) - timeEvents := constructTimedEventsWithSentMessageEvent(span.StartTime) - span.TimeEvents = &timeEvents - - segment := MakeSegment(spanName, span) - - assert.NotNil(t, segment) - assert.NotNil(t, segment.Cause) - assert.Equal(t, spanName, segment.Name) - assert.True(t, segment.Fault) - w := testWriters.borrow() - if err := w.Encode(segment); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, spanName)) - assert.True(t, strings.Contains(jsonStr, errorMessage)) -} - -func TestClientSpanWithDbComponent(t *testing.T) { - spanName := "call update_user_preference( ?, ?, ? )" - enterpriseAppID := "25F2E73B-4769-4C79-9DF3-7EBE85D571EA" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = "db" - attributes[semconventions.AttributeDBType] = "sql" - attributes[semconventions.AttributeDBInstance] = "customers" - attributes[semconventions.AttributeDBStatement] = spanName - attributes[semconventions.AttributeDBUser] = "userprefsvc" - attributes[semconventions.AttributePeerAddress] = "mysql://db.dev.example.com:3306" - attributes[semconventions.AttributePeerHost] = "db.dev.example.com" - attributes[semconventions.AttributePeerPort] = "3306" - attributes["enterprise.app.id"] = enterpriseAppID - labels := constructDefaultResourceLabels() - span := constructClientSpan(nil, spanName, 0, "OK", attributes, labels) - - segment := MakeSegment(spanName, span) - - assert.NotNil(t, segment) - assert.NotNil(t, segment.SQL) - assert.NotNil(t, segment.Service) - assert.NotNil(t, segment.AWS) - assert.NotNil(t, segment.Annotations) - assert.Nil(t, segment.Cause) - assert.Nil(t, segment.HTTP) - assert.Equal(t, spanName, segment.Name) - assert.False(t, segment.Fault) - assert.False(t, segment.Error) - w := testWriters.borrow() - if err := w.Encode(segment); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, spanName)) - assert.True(t, strings.Contains(jsonStr, enterpriseAppID)) -} - -func TestSpanWithInvalidTraceId(t *testing.T) { - spanName := "platformapi.widgets.searchWidgets" - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeGRPC - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPScheme] = "ipv6" - attributes[semconventions.AttributePeerIpv6] = "2607:f8b0:4000:80c::2004" - attributes[semconventions.AttributePeerPort] = "9443" - attributes[semconventions.AttributeHTTPTarget] = spanName - labels := constructDefaultResourceLabels() - span := constructClientSpan(nil, spanName, 0, "OK", attributes, labels) - timeEvents := constructTimedEventsWithSentMessageEvent(span.StartTime) - span.TimeEvents = &timeEvents - span.TraceId[0] = 0x11 - - jsonStr, err := MakeSegmentDocumentString(spanName, span) - - assert.NotNil(t, jsonStr) - assert.Nil(t, err) - assert.True(t, strings.Contains(jsonStr, spanName)) - assert.False(t, strings.Contains(jsonStr, "1-11")) -} - -func TestFixSegmentName(t *testing.T) { - validName := "EP @ test_15.testing-d\u00F6main.org#GO" - fixedName := fixSegmentName(validName) - assert.Equal(t, validName, fixedName) - invalidName := ".example.com" - fixedName = fixSegmentName(invalidName) - assert.Equal(t, "subDomain.example.com", fixedName) - fullyInvalidName := "<>" - fixedName = fixSegmentName(fullyInvalidName) - assert.Equal(t, defaultSegmentName, fixedName) -} - -func TestFixAnnotationKey(t *testing.T) { - validKey := "Key_1" - fixedKey := fixAnnotationKey(validKey) - assert.Equal(t, validKey, fixedKey) - invalidKey := "Key@1" - fixedKey = fixAnnotationKey(invalidKey) - assert.Equal(t, "Key_1", fixedKey) -} - -func constructClientSpan(parentSpanID []byte, name string, code int32, message string, - attributes map[string]interface{}, rscLabels map[string]string) *tracepb.Span { - var ( - traceID = newTraceID() - spanID = newSegmentID() - endTime = time.Now() - startTime = endTime.Add(-215 * time.Millisecond) - spanAttributes = constructSpanAttributes(attributes) - ) - - return &tracepb.Span{ - TraceId: traceID, - SpanId: spanID, - ParentSpanId: parentSpanID, - Name: &tracepb.TruncatableString{Value: name}, - Kind: tracepb.Span_CLIENT, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: code, - Message: message, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - Resource: &resourcepb.Resource{ - Type: "container", - Labels: rscLabels, - }, - } -} - -func constructServerSpan(parentSpanID []byte, name string, code int32, message string, - attributes map[string]interface{}, rscLabels map[string]string) *tracepb.Span { - var ( - traceID = newTraceID() - spanID = newSegmentID() - endTime = time.Now() - startTime = endTime.Add(-215 * time.Millisecond) - spanAttributes = constructSpanAttributes(attributes) - ) - - return &tracepb.Span{ - TraceId: traceID, - SpanId: spanID, - ParentSpanId: parentSpanID, - Name: &tracepb.TruncatableString{Value: name}, - Kind: tracepb.Span_SERVER, - StartTime: convertTimeToTimestamp(startTime), - EndTime: convertTimeToTimestamp(endTime), - Status: &tracepb.Status{ - Code: code, - Message: message, - }, - Attributes: &tracepb.Span_Attributes{ - AttributeMap: spanAttributes, - }, - Resource: &resourcepb.Resource{ - Type: "container", - Labels: rscLabels, - }, - } -} - -func constructSpanAttributes(attributes map[string]interface{}) map[string]*tracepb.AttributeValue { - attrs := make(map[string]*tracepb.AttributeValue) - for key, value := range attributes { - valType := reflect.TypeOf(value) - var attrVal tracepb.AttributeValue - if valType.Kind() == reflect.Int { - attrVal = tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: int64(value.(int)), - }} - } else if valType.Kind() == reflect.Int64 { - attrVal = tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: value.(int64), - }} - } else { - attrVal = tracepb.AttributeValue{Value: &tracepb.AttributeValue_StringValue{ - StringValue: &tracepb.TruncatableString{Value: fmt.Sprintf("%v", value)}, - }} - } - attrs[key] = &attrVal - } - return attrs -} - -func constructDefaultResourceLabels() map[string]string { - labels := make(map[string]string) - labels[semconventions.AttributeServiceName] = "signup_aggregator" - labels[semconventions.AttributeContainerName] = "signup_aggregator" - labels[semconventions.AttributeContainerImage] = "otel/signupaggregator" - labels[semconventions.AttributeContainerTag] = "v1" - labels[semconventions.AttributeK8sCluster] = "production" - labels[semconventions.AttributeK8sNamespace] = "default" - labels[semconventions.AttributeK8sDeployment] = "signup_aggregator" - labels[semconventions.AttributeK8sPod] = "signup_aggregator-x82ufje83" - labels[semconventions.AttributeCloudProvider] = "aws" - labels[semconventions.AttributeCloudAccount] = "123456789" - labels[semconventions.AttributeCloudRegion] = "us-east-1" - labels[semconventions.AttributeCloudZone] = "us-east-1c" - return labels -} - -func convertTimeToTimestamp(t time.Time) *timestamp.Timestamp { - if t.IsZero() { - return nil - } - nanoTime := t.UnixNano() - return ×tamp.Timestamp{ - Seconds: nanoTime / 1e9, - Nanos: int32(nanoTime % 1e9), - } -} - -func constructTimedEventsWithReceivedMessageEvent(tm *timestamp.Timestamp) tracepb.Span_TimeEvents { - eventAttrMap := make(map[string]*tracepb.AttributeValue) - eventAttrMap[semconventions.AttributeMessageType] = - &tracepb.AttributeValue{Value: &tracepb.AttributeValue_StringValue{ - StringValue: &tracepb.TruncatableString{Value: "RECEIVED"}, - }} - eventAttrMap[semconventions.AttributeMessageID] = &tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: 1, - }} - eventAttrMap[semconventions.AttributeMessageCompressedSize] = - &tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: 6478, - }} - eventAttrMap[semconventions.AttributeMessageUncompressedSize] = - &tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: 12452, - }} - eventAttrbutes := tracepb.Span_Attributes{ - AttributeMap: eventAttrMap, - DroppedAttributesCount: 0, - } - annotation := tracepb.Span_TimeEvent_Annotation{ - Attributes: &eventAttrbutes, - } - event := tracepb.Span_TimeEvent{ - Time: tm, - Value: &tracepb.Span_TimeEvent_Annotation_{ - Annotation: &annotation, - }, - } - events := make([]*tracepb.Span_TimeEvent, 1) - events[0] = &event - timeEvents := tracepb.Span_TimeEvents{ - TimeEvent: events, - DroppedAnnotationsCount: 0, - DroppedMessageEventsCount: 0, - } - return timeEvents -} - -func constructTimedEventsWithSentMessageEvent(tm *timestamp.Timestamp) tracepb.Span_TimeEvents { - eventAttrMap := make(map[string]*tracepb.AttributeValue) - eventAttrMap[semconventions.AttributeMessageType] = - &tracepb.AttributeValue{Value: &tracepb.AttributeValue_StringValue{ - StringValue: &tracepb.TruncatableString{Value: "SENT"}, - }} - eventAttrMap[semconventions.AttributeMessageID] = &tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: 1, - }} - eventAttrMap[semconventions.AttributeMessageUncompressedSize] = - &tracepb.AttributeValue{Value: &tracepb.AttributeValue_IntValue{ - IntValue: 7480, - }} - eventAttrbutes := tracepb.Span_Attributes{ - AttributeMap: eventAttrMap, - DroppedAttributesCount: 0, - } - annotation := tracepb.Span_TimeEvent_Annotation{ - Attributes: &eventAttrbutes, - } - event := tracepb.Span_TimeEvent{ - Time: tm, - Value: &tracepb.Span_TimeEvent_Annotation_{ - Annotation: &annotation, - }, - } - events := make([]*tracepb.Span_TimeEvent, 1) - events[0] = &event - timeEvents := tracepb.Span_TimeEvents{ - TimeEvent: events, - DroppedAnnotationsCount: 0, - DroppedMessageEventsCount: 0, - } - return timeEvents -} diff --git a/exporter/awsxrayexporter/translator/service.go b/exporter/awsxrayexporter/translator/service.go deleted file mode 100644 index 8a566fbf5f92..000000000000 --- a/exporter/awsxrayexporter/translator/service.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" -) - -// ServiceData provides the shape for unmarshalling service version. -type ServiceData struct { - Version string `json:"version,omitempty"` - CompilerVersion string `json:"compiler_version,omitempty"` - Compiler string `json:"compiler,omitempty"` -} - -func makeService(resource *resourcepb.Resource) *ServiceData { - var ( - ver string - service *ServiceData - ) - if resource == nil { - return service - } - for key, value := range resource.Labels { - switch key { - case semconventions.AttributeContainerTag: - ver = value - } - } - if ver != "" { - service = &ServiceData{ - Version: ver, - } - } - return service -} diff --git a/exporter/awsxrayexporter/translator/service_test.go b/exporter/awsxrayexporter/translator/service_test.go deleted file mode 100644 index 8b0073abdf7c..000000000000 --- a/exporter/awsxrayexporter/translator/service_test.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strings" - "testing" - - resourcepb "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" - "github.com/stretchr/testify/assert" -) - -func TestServiceFromResource(t *testing.T) { - resource := &resourcepb.Resource{ - Type: "container", - Labels: constructDefaultResourceLabels(), - } - - service := makeService(resource) - - assert.NotNil(t, service) - w := testWriters.borrow() - if err := w.Encode(service); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "v1")) -} - -func TestServiceFromNullResource(t *testing.T) { - var resource *resourcepb.Resource - - service := makeService(resource) - - assert.Nil(t, service) -} diff --git a/exporter/awsxrayexporter/translator/sql.go b/exporter/awsxrayexporter/translator/sql.go deleted file mode 100644 index 185d0824ee27..000000000000 --- a/exporter/awsxrayexporter/translator/sql.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" -) - -// SQLData provides the shape for unmarshalling sql data. -type SQLData struct { - ConnectionString string `json:"connection_string,omitempty"` - URL string `json:"url,omitempty"` // host:port/database - DatabaseType string `json:"database_type,omitempty"` - DatabaseVersion string `json:"database_version,omitempty"` - DriverVersion string `json:"driver_version,omitempty"` - User string `json:"user,omitempty"` - Preparation string `json:"preparation,omitempty"` // "statement" / "call" - SanitizedQuery string `json:"sanitized_query,omitempty"` -} - -func makeSQL(attributes map[string]string) (map[string]string, *SQLData) { - var ( - filtered = make(map[string]string) - sqlData SQLData - dbURL string - dbType string - dbInstance string - dbStatement string - dbUser string - ) - componentType := attributes[semconventions.AttributeComponent] - if componentType == semconventions.ComponentTypeHTTP || - componentType == semconventions.ComponentTypeGRPC { - return attributes, nil - } - for key, value := range attributes { - switch key { - case semconventions.AttributePeerAddress: - dbURL = value - case semconventions.AttributeDBType: - dbType = value - case semconventions.AttributeDBInstance: - dbInstance = value - case semconventions.AttributeDBStatement: - dbStatement = value - case semconventions.AttributeDBUser: - dbUser = value - default: - filtered[key] = value - } - } - if dbURL == "" { - dbURL = "localhost" - } - url := dbURL + "/" + dbInstance - sqlData = SQLData{ - URL: url, - DatabaseType: dbType, - User: dbUser, - SanitizedQuery: dbStatement, - } - return filtered, &sqlData -} diff --git a/exporter/awsxrayexporter/translator/sql_test.go b/exporter/awsxrayexporter/translator/sql_test.go deleted file mode 100644 index 1efd14503a1b..000000000000 --- a/exporter/awsxrayexporter/translator/sql_test.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "strings" - "testing" - - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - "github.com/stretchr/testify/assert" -) - -func TestClientSpanWithStatementAttribute(t *testing.T) { - attributes := make(map[string]string) - attributes[semconventions.AttributeComponent] = "db" - attributes[semconventions.AttributeDBType] = "sql" - attributes[semconventions.AttributeDBInstance] = "customers" - attributes[semconventions.AttributeDBStatement] = "SELECT * FROM user WHERE user_id = ?" - attributes[semconventions.AttributeDBUser] = "readonly_user" - attributes[semconventions.AttributePeerAddress] = "mysql://db.example.com:3306" - attributes[semconventions.AttributePeerHost] = "db.example.com" - attributes[semconventions.AttributePeerPort] = "3306" - - filtered, sqlData := makeSQL(attributes) - - assert.NotNil(t, filtered) - assert.NotNil(t, sqlData) - w := testWriters.borrow() - if err := w.Encode(sqlData); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - testWriters.release(w) - assert.True(t, strings.Contains(jsonStr, "mysql://db.example.com:3306/customers")) -} - -func TestClientSpanWithHttpComponent(t *testing.T) { - attributes := make(map[string]string) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeDBType] = "sql" - attributes[semconventions.AttributeDBInstance] = "customers" - attributes[semconventions.AttributeDBStatement] = "SELECT * FROM user WHERE user_id = ?" - attributes[semconventions.AttributeDBUser] = "readonly_user" - attributes[semconventions.AttributePeerAddress] = "mysql://db.example.com:3306" - attributes[semconventions.AttributePeerHost] = "db.example.com" - attributes[semconventions.AttributePeerPort] = "3306" - - filtered, sqlData := makeSQL(attributes) - - assert.NotNil(t, filtered) - assert.Nil(t, sqlData) -} diff --git a/exporter/awsxrayexporter/translator/writer_pool.go b/exporter/awsxrayexporter/translator/writer_pool.go deleted file mode 100644 index 811b69db4b50..000000000000 --- a/exporter/awsxrayexporter/translator/writer_pool.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "bytes" - "encoding/json" - "sync" -) - -const ( - maxBufSize = 65536 -) - -type writer struct { - buffer *bytes.Buffer - encoder *json.Encoder -} - -type writerPool struct { - pool *sync.Pool -} - -func newWriterPool(size int) *writerPool { - pool := &sync.Pool{ - New: func() interface{} { - var ( - buffer = bytes.NewBuffer(make([]byte, 0, size)) - encoder = json.NewEncoder(buffer) - ) - - return &writer{ - buffer: buffer, - encoder: encoder, - } - }, - } - return &writerPool{pool: pool} -} - -func (w *writer) Reset() { - w.buffer.Reset() -} - -func (w *writer) Encode(v interface{}) error { - return w.encoder.Encode(v) -} - -func (w *writer) String() string { - return w.buffer.String() -} - -func (writerPool *writerPool) borrow() *writer { - return writerPool.pool.Get().(*writer) -} - -func (writerPool *writerPool) release(w *writer) { - if w.buffer.Cap() < maxBufSize { - w.buffer.Reset() - writerPool.pool.Put(w) - } -} diff --git a/exporter/awsxrayexporter/translator/writer_pool_test.go b/exporter/awsxrayexporter/translator/writer_pool_test.go deleted file mode 100644 index 82448def1c9a..000000000000 --- a/exporter/awsxrayexporter/translator/writer_pool_test.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package translator - -import ( - "bytes" - "encoding/json" - "testing" - - tracepb "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" - semconventions "github.com/open-telemetry/opentelemetry-collector/translator/conventions" - "github.com/stretchr/testify/assert" - "go.uber.org/zap" -) - -func TestWriterPoolBasic(t *testing.T) { - size := 1024 - wp := newWriterPool(size) - span := constructWriterPoolSpan() - w := wp.borrow() - assert.NotNil(t, w) - assert.NotNil(t, w.buffer) - assert.NotNil(t, w.encoder) - assert.Equal(t, size, w.buffer.Cap()) - assert.Equal(t, 0, w.buffer.Len()) - if err := w.Encode(span); err != nil { - assert.Fail(t, "invalid json") - } - jsonStr := w.String() - assert.Equal(t, len(jsonStr), w.buffer.Len()) - wp.release(w) -} - -func BenchmarkWithoutPool(b *testing.B) { - logger := zap.NewNop() - for i := 0; i < b.N; i++ { - b.StopTimer() - span := constructWriterPoolSpan() - b.StartTimer() - buffer := bytes.NewBuffer(make([]byte, 0, 2048)) - encoder := json.NewEncoder(buffer) - encoder.Encode(span) - logger.Info(buffer.String()) - } -} - -func BenchmarkWithPool(b *testing.B) { - logger := zap.NewNop() - wp := newWriterPool(2048) - for i := 0; i < b.N; i++ { - b.StopTimer() - span := constructWriterPoolSpan() - b.StartTimer() - w := wp.borrow() - w.Encode(span) - logger.Info(w.String()) - } -} - -func constructWriterPoolSpan() *tracepb.Span { - attributes := make(map[string]interface{}) - attributes[semconventions.AttributeComponent] = semconventions.ComponentTypeHTTP - attributes[semconventions.AttributeHTTPMethod] = "GET" - attributes[semconventions.AttributeHTTPURL] = "https://api.example.com/users/junit" - attributes[semconventions.AttributeHTTPClientIP] = "192.168.15.32" - attributes[semconventions.AttributeHTTPStatusCode] = 200 - return constructHTTPServerSpan(attributes) -} diff --git a/exporter/awsxrayexporter/xray_client.go b/exporter/awsxrayexporter/xray_client.go deleted file mode 100644 index 3f4c8eb3728c..000000000000 --- a/exporter/awsxrayexporter/xray_client.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2019, OpenTelemetry Authors -// Portions of this file Copyright 2018-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package awsxrayexporter - -import ( - "os" - "strconv" - "strings" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/xray" - "go.uber.org/zap" -) - -// XRay defines X-Ray api call structure. -type XRay interface { - PutTraceSegments(input *xray.PutTraceSegmentsInput) (*xray.PutTraceSegmentsOutput, error) - PutTelemetryRecords(input *xray.PutTelemetryRecordsInput) (*xray.PutTelemetryRecordsOutput, error) -} - -// XRayClient represents X-Ray client. -type XRayClient struct { - xRay *xray.XRay -} - -// PutTraceSegments makes PutTraceSegments api call on X-Ray client. -func (c *XRayClient) PutTraceSegments(input *xray.PutTraceSegmentsInput) (*xray.PutTraceSegmentsOutput, error) { - return c.xRay.PutTraceSegments(input) -} - -// PutTelemetryRecords makes PutTelemetryRecords api call on X-Ray client. -func (c *XRayClient) PutTelemetryRecords(input *xray.PutTelemetryRecordsInput) (*xray.PutTelemetryRecordsOutput, error) { - return c.xRay.PutTelemetryRecords(input) -} - -// NewXRay creates a new instance of the XRay client with a aws configuration and session . -func NewXRay(logger *zap.Logger, awsConfig *aws.Config, s *session.Session) XRay { - x := xray.New(s, awsConfig) - logger.Debug("Using Endpoint: %s", zap.String("endpoint", x.Endpoint)) - - x.Handlers.Build.PushBackNamed(request.NamedHandler{ - Name: "tracing.XRayVersionUserAgentHandler", - Fn: request.MakeAddToUserAgentHandler("xray", "1.0", os.Getenv("AWS_EXECUTION_ENV")), - }) - - x.Handlers.Sign.PushFrontNamed(request.NamedHandler{ - Name: "tracing.TimestampHandler", - Fn: func(r *request.Request) { - r.HTTPRequest.Header.Set("X-Amzn-Xray-Timestamp", - strconv.FormatFloat(float64(time.Now().UnixNano())/float64(time.Second), 'f', 9, 64)) - }, - }) - - return &XRayClient{ - xRay: x, - } -} - -// IsTimeoutError checks whether error is timeout error. -func IsTimeoutError(err error) bool { - awsError, ok := err.(awserr.Error) - if ok { - if strings.Contains(awsError.Error(), "net/http: request canceled") { - return true - } - } - return false -} diff --git a/go.mod b/go.mod index 00449e3f2bd8..4a332e6ec5f9 100644 --- a/go.mod +++ b/go.mod @@ -16,6 +16,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinscribereceiver v0.0.0-20191126142441-b2a048090ad6 github.com/open-telemetry/opentelemetry-collector-contrib/testbed v0.0.0-20191216151958-b96fcb08e351 // indirect github.com/pavius/impi v0.0.0-20180302134524-c1cbdcb8df2b + github.com/pierrec/lz4 v2.0.5+incompatible // indirect golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f golang.org/x/tools v0.0.0-20191205225056-3393d29bb9fe honnef.co/go/tools v0.0.1-2019.2.3