├── vendor ├── github.com │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── .gitignore │ │ │ ├── go_below_17.go │ │ │ ├── go_above_17.go │ │ │ ├── .travis.yml │ │ │ ├── go_below_19.go │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ └── Gopkg.lock │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ └── log.go │ ├── go-logfmt │ │ └── logfmt │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── doc.go │ ├── prometheus │ │ ├── procfs │ │ │ ├── .gitignore │ │ │ ├── .golangci.yml │ │ │ ├── MAINTAINERS.md │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── SECURITY.md │ │ │ └── NOTICE │ │ ├── client_golang │ │ │ └── prometheus │ │ │ │ ├── .gitignore │ │ │ │ └── README.md │ │ ├── client_model │ │ │ └── NOTICE │ │ ├── common │ │ │ └── NOTICE │ │ └── prometheus │ │ │ └── prompb │ │ │ └── README.md │ ├── signalfx │ │ ├── gohistogram │ │ │ ├── .gitignore │ │ │ └── histogram.go │ │ └── golib │ │ │ └── v3 │ │ │ ├── trace │ │ │ ├── gobuild.toml │ │ │ └── format │ │ │ │ └── format.go │ │ │ └── log │ │ │ ├── README.md │ │ │ ├── counter.go │ │ │ ├── key.go │ │ │ ├── nop.go │ │ │ └── multi.go │ ├── lightstep │ │ └── lightstep-tracer-go │ │ │ ├── VERSION │ │ │ ├── version.go │ │ │ ├── .gitmodules │ │ │ ├── tag_version.sh │ │ │ ├── thrift_0_9_2 │ │ │ └── NOTICE │ │ │ ├── collectorpb │ │ │ └── collector.go │ │ │ ├── lightstep_thrift │ │ │ ├── reportingservice_methods.go │ │ │ └── constants.go │ │ │ └── CHANGELOG.md │ ├── sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── terminal_check_js.go │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_no_terminal.go │ │ │ ├── terminal_check_solaris.go │ │ │ ├── terminal_check_unix.go │ │ │ ├── appveyor.yml │ │ │ ├── terminal_check_bsd.go │ │ │ ├── terminal_check_notappengine.go │ │ │ └── .travis.yml │ ├── opentracing │ │ └── opentracing-go │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── ext │ │ │ └── field.go │ │ │ └── .travis.yml │ ├── pkg │ │ ├── profile │ │ │ ├── AUTHORS │ │ │ ├── trace.go │ │ │ ├── mutex17.go │ │ │ ├── .travis.yml │ │ │ ├── trace16.go │ │ │ └── mutex.go │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── tomnomnom │ │ └── linkheader │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── CONTRIBUTING.mkd │ ├── matttproud │ │ └── golang_protobuf_extensions │ │ │ ├── pbutil │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ │ └── NOTICE │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ └── build.sh │ ├── dgryski │ │ ├── go-bits │ │ │ ├── README │ │ │ ├── clz_asm.go │ │ │ ├── ctz_asm.go │ │ │ ├── popcnt_asm.go │ │ │ ├── ctz_amd64.s │ │ │ ├── clz_amd64.s │ │ │ ├── popcnt_amd64.s │ │ │ ├── popcnt.go │ │ │ └── clz.go │ │ └── go-metro │ │ │ ├── README │ │ │ └── metro_stub.go │ ├── hashicorp │ │ ├── go-immutable-radix │ │ │ ├── .travis.yml │ │ │ ├── edges.go │ │ │ └── .gitignore │ │ ├── go-retryablehttp │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ ├── go-rootcerts │ │ │ ├── .travis.yml │ │ │ ├── Makefile │ │ │ ├── rootcerts_base.go │ │ │ └── doc.go │ │ └── consul │ │ │ └── api │ │ │ ├── operator.go │ │ │ ├── operator_segment.go │ │ │ └── connect.go │ ├── mailru │ │ └── easyjson │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── jlexer │ │ │ ├── error.go │ │ │ └── bytestostr_nounsafe.go │ ├── aws │ │ ├── smithy-go │ │ │ ├── NOTICE │ │ │ ├── doc.go │ │ │ ├── io │ │ │ │ ├── doc.go │ │ │ │ ├── byte.go │ │ │ │ └── reader.go │ │ │ ├── rand │ │ │ │ └── doc.go │ │ │ ├── encoding │ │ │ │ ├── doc.go │ │ │ │ └── xml │ │ │ │ │ └── constants.go │ │ │ ├── transport │ │ │ │ └── http │ │ │ │ │ ├── doc.go │ │ │ │ │ └── time.go │ │ │ ├── go_module_metadata.go │ │ │ ├── ptr │ │ │ │ └── doc.go │ │ │ ├── .gitignore │ │ │ ├── document.go │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── .travis.yml │ │ │ └── README.md │ │ ├── aws-sdk-go-v2 │ │ │ ├── aws │ │ │ │ ├── defaults │ │ │ │ │ └── doc.go │ │ │ │ ├── go_module_metadata.go │ │ │ │ ├── version.go │ │ │ │ ├── errors.go │ │ │ │ ├── signer │ │ │ │ │ └── internal │ │ │ │ │ │ └── v4 │ │ │ │ │ │ ├── hmac.go │ │ │ │ │ │ └── scope.go │ │ │ │ ├── context.go │ │ │ │ ├── middleware │ │ │ │ │ ├── osname.go │ │ │ │ │ └── osname_go115.go │ │ │ │ ├── retry │ │ │ │ │ └── errors.go │ │ │ │ └── runtime.go │ │ │ ├── NOTICE.txt │ │ │ ├── internal │ │ │ │ ├── endpoints │ │ │ │ │ └── v2 │ │ │ │ │ │ └── go_module_metadata.go │ │ │ │ ├── configsources │ │ │ │ │ └── go_module_metadata.go │ │ │ │ ├── sdk │ │ │ │ │ └── interfaces.go │ │ │ │ ├── strings │ │ │ │ │ └── strings.go │ │ │ │ └── timeconv │ │ │ │ │ └── duration.go │ │ │ └── service │ │ │ │ └── cloudwatch │ │ │ │ └── go_module_metadata.go │ │ └── aws-sdk-go │ │ │ ├── NOTICE.txt │ │ │ ├── internal │ │ │ ├── ini │ │ │ │ ├── empty_token.go │ │ │ │ ├── comma_token.go │ │ │ │ ├── fuzz.go │ │ │ │ ├── ws_token.go │ │ │ │ ├── newline_token.go │ │ │ │ └── walker.go │ │ │ ├── sdkrand │ │ │ │ ├── read.go │ │ │ │ └── read_1_5.go │ │ │ ├── sdkio │ │ │ │ ├── byte.go │ │ │ │ ├── io_go1.6.go │ │ │ │ └── io_go1.7.go │ │ │ ├── sdkmath │ │ │ │ └── floor.go │ │ │ ├── strings │ │ │ │ └── strings.go │ │ │ ├── shareddefaults │ │ │ │ └── ecs_container.go │ │ │ └── sdkuri │ │ │ │ └── path.go │ │ │ ├── service │ │ │ ├── s3 │ │ │ │ └── platform_handlers.go │ │ │ └── sts │ │ │ │ └── customizations.go │ │ │ ├── aws │ │ │ ├── signer │ │ │ │ └── v4 │ │ │ │ │ ├── options.go │ │ │ │ │ ├── request_context_go1.7.go │ │ │ │ │ ├── request_context_go1.5.go │ │ │ │ │ └── uri_path.go │ │ │ ├── version.go │ │ │ ├── credentials │ │ │ │ ├── example.ini │ │ │ │ └── context_go1.9.go │ │ │ ├── url.go │ │ │ ├── context_1_9.go │ │ │ ├── jsonvalue.go │ │ │ ├── client │ │ │ │ └── metadata │ │ │ │ │ └── client_info.go │ │ │ ├── request │ │ │ │ ├── connection_reset_error.go │ │ │ │ ├── request_context_1_6.go │ │ │ │ ├── http_request.go │ │ │ │ └── request_context.go │ │ │ ├── csm │ │ │ │ └── metric_exception.go │ │ │ ├── errors.go │ │ │ ├── session │ │ │ │ ├── cabundle_transport_1_5.go │ │ │ │ └── cabundle_transport_1_6.go │ │ │ ├── corehandlers │ │ │ │ └── param_validator.go │ │ │ ├── endpoints │ │ │ │ └── legacy_regions.go │ │ │ └── context_sleep.go │ │ │ └── private │ │ │ └── protocol │ │ │ └── eventstream │ │ │ └── error.go │ ├── jmespath │ │ └── go-jmespath │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── LICENSE │ ├── eapache │ │ ├── queue │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ │ └── go-xerial-snappy │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ └── README.md │ ├── kelseyhightower │ │ └── envconfig │ │ │ ├── .travis.yml │ │ │ ├── env_os.go │ │ │ ├── env_syscall.go │ │ │ ├── MAINTAINERS │ │ │ └── doc.go │ ├── pierrec │ │ └── lz4 │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── getsentry │ │ └── sentry-go │ │ │ ├── .gitignore │ │ │ ├── internal │ │ │ ├── ratelimit │ │ │ │ └── doc.go │ │ │ └── crypto │ │ │ │ └── randutil │ │ │ │ └── randutil.go │ │ │ ├── MIGRATION.md │ │ │ ├── .gitattributes │ │ │ └── .craft.yml │ ├── grpc-ecosystem │ │ └── grpc-gateway │ │ │ ├── utilities │ │ │ ├── doc.go │ │ │ ├── readerfactory.go │ │ │ └── BUILD.bazel │ │ │ ├── runtime │ │ │ └── doc.go │ │ │ └── internal │ │ │ └── stream_chunk.proto │ ├── newrelic │ │ ├── newrelic-client-go │ │ │ ├── internal │ │ │ │ ├── version │ │ │ │ │ └── version.go │ │ │ │ ├── http │ │ │ │ │ ├── types.go │ │ │ │ │ └── test_helpers.go │ │ │ │ └── logging │ │ │ │ │ └── logger.go │ │ │ └── pkg │ │ │ │ ├── infrastructure │ │ │ │ └── doc.go │ │ │ │ ├── events │ │ │ │ └── doc.go │ │ │ │ ├── workloads │ │ │ │ └── doc.go │ │ │ │ ├── accounts │ │ │ │ └── doc.go │ │ │ │ └── edge │ │ │ │ └── doc.go │ │ └── newrelic-telemetry-sdk-go │ │ │ └── telemetry │ │ │ ├── version.go │ │ │ └── doc.go │ ├── rcrowley │ │ └── go-metrics │ │ │ ├── runtime_no_cgo.go │ │ │ ├── .gitignore │ │ │ ├── runtime_cgo.go │ │ │ ├── runtime_no_gccpufraction.go │ │ │ ├── runtime_gccpufraction.go │ │ │ ├── validate.sh │ │ │ ├── .travis.yml │ │ │ └── metrics.go │ ├── googleapis │ │ └── gnostic │ │ │ ├── compiler │ │ │ └── README.md │ │ │ └── extensions │ │ │ └── README.md │ ├── zenazn │ │ └── goji │ │ │ ├── bind │ │ │ ├── systemd_stub.go │ │ │ └── einhorn_stub.go │ │ │ └── graceful │ │ │ ├── clone.go │ │ │ └── einhorn.go │ ├── cespare │ │ └── xxhash │ │ │ └── v2 │ │ │ ├── .travis.yml │ │ │ ├── xxhash_amd64.go │ │ │ └── xxhash_safe.go │ ├── Shopify │ │ └── sarama │ │ │ ├── dev.yml │ │ │ ├── .gitignore │ │ │ ├── list_groups_request.go │ │ │ ├── response_header.go │ │ │ ├── api_versions_request.go │ │ │ └── Vagrantfile │ ├── golang │ │ ├── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── ptypes │ │ │ │ └── doc.go │ │ ├── snappy │ │ │ ├── decode_amd64.go │ │ │ ├── .gitignore │ │ │ └── AUTHORS │ │ └── mock │ │ │ └── AUTHORS │ ├── DataDog │ │ └── datadog-go │ │ │ └── statsd │ │ │ └── README.md │ ├── theckman │ │ └── go-flock │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── imdario │ │ └── mergo │ │ │ ├── .deepsource.toml │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── armon │ │ └── go-metrics │ │ │ ├── const_unix.go │ │ │ ├── const_windows.go │ │ │ └── .gitignore │ ├── stretchr │ │ └── testify │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ ├── require.go.tmpl │ │ │ └── forward_requirements.go │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ └── forward_assertions.go │ ├── google │ │ └── gofuzz │ │ │ └── .travis.yml │ ├── jaegertracing │ │ └── jaeger │ │ │ └── NOTICE │ ├── go-stack │ │ └── stack │ │ │ └── .travis.yml │ ├── konsorten │ │ └── go-windows-terminal-sequences │ │ │ └── sequences_dummy.go │ ├── araddon │ │ └── dateparse │ │ │ └── .travis.yml │ ├── axiomhq │ │ └── hyperloglog │ │ │ └── .gitignore │ ├── satori │ │ └── go.uuid │ │ │ └── .travis.yml │ └── gogo │ │ └── protobuf │ │ └── AUTHORS ├── google.golang.org │ ├── grpc │ │ ├── AUTHORS │ │ ├── GOVERNANCE.md │ │ ├── CODE-OF-CONDUCT.md │ │ └── install_gae.sh │ ├── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── internal │ │ │ ├── flags │ │ │ │ ├── proto_legacy_disable.go │ │ │ │ └── proto_legacy_enable.go │ │ │ ├── impl │ │ │ │ ├── codec_map_go112.go │ │ │ │ └── codec_unsafe.go │ │ │ ├── errors │ │ │ │ └── is_go113.go │ │ │ └── genid │ │ │ │ ├── doc.go │ │ │ │ ├── wrappers.go │ │ │ │ ├── map_entry.go │ │ │ │ └── empty_gen.go │ │ ├── encoding │ │ │ ├── prototext │ │ │ │ └── doc.go │ │ │ └── protojson │ │ │ │ └── doc.go │ │ ├── runtime │ │ │ └── protoiface │ │ │ │ └── legacy.go │ │ └── proto │ │ │ ├── proto_reflect.go │ │ │ └── proto_methods.go │ └── appengine │ │ └── internal │ │ ├── identity_flex.go │ │ ├── main_common.go │ │ └── main.go ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── not_go118.go │ │ │ ├── go118.go │ │ │ └── not_go111.go │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── endian_big.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── endian_little.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── aliases.go │ │ │ ├── syscall_hurd.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ └── sysvshm_linux.go │ │ ├── plan9 │ │ │ ├── asm.s │ │ │ ├── pwd_go15_plan9.go │ │ │ ├── pwd_plan9.go │ │ │ ├── mksysnum_plan9.sh │ │ │ ├── race0.go │ │ │ └── str.go │ │ ├── execabs │ │ │ ├── execabs_go118.go │ │ │ └── execabs_go119.go │ │ └── windows │ │ │ ├── empty.s │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ └── str.go │ │ ├── term │ │ ├── codereview.cfg │ │ ├── term_unix_other.go │ │ └── term_unix_bsd.go │ │ ├── time │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── oauth2 │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── internal │ │ │ ├── doc.go │ │ │ └── client_appengine.go │ │ └── .travis.yml │ │ └── text │ │ └── secure │ │ └── bidirule │ │ ├── bidirule10.0.0.go │ │ └── bidirule9.0.0.go ├── k8s.io │ ├── client-go │ │ ├── pkg │ │ │ ├── version │ │ │ │ └── .gitattributes │ │ │ └── apis │ │ │ │ └── clientauthentication │ │ │ │ └── OWNERS │ │ ├── tools │ │ │ └── metrics │ │ │ │ └── OWNERS │ │ ├── util │ │ │ ├── keyutil │ │ │ │ └── OWNERS │ │ │ └── cert │ │ │ │ └── OWNERS │ │ ├── transport │ │ │ └── OWNERS │ │ └── rest │ │ │ └── OWNERS │ ├── klog │ │ └── v2 │ │ │ ├── code-of-conduct.md │ │ │ ├── .gitignore │ │ │ ├── OWNERS │ │ │ └── RELEASE.md │ └── apimachinery │ │ └── pkg │ │ ├── api │ │ ├── resource │ │ │ └── OWNERS │ │ ├── meta │ │ │ └── OWNERS │ │ └── errors │ │ │ └── OWNERS │ │ └── apis │ │ └── meta │ │ └── v1 │ │ └── OWNERS ├── sigs.k8s.io │ └── yaml │ │ ├── code-of-conduct.md │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── yaml_go110.go │ │ ├── OWNERS │ │ └── RELEASE.md ├── goji.io │ ├── .travis.yml │ ├── dispatch.go │ ├── pattern.go │ ├── router.go │ └── internal │ │ └── context.go └── gopkg.in │ ├── yaml.v2 │ ├── .travis.yml │ └── NOTICE │ └── yaml.v3 │ ├── .travis.yml │ └── NOTICE ├── discovery ├── consul │ └── testdata │ │ └── health_service_zero.json └── discoverer.go ├── memory.png ├── benchmark.png ├── testdata ├── import.deflate ├── protobuf │ ├── trace.pb │ ├── span-with-operation-062017.pb │ └── trace_critical.pb ├── import.uncompressed ├── datadog_trace.json └── tracing_agent │ └── spans │ ├── trace.pb.json │ └── trace_critical.pb.json ├── .editorconfig ├── sinks ├── s3 │ ├── testdata │ │ └── aws │ │ │ └── PutObject │ │ │ └── 2016 │ │ │ └── 10 │ │ │ ├── 13 │ │ │ └── 1476370612.tsv.gz │ │ │ └── 14 │ │ │ └── 1476481302.tsv.gz │ └── mock │ │ └── s3.go ├── cloudwatch │ └── testdata │ │ ├── output.2.txt │ │ ├── input.2.json │ │ └── output.1.txt ├── falconer │ └── grpc_sink.proto ├── blackhole │ └── README.md ├── xray │ └── testdata │ │ ├── xray_segment.json │ │ ├── xray_segment_root_start.json │ │ └── xray_segment_root_start_http_fields.json ├── cortex │ └── testdata │ │ └── monotonic_counters_missing_keys.json └── localfile │ └── README.md ├── stripe-build.yaml ├── ssf ├── grpc.proto └── doc.go ├── internal ├── fastrand │ └── global.go └── safepool │ └── safepool_test.go ├── protocol ├── dogstatsd │ └── grpc.proto └── errors_test.go ├── cmd └── veneur-prometheus │ └── testdata │ ├── client.key │ ├── server.key │ ├── client.pem │ ├── root.pem │ └── server.pem ├── sources ├── proxy │ └── options.go ├── sources.go └── openmetrics │ └── demo │ └── config.yaml ├── samplers └── derived.go ├── metadata.yaml ├── tagging ├── convert_test.go └── convert.go ├── util ├── build │ └── build.go └── rune.go ├── trace ├── metrics │ ├── example_report_one_test.go │ └── example_report_test.go ├── example_test.go ├── client_internal_test.go ├── README.md ├── example_metrics_on_a_span_test.go └── example_making_a_span_test.go ├── docs ├── dev-global.yaml └── dev-local.yaml ├── socket.go ├── .gitignore ├── forwardrpc └── forward.proto └── .github └── PULL_REQUEST_TEMPLATE.md /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-logfmt/logfmt/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /discovery/consul/testdata/health_service_zero.json: -------------------------------------------------------------------------------- 1 | [ 2 | ] 3 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.gitignore: -------------------------------------------------------------------------------- 1 | /fixtures/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/gohistogram/.gitignore: -------------------------------------------------------------------------------- 1 | \#* 2 | .\#* -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/lightstep/lightstep-tracer-go/VERSION: -------------------------------------------------------------------------------- 1 | 0.13.0 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /memory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/memory.png -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/profile/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Cheney 2 | -------------------------------------------------------------------------------- /benchmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/benchmark.png -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/pkg/version/.gitattributes: -------------------------------------------------------------------------------- 1 | base.go export-subst 2 | -------------------------------------------------------------------------------- /vendor/github.com/tomnomnom/linkheader/.gitignore: -------------------------------------------------------------------------------- 1 | cpu.out 2 | linkheader.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/.gitignore: -------------------------------------------------------------------------------- 1 | cover.dat 2 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /testdata/import.deflate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/testdata/import.deflate -------------------------------------------------------------------------------- /vendor/github.com/dgryski/go-bits/README: -------------------------------------------------------------------------------- 1 | godoc: https://godoc.org/github.com/dgryski/go-bits 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-immutable-radix/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.test 4 | .vscode/ -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/.gitignore: -------------------------------------------------------------------------------- 1 | command-line-arguments.test 2 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/trace/gobuild.toml: -------------------------------------------------------------------------------- 1 | [vars] 2 | ignoreDirs = ["format"] 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /testdata/protobuf/trace.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/testdata/protobuf/trace.pb -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/.gitignore: -------------------------------------------------------------------------------- 1 | .root 2 | *_easyjson.go 3 | *.iml 4 | .idea 5 | *.swp 6 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.golangci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | linters: 3 | enable: 4 | - golint 5 | -------------------------------------------------------------------------------- /testdata/protobuf/span-with-operation-062017.pb: -------------------------------------------------------------------------------- 1 |  (0 2 | 8B testServiceJ operationTestZ 3 | tag1value1 -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/.gitignore: -------------------------------------------------------------------------------- 1 | /jpgo 2 | jmespath-fuzz.zip 3 | cpu.out 4 | go-jmespath.test 5 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Matt T. Proud (matt.proud@gmail.com) 2 | -------------------------------------------------------------------------------- /vendor/github.com/tomnomnom/linkheader/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.6 5 | - 1.7 6 | - tip 7 | -------------------------------------------------------------------------------- /testdata/protobuf/trace_critical.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/testdata/protobuf/trace_critical.pb -------------------------------------------------------------------------------- /vendor/github.com/lightstep/lightstep-tracer-go/version.go: -------------------------------------------------------------------------------- 1 | package lightstep 2 | const TracerVersionValue = "0.13.0" 3 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/doc.go: -------------------------------------------------------------------------------- 1 | // Package smithy provides the core components for a Smithy SDK. 2 | package smithy 3 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/io/doc.go: -------------------------------------------------------------------------------- 1 | // Package io provides utilities for Smithy generated API clients. 2 | package io 3 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/queue/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go: 5 | - 1.2 6 | - 1.3 7 | - 1.4 8 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/go-xerial-snappy/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.5.4 5 | - 1.6.1 6 | 7 | sudo: false 8 | -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - tip 8 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.x 5 | 6 | script: 7 | - go test -v -cpu=2 8 | - go test -v -cpu=2 -race -------------------------------------------------------------------------------- /vendor/github.com/getsentry/sentry-go/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.txt 2 | 3 | # Just my personal way of tracking stuff — Kamil 4 | FIXME.md 5 | TODO.md 6 | !NOTES.md -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/rand/doc.go: -------------------------------------------------------------------------------- 1 | // Package rand provides utilities for creating and working with random value 2 | // generators. 3 | package rand 4 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go: -------------------------------------------------------------------------------- 1 | // Package utilities provides members for internal use in grpc-gateway. 2 | package utilities 3 | -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/env_os.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package envconfig 4 | 5 | import "os" 6 | 7 | var lookupEnv = os.LookupEnv 8 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | * Johannes 'fish' Ziemke @discordianfish 2 | * Paul Gier @pgier 3 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go: -------------------------------------------------------------------------------- 1 | // Package defaults provides recommended configuration values for AWS SDKs and CLIs. 2 | package defaults 3 | -------------------------------------------------------------------------------- /vendor/github.com/dgryski/go-bits/clz_asm.go: -------------------------------------------------------------------------------- 1 | // +build amd64,!appengine 2 | 3 | package bits 4 | 5 | // Clz counts leading zeroes 6 | func Clz(x uint64) uint64 7 | -------------------------------------------------------------------------------- /vendor/github.com/dgryski/go-bits/ctz_asm.go: -------------------------------------------------------------------------------- 1 | // +build amd64,!appengine 2 | 3 | package bits 4 | 5 | // Ctz counts trailing zeroes 6 | func Ctz(x uint64) uint64 7 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-client-go/internal/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // Version of this library 4 | const Version string = "0.39.0" 5 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo appengine 2 | 3 | package metrics 4 | 5 | func numCgoCall() int64 { 6 | return 0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/metrics/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - wojtek-t 5 | - krousey 6 | - jayunit100 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | 7 | [{*.go}] 8 | indent_style = tab 9 | indent_size = 2 10 | 11 | -------------------------------------------------------------------------------- /sinks/s3/testdata/aws/PutObject/2016/10/13/1476370612.tsv.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/sinks/s3/testdata/aws/PutObject/2016/10/13/1476370612.tsv.gz -------------------------------------------------------------------------------- /sinks/s3/testdata/aws/PutObject/2016/10/14/1476481302.tsv.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stripe/veneur/master/sinks/s3/testdata/aws/PutObject/2016/10/14/1476481302.tsv.gz -------------------------------------------------------------------------------- /vendor/github.com/googleapis/gnostic/compiler/README.md: -------------------------------------------------------------------------------- 1 | # Compiler support code 2 | 3 | This directory contains compiler support code used by Gnostic and Gnostic extensions. -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/NOTICE.txt: -------------------------------------------------------------------------------- 1 | AWS SDK for Go 2 | Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | Copyright 2014-2015 Stripe, Inc. 4 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/encoding/doc.go: -------------------------------------------------------------------------------- 1 | // Package encoding provides utilities for encoding values for specific 2 | // document encodings. 3 | 4 | package encoding 5 | -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/env_syscall.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package envconfig 4 | 5 | import "syscall" 6 | 7 | var lookupEnv = syscall.Getenv 8 | -------------------------------------------------------------------------------- /vendor/github.com/zenazn/goji/bind/systemd_stub.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package bind 4 | 5 | func systemdInit() {} 6 | func usingSystemd() bool { return false } 7 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt: -------------------------------------------------------------------------------- 1 | AWS SDK for Go 2 | Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | Copyright 2014-2015 Stripe, Inc. 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/util/keyutil/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - sig-auth-certificates-approvers 3 | reviewers: 4 | - sig-auth-certificates-reviewers 5 | labels: 6 | - sig/auth 7 | 8 | -------------------------------------------------------------------------------- /stripe-build.yaml: -------------------------------------------------------------------------------- 1 | # See go/stripe-build for more information about customizing this file 2 | --- 3 | henson_tarball: 4 | docker: {} 5 | network: 6 | http_proxy_report_only: true 7 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/profile/trace.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package profile 4 | 5 | import "runtime/trace" 6 | 7 | var startTrace = trace.Start 8 | var stopTrace = trace.Stop 9 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/GOVERNANCE.md: -------------------------------------------------------------------------------- 1 | This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). 2 | -------------------------------------------------------------------------------- /sinks/cloudwatch/testdata/output.2.txt: -------------------------------------------------------------------------------- 1 | Action=PutMetricData&MetricData.member.1.MetricName=a.b.gauge&MetricData.member.1.Unit=Byte&MetricData.member.1.Value=100&Namespace=test&Version=2010-08-01 -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.x" 4 | - master 5 | env: 6 | - TAGS="" 7 | - TAGS="-tags purego" 8 | script: go test $TAGS -v ./... 9 | -------------------------------------------------------------------------------- /vendor/github.com/dgryski/go-bits/popcnt_asm.go: -------------------------------------------------------------------------------- 1 | // +build amd64,!appengine,!popcntgo 2 | 3 | package bits 4 | 5 | // Popcnt counts the number of bits set 6 | func Popcnt(x uint64) uint64 7 | -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Kelsey Hightower kelsey.hightower@gmail.com github.com/kelseyhightower 2 | Travis Parker travis.parker@gmail.com github.com/teepark 3 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Community Code of Conduct 2 | 3 | gRPC follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/dev.yml: -------------------------------------------------------------------------------- 1 | name: sarama 2 | 3 | up: 4 | - go: 5 | version: '1.9' 6 | 7 | commands: 8 | test: 9 | run: make test 10 | desc: 'run unit tests' 11 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/empty_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | // emptyToken is used to satisfy the Token interface 4 | var emptyToken = newToken(TokenNone, []rune{}, NoneType) 5 | -------------------------------------------------------------------------------- /vendor/github.com/getsentry/sentry-go/internal/ratelimit/doc.go: -------------------------------------------------------------------------------- 1 | // Package ratelimit provides tools to work with rate limits imposed by Sentry's 2 | // data ingestion pipeline. 3 | package ratelimit 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.6 7 | 8 | branches: 9 | only: 10 | - master 11 | 12 | script: make test 13 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | test: 4 | go test $(TEST) $(TESTARGS) -timeout=3s -parallel=4 5 | go vet $(TEST) 6 | go test $(TEST) -race 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /vendor/github.com/lightstep/lightstep-tracer-go/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "lightstep-tracer-common"] 2 | path = lightstep-tracer-common 3 | url = https://github.com/lightstep/lightstep-tracer-common.git 4 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | cover: 4 | go test -cover -v -coverprofile=cover.dat ./... 5 | go tool cover -func cover.dat 6 | 7 | .PHONY: cover 8 | -------------------------------------------------------------------------------- /ssf/grpc.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package ssf; 3 | 4 | import "ssf/sample.proto"; 5 | 6 | message Empty {} 7 | 8 | service SSFGRPC { 9 | rpc SendSpan(ssf.SSFSpan) returns (Empty); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package runtime contains runtime helper functions used by 3 | servers which protoc-gen-grpc-gateway generates. 4 | */ 5 | package runtime 6 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Prometheus Community Code of Conduct 2 | 3 | Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/transport/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - smarterclayton 5 | - wojtek-t 6 | - deads2k 7 | - liggitt 8 | - krousey 9 | - caesarxuchao 10 | -------------------------------------------------------------------------------- /sinks/falconer/grpc_sink.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package falconer; 3 | 4 | import "ssf/sample.proto"; 5 | 6 | message Empty {} 7 | 8 | service SpanSink { 9 | rpc SendSpan(ssf.SSFSpan) returns (Empty); 10 | } -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6 2 | 3 | package s3 4 | 5 | import "github.com/aws/aws-sdk-go/aws/request" 6 | 7 | func platformRequestHandlers(r *request.Request) { 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/transport/http/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package http provides the HTTP transport client and request/response types 3 | needed to round trip API operation calls with an service. 4 | */ 5 | package http 6 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/profile/mutex17.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package profile 4 | 5 | // mock mutex support for Go 1.7 and earlier. 6 | 7 | func enableMutexProfile() {} 8 | 9 | func disableMutexProfile() {} 10 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/README.md: -------------------------------------------------------------------------------- 1 | See [![go-doc](https://godoc.org/github.com/prometheus/client_golang/prometheus?status.svg)](https://godoc.org/github.com/prometheus/client_golang/prometheus). 2 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/DataDog/datadog-go/statsd/README.md: -------------------------------------------------------------------------------- 1 | ## Overview 2 | 3 | Package `statsd` provides a Go [dogstatsd](http://docs.datadoghq.com/guides/dogstatsd/) client. Dogstatsd extends Statsd, adding tags 4 | and histograms. 5 | -------------------------------------------------------------------------------- /vendor/github.com/lightstep/lightstep-tracer-go/tag_version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | VERSION=$(cat ./VERSION) 4 | 5 | cat > version.go < coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/context_1_9.go: -------------------------------------------------------------------------------- 1 | // +build go1.9 2 | 3 | package aws 4 | 5 | import "context" 6 | 7 | // Context is an alias of the Go stdlib's context.Context interface. 8 | // It can be used within the SDK's API operation "WithContext" methods. 9 | // 10 | // See https://golang.org/pkg/context on how to use contexts. 11 | type Context = context.Context 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkmath/floor.go: -------------------------------------------------------------------------------- 1 | // +build go1.10 2 | 3 | package sdkmath 4 | 5 | import "math" 6 | 7 | // Round returns the nearest integer, rounding half away from zero. 8 | // 9 | // Special cases are: 10 | // Round(±0) = ±0 11 | // Round(±Inf) = ±Inf 12 | // Round(NaN) = NaN 13 | func Round(x float64) float64 { 14 | return math.Round(x) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/axiomhq/hyperloglog/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/zenazn/goji/bind/einhorn_stub.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package bind 4 | 5 | import ( 6 | "net" 7 | ) 8 | 9 | func einhornInit() {} 10 | func einhornAck() {} 11 | func einhornBind(fd int) (net.Listener, error) { return nil, nil } 12 | func usingEinhorn() bool { return false } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/jsonvalue.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | // JSONValue is a representation of a grab bag type that will be marshaled 4 | // into a json string. This type can be used just like any other map. 5 | // 6 | // Example: 7 | // 8 | // values := aws.JSONValue{ 9 | // "Foo": "Bar", 10 | // } 11 | // values["Baz"] = "Qux" 12 | type JSONValue map[string]interface{} 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-logfmt/logfmt/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - "1.7.x" 5 | - "1.8.x" 6 | - "1.9.x" 7 | - "1.10.x" 8 | - "1.11.x" 9 | - "1.12.x" 10 | - "1.13.x" 11 | - "tip" 12 | 13 | before_install: 14 | - go get github.com/mattn/goveralls 15 | - go get golang.org/x/tools/cmd/cover 16 | 17 | script: 18 | - goveralls -service=travis-ci 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-logfmt/logfmt/doc.go: -------------------------------------------------------------------------------- 1 | // Package logfmt implements utilities to marshal and unmarshal data in the 2 | // logfmt format. The logfmt format records key/value pairs in a way that 3 | // balances readability for humans and simplicity of computer parsing. It is 4 | // most commonly used as a more human friendly alternative to JSON for 5 | // structured logging. 6 | package logfmt 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/consul/api/operator_segment.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // SegmentList returns all the available LAN segments. 4 | func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) { 5 | var out []string 6 | qm, err := op.c.query("/v1/operator/segment", &out, q) 7 | if err != nil { 8 | return nil, nil, err 9 | } 10 | return out, qm, nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | reviewers: 3 | - jayunit100 4 | - hoegaarden 5 | - andyxning 6 | - neolit123 7 | - pohly 8 | - yagonobre 9 | - vincepri 10 | - detiber 11 | approvers: 12 | - dims 13 | - thockin 14 | - justinsb 15 | - tallclair 16 | - piosz 17 | - brancz 18 | - DirectXMan12 19 | - lavalamp 20 | -------------------------------------------------------------------------------- /testdata/datadog_trace.json: -------------------------------------------------------------------------------- 1 | { 2 | "trace_id": 5538716, 3 | "span_id": 1100041749, 4 | "service": "dbthing", 5 | "name": "farttable", 6 | "parent_id": 745300532, 7 | "resource": "farttable", 8 | "start": 1479223864217351424, 9 | "duration": 784341812.2, 10 | "type": "demo", 11 | "meta":{ 12 | }, 13 | "metrics": { 14 | "foo": 100 15 | }, 16 | "error": 0 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go: -------------------------------------------------------------------------------- 1 | package strings 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | // HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings, 8 | // under Unicode case-folding. 9 | func HasPrefixFold(s, prefix string) bool { 10 | return len(s) >= len(prefix) && strings.EqualFold(s[0:len(prefix)], prefix) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/strings/strings.go: -------------------------------------------------------------------------------- 1 | package strings 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | // HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings, 8 | // under Unicode case-folding. 9 | func HasPrefixFold(s, prefix string) bool { 10 | return len(s) >= len(prefix) && strings.EqualFold(s[0:len(prefix)], prefix) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-telemetry-sdk-go/telemetry/version.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 New Relic Corporation. All rights reserved. 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package telemetry 5 | 6 | const ( 7 | major = "0" 8 | minor = "2" 9 | patch = "0" 10 | 11 | // version is the full string version of this SDK. 12 | version = major + "." + minor + "." + patch 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.12 6 | 7 | package impl 8 | 9 | import "reflect" 10 | 11 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/consul/api/connect.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // Connect can be used to work with endpoints related to Connect, the 4 | // feature for securely connecting services within Consul. 5 | type Connect struct { 6 | c *Client 7 | } 8 | 9 | // Connect returns a handle to the connect-related endpoints 10 | func (c *Client) Connect() *Connect { 11 | return &Connect{c} 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/queue/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /vendor/github.com/tomnomnom/linkheader/CONTRIBUTING.mkd: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | * Raise an issue if appropriate 4 | * Fork the repo 5 | * Bootstrap the dev dependencies (run `./script/bootstrap`) 6 | * Make your changes 7 | * Use [gofmt](https://golang.org/cmd/gofmt/) 8 | * Make sure the tests pass (run `./script/test`) 9 | * Make sure the linters pass (run `./script/lint`) 10 | * Issue a pull request 11 | -------------------------------------------------------------------------------- /vendor/goji.io/dispatch.go: -------------------------------------------------------------------------------- 1 | package goji 2 | 3 | import ( 4 | "net/http" 5 | 6 | "goji.io/internal" 7 | ) 8 | 9 | type dispatch struct{} 10 | 11 | func (d dispatch) ServeHTTP(w http.ResponseWriter, r *http.Request) { 12 | ctx := r.Context() 13 | h := ctx.Value(internal.Handler) 14 | if h == nil { 15 | http.NotFound(w, r) 16 | } else { 17 | h.(http.Handler).ServeHTTP(w, r) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkio/io_go1.7.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package sdkio 4 | 5 | import "io" 6 | 7 | // Alias for Go 1.7 io package Seeker constants 8 | const ( 9 | SeekStart = io.SeekStart // seek relative to the origin of the file 10 | SeekCurrent = io.SeekCurrent // seek relative to the current offset 11 | SeekEnd = io.SeekEnd // seek relative to the end 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/rootcerts_base.go: -------------------------------------------------------------------------------- 1 | // +build !darwin 2 | 3 | package rootcerts 4 | 5 | import "crypto/x509" 6 | 7 | // LoadSystemCAs does nothing on non-Darwin systems. We return nil so that 8 | // default behavior of standard TLS config libraries is triggered, which is to 9 | // load system certs. 10 | func LoadSystemCAs() (*x509.CertPool, error) { 11 | return nil, nil 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/client_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import "google.golang.org/appengine/urlfetch" 10 | 11 | func init() { 12 | appengineClientHook = urlfetch.Client 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import ( 10 | "appengine_internal" 11 | ) 12 | 13 | func Main() { 14 | MainPath = "" 15 | appengine_internal.Main() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.13 6 | 7 | package errors 8 | 9 | import "errors" 10 | 11 | // Is is errors.Is. 12 | func Is(err, target error) bool { return errors.Is(err, target) } 13 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/meta/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - brendandburns 9 | - derekwaynecarr 10 | - caesarxuchao 11 | - mikedanese 12 | - liggitt 13 | - nikhiljindal 14 | - gmarek 15 | - janetkuo 16 | - ncdc 17 | - dims 18 | - krousey 19 | - resouer 20 | - mfojtik 21 | - jianhuiz 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-immutable-radix/edges.go: -------------------------------------------------------------------------------- 1 | package iradix 2 | 3 | import "sort" 4 | 5 | type edges []edge 6 | 7 | func (e edges) Len() int { 8 | return len(e) 9 | } 10 | 11 | func (e edges) Less(i, j int) bool { 12 | return e[i].label < e[j].label 13 | } 14 | 15 | func (e edges) Swap(i, j int) { 16 | e[i], e[j] = e[j], e[i] 17 | } 18 | 19 | func (e edges) Sort() { 20 | sort.Sort(e) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | // +build !go1.18 9 | 10 | package idna 11 | 12 | const transitionalLookup = true 13 | -------------------------------------------------------------------------------- /vendor/github.com/armon/go-metrics/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | /metrics.out 25 | -------------------------------------------------------------------------------- /vendor/github.com/theckman/go-flock/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | dist: xenial 3 | go: 4 | - 1.12.x 5 | - 1.13.x 6 | script: 7 | - diff -u <(echo -n) <(gofmt -d *.go) 8 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) 9 | - GO111MODULE=on go vet . 10 | - GO111MODULE=on go test -v -race ./... 11 | - git diff --exit-code 12 | install: 13 | - GO111MODULE=off go get golang.org/x/lint/golint 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go: -------------------------------------------------------------------------------- 1 | package v4 2 | 3 | import "strings" 4 | 5 | // BuildCredentialScope builds the Signature Version 4 (SigV4) signing scope 6 | func BuildCredentialScope(signingTime SigningTime, region, service string) string { 7 | return strings.Join([]string{ 8 | signingTime.ShortTimeFormat(), 9 | region, 10 | service, 11 | "aws4_request", 12 | }, "/") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.18 6 | // +build !go1.18 7 | 8 | package http2 9 | 10 | import ( 11 | "crypto/tls" 12 | "net" 13 | ) 14 | 15 | func tlsUnderlyingConn(tc *tls.Conn) net.Conn { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /tagging/convert_test.go: -------------------------------------------------------------------------------- 1 | package tagging 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestTagSliceToMap(t *testing.T) { 10 | tags := []string{"foo:bar", "baz:gorch", "blerg"} 11 | mappedTags := ParseTagSliceToMap(tags) 12 | assert.Equal(t, "bar", mappedTags["foo"]) 13 | assert.Equal(t, "gorch", mappedTags["baz"]) 14 | assert.Equal(t, "", mappedTags["blerg"]) 15 | } 16 | -------------------------------------------------------------------------------- /util/build/build.go: -------------------------------------------------------------------------------- 1 | package build 2 | 3 | import "net/http" 4 | 5 | const defaultValue = "dirty" 6 | 7 | var ( 8 | BUILD_DATE = defaultValue 9 | VERSION = defaultValue 10 | ) 11 | 12 | func HandleBuildDate(writer http.ResponseWriter, _ *http.Request) { 13 | writer.Write([]byte(BUILD_DATE)) 14 | } 15 | 16 | func HandleVersion(writer http.ResponseWriter, _ *http.Request) { 17 | writer.Write([]byte(VERSION)) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/go-xerial-snappy/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-telemetry-sdk-go/telemetry/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 New Relic Corporation. All rights reserved. 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package telemetry is a client for the New Relic Metrics and Spans HTTP APIs. 5 | // 6 | // This package stores metrics and spans, harvests them on a given schedule, and 7 | // handles errors from the API response. 8 | // 9 | package telemetry 10 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/log/README.md: -------------------------------------------------------------------------------- 1 | # golib logging 2 | 3 | A logging abstraction. Borrowed from go-kit/log and restructued for a log interface that does not 4 | return an error. The original go-kit/log code is covered under MIT (See LICENSE_gokit) with modifications covered 5 | under this repositories license file. 6 | 7 | Some of go-kit's tests have been copied directly into this repository and renamed as "kit*_test.go". -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.18 6 | // +build go1.18 7 | 8 | package http2 9 | 10 | import ( 11 | "crypto/tls" 12 | "net" 13 | ) 14 | 15 | func tlsUnderlyingConn(tc *tls.Conn) net.Conn { 16 | return tc.NetConn() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/transport/http/time.go: -------------------------------------------------------------------------------- 1 | package http 2 | 3 | import ( 4 | "time" 5 | 6 | smithytime "github.com/aws/smithy-go/time" 7 | ) 8 | 9 | // ParseTime parses a time string like the HTTP Date header. This uses a more 10 | // relaxed rule set for date parsing compared to the standard library. 11 | func ParseTime(text string) (t time.Time, err error) { 12 | return smithytime.ParseHTTPDate(text) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-immutable-radix/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/doc.go: -------------------------------------------------------------------------------- 1 | // Package rootcerts contains functions to aid in loading CA certificates for 2 | // TLS connections. 3 | // 4 | // In addition, its default behavior on Darwin works around an open issue [1] 5 | // in Go's crypto/x509 that prevents certicates from being loaded from the 6 | // System or Login keychains. 7 | // 8 | // [1] https://github.com/golang/go/issues/14514 9 | package rootcerts 10 | -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Kelsey Hightower. All rights reserved. 2 | // Use of this source code is governed by the MIT License that can be found in 3 | // the LICENSE file. 4 | 5 | // Package envconfig implements decoding of environment variables based on a user 6 | // defined specification. A typical use is using environment variables for 7 | // configuration settings. 8 | package envconfig 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go: -------------------------------------------------------------------------------- 1 | package metadata 2 | 3 | // ClientInfo wraps immutable data from the client.Client structure. 4 | type ClientInfo struct { 5 | ServiceName string 6 | ServiceID string 7 | APIVersion string 8 | PartitionID string 9 | Endpoint string 10 | SigningName string 11 | SigningRegion string 12 | JSONVersion string 13 | TargetPrefix string 14 | } 15 | -------------------------------------------------------------------------------- /sources/sources.go: -------------------------------------------------------------------------------- 1 | package sources 2 | 3 | import ( 4 | "github.com/stripe/veneur/v14/samplers" 5 | "github.com/stripe/veneur/v14/samplers/metricpb" 6 | ) 7 | 8 | type SourceConfig interface{} 9 | 10 | type Source interface { 11 | Name() string 12 | Start(ingest Ingest) error 13 | Stop() 14 | } 15 | 16 | type Ingest interface { 17 | IngestMetric(metric *samplers.UDPMetric) 18 | IngestMetricProto(metric *metricpb.Metric) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | *.test 6 | 7 | # Folders 8 | _obj 9 | _test 10 | .vagrant 11 | 12 | # Architecture specific extensions/prefixes 13 | *.[568vq] 14 | [568vq].out 15 | 16 | *.cgo1.go 17 | *.cgo2.c 18 | _cgo_defun.c 19 | _cgo_gotypes.go 20 | _cgo_export.* 21 | 22 | _testmain.go 23 | 24 | *.exe 25 | 26 | coverage.txt 27 | -------------------------------------------------------------------------------- /vendor/github.com/lightstep/lightstep-tracer-go/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | ## v0.13.0 3 | * BasicTracer has been removed. 4 | * Tracer now takes a SpanRecorder as an option. 5 | * Tracer interface now includes Close and Flush. 6 | * Tests redone with ginkgo/gomega. 7 | 8 | ## v0.12.0 9 | * Added CloseTracer function to flush and close a lightstep recorder. 10 | 11 | ## v0.11.0 12 | * Thrift transport is now deprecated, gRPC is the default. -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.19 6 | // +build go1.19 7 | 8 | package execabs 9 | 10 | import ( 11 | "errors" 12 | "os/exec" 13 | ) 14 | 15 | func isGo119ErrDot(err error) bool { 16 | return errors.Is(err, exec.ErrDot) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/decode_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | // +build gc 7 | // +build !noasm 8 | 9 | package snappy 10 | 11 | // decode has the same semantics as in decode_other.go. 12 | // 13 | //go:noescape 14 | func decode(dst, src []byte) int 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.10 6 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/connection_reset_error.go: -------------------------------------------------------------------------------- 1 | package request 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | func isErrConnectionReset(err error) bool { 8 | if strings.Contains(err.Error(), "read: connection reset") { 9 | return false 10 | } 11 | 12 | if strings.Contains(err.Error(), "connection reset") || 13 | strings.Contains(err.Error(), "broken pipe") { 14 | return true 15 | } 16 | 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || linux || solaris || zos 6 | // +build aix linux solaris zos 7 | 8 | package term 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TCGETS 13 | const ioctlWriteTermios = unix.TCSETS 14 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/errors/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - lavalamp 6 | - smarterclayton 7 | - wojtek-t 8 | - deads2k 9 | - brendandburns 10 | - derekwaynecarr 11 | - caesarxuchao 12 | - mikedanese 13 | - liggitt 14 | - nikhiljindal 15 | - gmarek 16 | - erictune 17 | - saad-ali 18 | - janetkuo 19 | - tallclair 20 | - dims 21 | - hongchaodeng 22 | - krousey 23 | - cjcullen 24 | -------------------------------------------------------------------------------- /protocol/errors_test.go: -------------------------------------------------------------------------------- 1 | package protocol 2 | 3 | import ( 4 | "fmt" 5 | "testing" 6 | 7 | "os" 8 | 9 | "github.com/stretchr/testify/assert" 10 | ) 11 | 12 | func TestFramingError(t *testing.T) { 13 | assert.True(t, IsFramingError(&errFrameVersion{1})) 14 | assert.True(t, IsFramingError(&errFrameLength{0})) 15 | assert.True(t, IsFramingError(&errFramingIO{fmt.Errorf("oh hai")})) 16 | 17 | assert.False(t, IsFramingError(os.ErrClosed)) 18 | } 19 | -------------------------------------------------------------------------------- /trace/metrics/example_report_one_test.go: -------------------------------------------------------------------------------- 1 | package metrics_test 2 | 3 | import ( 4 | "github.com/stripe/veneur/v14/ssf" 5 | "github.com/stripe/veneur/v14/trace" 6 | "github.com/stripe/veneur/v14/trace/metrics" 7 | ) 8 | 9 | func ExampleReportOne() { 10 | // Let's report a single metric (without any batching) using 11 | // the default client: 12 | metrics.ReportOne(trace.DefaultClient, ssf.Count("a.oneoff.counter", 1, nil)) 13 | // Output: 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/golang/mock/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoMock authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Alex Reece 12 | Google Inc. 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package v4 4 | 5 | import ( 6 | "net/url" 7 | "strings" 8 | ) 9 | 10 | func getURIPath(u *url.URL) string { 11 | var uri string 12 | 13 | if len(u.Opaque) > 0 { 14 | uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/") 15 | } else { 16 | uri = u.EscapedPath() 17 | } 18 | 19 | if len(uri) == 0 { 20 | uri = "/" 21 | } 22 | 23 | return uri 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.5.x 7 | - 1.6.x 8 | - 1.7.x 9 | - 1.8.x 10 | - 1.9.x 11 | - 1.10.x 12 | - 1.11.x 13 | - 1.12.x 14 | - 1.13.x 15 | - 1.14.x 16 | - 1.15.x 17 | - tip 18 | 19 | allow_failures: 20 | - go: tip 21 | 22 | script: make build 23 | 24 | matrix: 25 | include: 26 | - language: go 27 | go: 1.15.x 28 | script: make test 29 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.3" 5 | - "1.4" 6 | - "1.5" 7 | - "1.6" 8 | - "1.7" 9 | - "1.8" 10 | - "1.9" 11 | - "1.10" 12 | - "1.11" 13 | - "1.12" 14 | - "1.13" 15 | - "1.14" 16 | 17 | script: 18 | - ./validate.sh 19 | 20 | # this should give us faster builds according to 21 | # http://docs.travis-ci.com/user/migrating-from-legacy/ 22 | sudo: false 23 | -------------------------------------------------------------------------------- /vendor/goji.io/pattern.go: -------------------------------------------------------------------------------- 1 | package goji 2 | 3 | // httpMethods is an internal interface for the HTTPMethods pattern 4 | // optimization. See the documentation on Pattern for more. 5 | type httpMethods interface { 6 | HTTPMethods() map[string]struct{} 7 | } 8 | 9 | // pathPrefix is an internal interface for the PathPrefix pattern optimization. 10 | // See the documentation on Pattern for more. 11 | type pathPrefix interface { 12 | PathPrefix() string 13 | } 14 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/rest/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - caesarxuchao 7 | - wojtek-t 8 | - deads2k 9 | - brendandburns 10 | - liggitt 11 | - nikhiljindal 12 | - gmarek 13 | - erictune 14 | - sttts 15 | - luxas 16 | - dims 17 | - errordeveloper 18 | - hongchaodeng 19 | - krousey 20 | - resouer 21 | - cjcullen 22 | - rmmh 23 | - asalkeld 24 | - juanvallejo 25 | - lojies 26 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/context.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "context" 5 | "time" 6 | ) 7 | 8 | type suppressedContext struct { 9 | context.Context 10 | } 11 | 12 | func (s *suppressedContext) Deadline() (deadline time.Time, ok bool) { 13 | return time.Time{}, false 14 | } 15 | 16 | func (s *suppressedContext) Done() <-chan struct{} { 17 | return nil 18 | } 19 | 20 | func (s *suppressedContext) Err() error { 21 | return nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go: -------------------------------------------------------------------------------- 1 | package timeconv 2 | 3 | import "time" 4 | 5 | // FloatSecondsDur converts a fractional seconds to duration. 6 | func FloatSecondsDur(v float64) time.Duration { 7 | return time.Duration(v * float64(time.Second)) 8 | } 9 | 10 | // DurSecondsFloat converts a duration into fractional seconds. 11 | func DurSecondsFloat(d time.Duration) float64 { 12 | return float64(d) / float64(time.Second) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/log/counter.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import "sync/atomic" 4 | 5 | // Counter will count log statements 6 | type Counter struct { 7 | Count int64 8 | } 9 | 10 | var _ Logger = &Counter{} 11 | 12 | // Log increments Count 13 | func (c *Counter) Log(keyvals ...interface{}) { 14 | atomic.AddInt64(&c.Count, 1) 15 | } 16 | 17 | // ErrorLogger returns itself 18 | func (c *Counter) ErrorLogger(error) Logger { 19 | return c 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/yaml_go110.go: -------------------------------------------------------------------------------- 1 | // This file contains changes that are only compatible with go 1.10 and onwards. 2 | 3 | // +build go1.10 4 | 5 | package yaml 6 | 7 | import "encoding/json" 8 | 9 | // DisallowUnknownFields configures the JSON decoder to error out if unknown 10 | // fields come along, instead of dropping them by default. 11 | func DisallowUnknownFields(d *json.Decoder) *json.Decoder { 12 | d.DisallowUnknownFields() 13 | return d 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/.gitignore: -------------------------------------------------------------------------------- 1 | cmd/snappytool/snappytool 2 | testdata/bench 3 | 4 | # These explicitly listed benchmark data files are for an obsolete version of 5 | # snappy_test.go. 6 | testdata/alice29.txt 7 | testdata/asyoulik.txt 8 | testdata/fireworks.jpeg 9 | testdata/geo.protodata 10 | testdata/html 11 | testdata/html_x_4 12 | testdata/kppkn.gtb 13 | testdata/lcet10.txt 14 | testdata/paper-100k.pdf 15 | testdata/plrabn12.txt 16 | testdata/urls.10K 17 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/log/key.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | // Key is a type that is expected to be the "key" in structured logging key/value pairs 4 | type Key string 5 | 6 | // String returns the wrapped value directly 7 | func (k Key) String() string { 8 | return string(k) 9 | } 10 | 11 | var ( 12 | // Err is the suggested Log() key for errors 13 | Err = Key("err") 14 | // Msg is the suggested Log() key for messages 15 | Msg = Key("message") 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/credentials/context_go1.9.go: -------------------------------------------------------------------------------- 1 | // +build go1.9 2 | 3 | package credentials 4 | 5 | import "context" 6 | 7 | // Context is an alias of the Go stdlib's context.Context interface. 8 | // It can be used within the SDK's API operation "WithContext" methods. 9 | // 10 | // This type, aws.Context, and context.Context are equivalent. 11 | // 12 | // See https://golang.org/pkg/context on how to use contexts. 13 | type Context = context.Context 14 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /ssf/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Package ssf provides an implementation of the Sensor Sensibility 4 | Format. It consists of two parts: One is the protobuf implementations 5 | of the SSF data structures SSFSpan and SSFSample, and the other is a 6 | set of helper routines for generating SSFSamples that can be reported 7 | on an SSFSpan. 8 | 9 | The types in this package are meant to be used together with the 10 | neighboring packages trace and trace/metrics. 11 | 12 | */ 13 | package ssf 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - dims 5 | - lavalamp 6 | - smarterclayton 7 | - deads2k 8 | - sttts 9 | - liggitt 10 | - caesarxuchao 11 | reviewers: 12 | - dims 13 | - thockin 14 | - lavalamp 15 | - smarterclayton 16 | - wojtek-t 17 | - deads2k 18 | - derekwaynecarr 19 | - caesarxuchao 20 | - mikedanese 21 | - liggitt 22 | - gmarek 23 | - sttts 24 | - ncdc 25 | - tallclair 26 | labels: 27 | - sig/api-machinery 28 | -------------------------------------------------------------------------------- /sinks/xray/testdata/xray_segment.json: -------------------------------------------------------------------------------- 1 | {"format": "json", "version": 1} 2 | {"name":"farts-srv","id":"0000000000000002","trace_id":"1-5a7f1b00-000000003fdd0f60394d200c","parent_id":"0000000000000001","start_time":1518279577,"end_time":1518279579,"namespace":"remote","error":false,"annotations":{"baz":"qux","indicator":"false","mind":"crystal"},"metadata":{"baz":"qux","feelings":"magenta","indicator":"false","mind":"crystal"},"http":{"request":{"url":"farts-srv:farting farty farts"},"response":{}}} 3 | -------------------------------------------------------------------------------- /util/rune.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "unicode/utf8" 4 | 5 | type Rune rune 6 | 7 | func (r *Rune) UnmarshalYAML(unmarshal func(interface{}) error) error { 8 | var runeString string 9 | err := unmarshal(&runeString) 10 | if err != nil { 11 | return err 12 | } 13 | 14 | return r.UnmarshalText([]byte(runeString)) 15 | } 16 | 17 | func (r *Rune) UnmarshalText(text []byte) error { 18 | nativeRune, _ := utf8.DecodeRune(text) 19 | *r = Rune(nativeRune) 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 6 | // +build darwin dragonfly freebsd netbsd openbsd 7 | 8 | package term 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TIOCGETA 13 | const ioctlWriteTermios = unix.TIOCSETA 14 | -------------------------------------------------------------------------------- /testdata/tracing_agent/spans/trace.pb.json: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | { 4 | "duration": 45565, 5 | "error": 0, 6 | "meta": {}, 7 | "metrics": null, 8 | "name": "veneur.(*Server).flushEventsChecks", 9 | "parent_id": 759030388714467718, 10 | "resource": "flush", 11 | "service": "", 12 | "span_id": 6609809824038723702, 13 | "start": 1496959028355075485, 14 | "trace_id": 2952322985753260966, 15 | "type": "web" 16 | } 17 | ] 18 | ] 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.10 6 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /docs/dev-global.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # A config file for testing a local -> global veneur setup. 3 | # 4 | # Use in conjunction with dev-local.yaml. 5 | stats_address: 127.0.0.1:8200 6 | ssf_listen_addresses: 7 | trace_max_length_bytes: 16000 8 | num_workers: 4 9 | num_readers: 1 10 | interval: 10s 11 | percentiles: 12 | - 0.50 13 | - 0.90 14 | aggregates: ['min', 'max', 'count', 'sum'] 15 | grpc_address: localhost:8202 16 | 17 | debug: true 18 | debug_ingested_spans: true 19 | debug_flushed_metrics: true 20 | -------------------------------------------------------------------------------- /sinks/xray/testdata/xray_segment_root_start.json: -------------------------------------------------------------------------------- 1 | {"format": "json", "version": 1} 2 | {"name":"farts-srv","id":"0000000000000002","trace_id":"1-00000001-000000003fdd0f60394d200c","parent_id":"0000000000000001","start_time":1518279577,"end_time":1518279579,"namespace":"remote","error":false,"annotations":{"baz":"qux","indicator":"false","mind":"crystal"},"metadata":{"baz":"qux","feelings":"magenta","indicator":"false","mind":"crystal"},"http":{"request":{"url":"farts-srv:farting farty farts"},"response":{}}} 3 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go: -------------------------------------------------------------------------------- 1 | //go:build go1.16 2 | // +build go1.16 3 | 4 | package middleware 5 | 6 | import "runtime" 7 | 8 | func getNormalizedOSName() (os string) { 9 | switch runtime.GOOS { 10 | case "android": 11 | os = "android" 12 | case "linux": 13 | os = "linux" 14 | case "windows": 15 | os = "windows" 16 | case "darwin": 17 | os = "macos" 18 | case "ios": 19 | os = "ios" 20 | default: 21 | os = "other" 22 | } 23 | return os 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | // This file contains the safe implementations of otherwise unsafe-using code. 4 | 5 | package xxhash 6 | 7 | // Sum64String computes the 64-bit xxHash digest of s. 8 | func Sum64String(s string) uint64 { 9 | return Sum64([]byte(s)) 10 | } 11 | 12 | // WriteString adds more data to d. It always returns len(s), nil. 13 | func (d *Digest) WriteString(s string) (n int, err error) { 14 | return d.Write([]byte(s)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/internal/stream_chunk.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package grpc.gateway.runtime; 3 | option go_package = "internal"; 4 | 5 | import "google/protobuf/any.proto"; 6 | 7 | // StreamError is a response type which is returned when 8 | // streaming rpc returns an error. 9 | message StreamError { 10 | int32 grpc_code = 1; 11 | int32 http_code = 2; 12 | string message = 3; 13 | string http_status = 4; 14 | repeated google.protobuf.Any details = 5; 15 | } 16 | -------------------------------------------------------------------------------- /vendor/goji.io/router.go: -------------------------------------------------------------------------------- 1 | package goji 2 | 3 | import ( 4 | "context" 5 | "net/http" 6 | 7 | "goji.io/internal" 8 | ) 9 | 10 | type match struct { 11 | context.Context 12 | p Pattern 13 | h http.Handler 14 | } 15 | 16 | func (m match) Value(key interface{}) interface{} { 17 | switch key { 18 | case internal.Pattern: 19 | return m.p 20 | case internal.Handler: 21 | return m.h 22 | default: 23 | return m.Context.Value(key) 24 | } 25 | } 26 | 27 | var _ context.Context = match{} 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/github.com/dgryski/go-bits/popcnt.go: -------------------------------------------------------------------------------- 1 | // +build !amd64 appengine popcntgo 2 | 3 | package bits 4 | 5 | // Popcnt counts the number of bits set 6 | func Popcnt(x uint64) uint64 { 7 | // bit population count, see 8 | // http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel 9 | x -= (x >> 1) & 0x5555555555555555 10 | x = (x>>2)&0x3333333333333333 + x&0x3333333333333333 11 | x += x >> 4 12 | x &= 0x0f0f0f0f0f0f0f0f 13 | x *= 0x0101010101010101 14 | return x >> 56 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | // +build go1.18 9 | 10 | package idna 11 | 12 | // Transitional processing is disabled by default in Go 1.18. 13 | // https://golang.org/issue/47510 14 | const transitionalLookup = false 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/request_context_1_6.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package request 4 | 5 | import "github.com/aws/aws-sdk-go/aws" 6 | 7 | // setContext updates the Request to use the passed in context for cancellation. 8 | // Context will also be used for request retry delay. 9 | // 10 | // Creates shallow copy of the http.Request with the WithContext method. 11 | func setRequestContext(r *Request, ctx aws.Context) { 12 | r.context = ctx 13 | r.HTTPRequest.Cancel = ctx.Done() 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: [1.13.x, 1.14.x] 8 | os: [linux, osx] 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - ./travis/cross_build.sh 13 | - ./travis/lint.sh 14 | - export GOMAXPROCS=4 15 | - export GORACE=halt_on_error=1 16 | - go test -race -v ./... 17 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /tagging/convert.go: -------------------------------------------------------------------------------- 1 | package tagging 2 | 3 | import "strings" 4 | 5 | // ParseTagSliceToMap handles splitting a slice of string tags on `:` and 6 | // creating a map from the parts. 7 | func ParseTagSliceToMap(tags []string) map[string]string { 8 | mappedTags := make(map[string]string) 9 | for _, tag := range tags { 10 | splt := strings.SplitN(tag, ":", 2) 11 | if len(splt) < 2 { 12 | mappedTags[splt[0]] = "" 13 | } else { 14 | mappedTags[splt[0]] = splt[1] 15 | } 16 | } 17 | return mappedTags 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/satori/go.uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - 1.7 10 | - 1.8 11 | - 1.9 12 | - tip 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | fast_finish: true 17 | before_install: 18 | - go get github.com/mattn/goveralls 19 | - go get golang.org/x/tools/cmd/cover 20 | script: 21 | - $HOME/gopath/bin/goveralls -service=travis-ci 22 | notifications: 23 | email: false 24 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go: -------------------------------------------------------------------------------- 1 | package request 2 | 3 | import ( 4 | "io" 5 | "net/http" 6 | "net/url" 7 | ) 8 | 9 | func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request { 10 | req := new(http.Request) 11 | *req = *r 12 | req.URL = &url.URL{} 13 | *req.URL = *r.URL 14 | req.Body = body 15 | 16 | req.Header = http.Header{} 17 | for k, v := range r.Header { 18 | for _, vv := range v { 19 | req.Header.Add(k, vv) 20 | } 21 | } 22 | 23 | return req 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/request_context.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package request 4 | 5 | import "github.com/aws/aws-sdk-go/aws" 6 | 7 | // setContext updates the Request to use the passed in context for cancellation. 8 | // Context will also be used for request retry delay. 9 | // 10 | // Creates shallow copy of the http.Request with the WithContext method. 11 | func setRequestContext(r *Request, ctx aws.Context) { 12 | r.context = ctx 13 | r.HTTPRequest = r.HTTPRequest.WithContext(ctx) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/Makefile: -------------------------------------------------------------------------------- 1 | .DEFAULT_GOAL := test-and-lint 2 | 3 | .PHONY: test-and-lint 4 | test-and-lint: test lint 5 | 6 | .PHONY: test 7 | test: 8 | go test -v -cover -race ./... 9 | 10 | .PHONY: cover 11 | cover: 12 | go test -v -coverprofile=coverage.txt -covermode=atomic -race ./... 13 | 14 | .PHONY: lint 15 | lint: 16 | go fmt ./... 17 | golint ./... 18 | @# Run again with magic to exit non-zero if golint outputs anything. 19 | @! (golint ./... | read dummy) 20 | go vet ./... 21 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/log/nop.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | type nop struct{} 4 | 5 | // Discard is a logger that does nothing 6 | var Discard ErrorHandlingDisableableLogger = nop{} 7 | 8 | // Log does nothing 9 | func (n nop) Log(keyvals ...interface{}) { 10 | //nolint 11 | return 12 | } 13 | 14 | // ErrorLogger returns the discard logger 15 | func (n nop) ErrorLogger(error) Logger { 16 | return n 17 | } 18 | 19 | // Disabled always returns true 20 | func (n nop) Disabled() bool { 21 | return true 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-client-go/pkg/events/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package events provides a programmatic API for creating custom events in New Relic. 3 | 4 | Authentication 5 | 6 | You will need a valid Insights insert key to communicate with the backend New Relic 7 | API that provides this functionality. See the API key documentation below for 8 | more information on how to locate this key: 9 | 10 | https://docs.newrelic.com/docs/apis/get-started/intro-apis/types-new-relic-api-keys 11 | 12 | */ 13 | package events 14 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/ext/field.go: -------------------------------------------------------------------------------- 1 | package ext 2 | 3 | import ( 4 | "github.com/opentracing/opentracing-go" 5 | "github.com/opentracing/opentracing-go/log" 6 | ) 7 | 8 | // LogError sets the error=true tag on the Span and logs err as an "error" event. 9 | func LogError(span opentracing.Span, err error, fields ...log.Field) { 10 | Error.Set(span, true) 11 | ef := []log.Field{ 12 | log.Event("error"), 13 | log.Error(err), 14 | } 15 | ef = append(ef, fields...) 16 | span.LogFields(ef...) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.5 6 | // +build go1.5 7 | 8 | package plan9 9 | 10 | import "syscall" 11 | 12 | func fixwd() { 13 | syscall.Fixwd() 14 | } 15 | 16 | func Getwd() (wd string, err error) { 17 | return syscall.Getwd() 18 | } 19 | 20 | func Chdir(path string) error { 21 | return syscall.Chdir(path) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/github.com/lightstep/lightstep-tracer-go/lightstep_thrift/constants.go: -------------------------------------------------------------------------------- 1 | // Autogenerated by Thrift Compiler (0.9.2) 2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 3 | 4 | package lightstep_thrift 5 | 6 | import ( 7 | "bytes" 8 | "fmt" 9 | "github.com/lightstep/lightstep-tracer-go/thrift_0_9_2/lib/go/thrift" 10 | ) 11 | 12 | // (needed to ensure safety because of naive import list construction.) 13 | var _ = thrift.ZERO 14 | var _ = fmt.Printf 15 | var _ = bytes.Equal 16 | 17 | func init() { 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: true 3 | dist: bionic 4 | 5 | branches: 6 | only: 7 | - main 8 | 9 | os: 10 | - linux 11 | - osx 12 | # Travis doesn't work with windows and Go tip 13 | #- windows 14 | 15 | go: 16 | - tip 17 | 18 | matrix: 19 | allow_failures: 20 | - go: tip 21 | 22 | before_install: 23 | - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi 24 | - (cd /tmp/; go get golang.org/x/lint/golint) 25 | 26 | script: 27 | - make go test -v ./...; 28 | 29 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-client-go/internal/http/test_helpers.go: -------------------------------------------------------------------------------- 1 | package http 2 | 3 | import ( 4 | "net/http" 5 | "net/http/httptest" 6 | "testing" 7 | 8 | mock "github.com/newrelic/newrelic-client-go/pkg/testhelpers" 9 | ) 10 | 11 | // NewTestAPIClient returns a test Client instance that is configured to communicate with a mock server. 12 | func NewTestAPIClient(t *testing.T, handler http.Handler) Client { 13 | ts := httptest.NewServer(handler) 14 | tc := mock.NewTestConfig(t, ts) 15 | 16 | return NewClient(tc) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - brendandburns 9 | - caesarxuchao 10 | - liggitt 11 | - nikhiljindal 12 | - gmarek 13 | - erictune 14 | - davidopp 15 | - sttts 16 | - quinton-hoole 17 | - luxas 18 | - janetkuo 19 | - justinsb 20 | - ncdc 21 | - soltysh 22 | - dims 23 | - madhusudancs 24 | - hongchaodeng 25 | - krousey 26 | - mml 27 | - mbohlool 28 | - therc 29 | - kevin-wangzefeng 30 | - jianhuiz 31 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/csm/metric_exception.go: -------------------------------------------------------------------------------- 1 | package csm 2 | 3 | type metricException interface { 4 | Exception() string 5 | Message() string 6 | } 7 | 8 | type requestException struct { 9 | exception string 10 | message string 11 | } 12 | 13 | func (e requestException) Exception() string { 14 | return e.exception 15 | } 16 | func (e requestException) Message() string { 17 | return e.message 18 | } 19 | 20 | type awsException struct { 21 | requestException 22 | } 23 | 24 | type sdkException struct { 25 | requestException 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/ecs_container.go: -------------------------------------------------------------------------------- 1 | package shareddefaults 2 | 3 | const ( 4 | // ECSCredsProviderEnvVar is an environmental variable key used to 5 | // determine which path needs to be hit. 6 | ECSCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" 7 | ) 8 | 9 | // ECSContainerCredentialsURI is the endpoint to retrieve container 10 | // credentials. This can be overridden to test to ensure the credential process 11 | // is behaving correctly. 12 | var ECSContainerCredentialsURI = "http://169.254.170.2" 13 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/readerfactory.go: -------------------------------------------------------------------------------- 1 | package utilities 2 | 3 | import ( 4 | "bytes" 5 | "io" 6 | "io/ioutil" 7 | ) 8 | 9 | // IOReaderFactory takes in an io.Reader and returns a function that will allow you to create a new reader that begins 10 | // at the start of the stream 11 | func IOReaderFactory(r io.Reader) (func() io.Reader, error) { 12 | b, err := ioutil.ReadAll(r) 13 | if err != nil { 14 | return nil, err 15 | } 16 | 17 | return func() io.Reader { 18 | return bytes.NewReader(b) 19 | }, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/metrics.go: -------------------------------------------------------------------------------- 1 | // Go port of Coda Hale's Metrics library 2 | // 3 | // 4 | // 5 | // Coda Hale's original work: 6 | package metrics 7 | 8 | // UseNilMetrics is checked by the constructor functions for all of the 9 | // standard metrics. If it is true, the metric returned is a stub. 10 | // 11 | // This global kill-switch helps quantify the observer effect and makes 12 | // for less cluttered pprof profiles. 13 | var UseNilMetrics bool = false 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/errors.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import "github.com/aws/aws-sdk-go/aws/awserr" 4 | 5 | var ( 6 | // ErrMissingRegion is an error that is returned if region configuration is 7 | // not found. 8 | ErrMissingRegion = awserr.New("MissingRegion", "could not find region configuration", nil) 9 | 10 | // ErrMissingEndpoint is an error that is returned if an endpoint cannot be 11 | // resolved for a service. 12 | ErrMissingEndpoint = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `klog` is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.5 6 | // +build !go1.5 7 | 8 | package plan9 9 | 10 | func fixwd() { 11 | } 12 | 13 | func Getwd() (wd string, err error) { 14 | fd, err := open(".", O_RDONLY) 15 | if err != nil { 16 | return "", err 17 | } 18 | defer Close(fd) 19 | return Fd2path(fd) 20 | } 21 | 22 | func Chdir(path string) error { 23 | return chdir(path) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/list_groups_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type ListGroupsRequest struct { 4 | } 5 | 6 | func (r *ListGroupsRequest) encode(pe packetEncoder) error { 7 | return nil 8 | } 9 | 10 | func (r *ListGroupsRequest) decode(pd packetDecoder, version int16) (err error) { 11 | return nil 12 | } 13 | 14 | func (r *ListGroupsRequest) key() int16 { 15 | return 16 16 | } 17 | 18 | func (r *ListGroupsRequest) version() int16 { 19 | return 0 20 | } 21 | 22 | func (r *ListGroupsRequest) requiredVersion() KafkaVersion { 23 | return V0_9_0_0 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/response_header.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | import "fmt" 4 | 5 | type responseHeader struct { 6 | length int32 7 | correlationID int32 8 | } 9 | 10 | func (r *responseHeader) decode(pd packetDecoder) (err error) { 11 | r.length, err = pd.getInt32() 12 | if err != nil { 13 | return err 14 | } 15 | if r.length <= 4 || r.length > MaxResponseSize { 16 | return PacketDecodingError{fmt.Sprintf("message of length %d too large or too small", r.length)} 17 | } 18 | 19 | r.correlationID, err = pd.getInt32() 20 | return err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport_1_5.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6,go1.5 2 | 3 | package session 4 | 5 | import ( 6 | "net" 7 | "net/http" 8 | "time" 9 | ) 10 | 11 | // Transport that should be used when a custom CA bundle is specified with the 12 | // SDK. 13 | func getCABundleTransport() *http.Transport { 14 | return &http.Transport{ 15 | Proxy: http.ProxyFromEnvironment, 16 | Dial: (&net.Dialer{ 17 | Timeout: 30 * time.Second, 18 | KeepAlive: 30 * time.Second, 19 | }).Dial, 20 | TLSHandshakeTimeout: 10 * time.Second, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `yaml` Project is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/api_versions_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type ApiVersionsRequest struct { 4 | } 5 | 6 | func (r *ApiVersionsRequest) encode(pe packetEncoder) error { 7 | return nil 8 | } 9 | 10 | func (r *ApiVersionsRequest) decode(pd packetDecoder, version int16) (err error) { 11 | return nil 12 | } 13 | 14 | func (r *ApiVersionsRequest) key() int16 { 15 | return 18 16 | } 17 | 18 | func (r *ApiVersionsRequest) version() int16 { 19 | return 0 20 | } 21 | 22 | func (r *ApiVersionsRequest) requiredVersion() KafkaVersion { 23 | return V0_10_0_0 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Snappy-Go authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Damian Gryski 12 | Google Inc. 13 | Jan Mercl <0xjnml@gmail.com> 14 | Rodolfo Carvalho 15 | Sebastien Binet 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /sinks/cortex/testdata/monotonic_counters_missing_keys.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Name": "a.a.counter.1", 4 | "Timestamp": 1, 5 | "Value": 100, 6 | "Tags": [ 7 | "foo:bar", 8 | "baz:qux" 9 | ], 10 | "Type": 0, 11 | "Message": "", 12 | "HostName": "", 13 | "Sinks": null 14 | }, 15 | { 16 | "Name": "a.a.gauge.1", 17 | "Timestamp": 0, 18 | "Value": 100, 19 | "Tags": [ 20 | "foo:taz", 21 | "baz:qux" 22 | ], 23 | "Type": 1, 24 | "Message": "", 25 | "HostName": "", 26 | "Sinks": null 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /trace/example_test.go: -------------------------------------------------------------------------------- 1 | package trace_test 2 | 3 | import ( 4 | "github.com/stripe/veneur/v14/trace" 5 | ) 6 | 7 | // This demonstrates how to switch out an existing 8 | // DefaultClient, closing the existing connection correctly. 9 | func ExampleNewClient() { 10 | // Create the new client first (we'll create one that can send 11 | // 20 span packets in parallel): 12 | cl, err := trace.NewClient(trace.DefaultVeneurAddress, trace.Capacity(20)) 13 | if err != nil { 14 | panic(err) 15 | } 16 | 17 | // Replace the old client: 18 | trace.SetDefaultClient(cl) 19 | // Output: 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/smithy-go/README.md: -------------------------------------------------------------------------------- 1 | ## Smithy Go 2 | 3 | [![Go Build Status](https://github.com/aws/smithy-go/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/aws/smithy-go/actions/workflows/go.yml)[![Codegen Build Status](https://github.com/aws/smithy-go/actions/workflows/codegen.yml/badge.svg?branch=main)](https://github.com/aws/smithy-go/actions/workflows/codegen.yml) 4 | 5 | Smithy code generators for Go. 6 | 7 | **WARNING: All interfaces are subject to change.** 8 | 9 | ## License 10 | 11 | This project is licensed under the Apache-2.0 License. 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/ws_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | import ( 4 | "unicode" 5 | ) 6 | 7 | // isWhitespace will return whether or not the character is 8 | // a whitespace character. 9 | // 10 | // Whitespace is defined as a space or tab. 11 | func isWhitespace(c rune) bool { 12 | return unicode.IsSpace(c) && c != '\n' && c != '\r' 13 | } 14 | 15 | func newWSToken(b []rune) (Token, int, error) { 16 | i := 0 17 | for ; i < len(b); i++ { 18 | if !isWhitespace(b[i]) { 19 | break 20 | } 21 | } 22 | 23 | return newToken(TokenWS, b[:i], NoneType), i, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/gohistogram/histogram.go: -------------------------------------------------------------------------------- 1 | package gohistogram 2 | 3 | // Copyright (c) 2013 VividCortex, Inc. All rights reserved. 4 | // Please see the LICENSE file for applicable license terms. 5 | 6 | // Histogram is the interface that wraps the Add and Quantile methods. 7 | type Histogram interface { 8 | // Add adds a new value, n, to the histogram. Trimming is done 9 | // automatically. 10 | Add(n float64) 11 | 12 | // Quantile returns an approximation. 13 | Quantile(n float64) (q float64) 14 | } 15 | 16 | type bin struct { 17 | value float64 18 | count float64 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build hurd 6 | // +build hurd 7 | 8 | package unix 9 | 10 | /* 11 | #include 12 | int ioctl(int, unsigned long int, uintptr_t); 13 | */ 14 | import "C" 15 | 16 | func ioctl(fd int, req uint, arg uintptr) (err error) { 17 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 18 | if r0 == -1 && er != nil { 19 | err = er 20 | } 21 | return 22 | } 23 | -------------------------------------------------------------------------------- /trace/client_internal_test.go: -------------------------------------------------------------------------------- 1 | package trace 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestSetDefaultClient(t *testing.T) { 10 | newClient, err := NewClient(DefaultVeneurAddress) 11 | assert.NoError(t, err) 12 | 13 | defer initializeDefaultClient() 14 | 15 | var nilClient *Client = nil 16 | 17 | // Setting nil works 18 | SetDefaultClient(nilClient) 19 | assert.Equal(t, nilClient, DefaultClient) 20 | 21 | // Replacing nil and setting a client works 22 | SetDefaultClient(newClient) 23 | assert.Equal(t, newClient, DefaultClient) 24 | } 25 | -------------------------------------------------------------------------------- /trace/metrics/example_report_test.go: -------------------------------------------------------------------------------- 1 | package metrics_test 2 | 3 | import ( 4 | "github.com/stripe/veneur/v14/ssf" 5 | "github.com/stripe/veneur/v14/trace" 6 | "github.com/stripe/veneur/v14/trace/metrics" 7 | ) 8 | 9 | func ExampleReport() { 10 | // Create a slice of metrics and report them in one batch at the end of the function: 11 | samples := &ssf.Samples{} 12 | defer metrics.Report(trace.DefaultClient, samples) 13 | 14 | // Let's add some metrics to the batch: 15 | samples.Add(ssf.Count("a.counter", 2, nil)) 16 | samples.Add(ssf.Gauge("a.gauge", 420, nil)) 17 | 18 | // Output: 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-client-go/pkg/workloads/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package workloads provides a programmatic API for interacting with New Relic One 3 | workloads. It can be used to create, read, update, and delete workloads. 4 | 5 | Authentication 6 | 7 | You will need a valid Personal API key to communicate with the backend New Relic 8 | API that provides this functionality. See the API key documentation below for 9 | more information on how to locate this key: 10 | 11 | https://docs.newrelic.com/docs/apis/get-started/intro-apis/types-new-relic-api-keys 12 | 13 | */ 14 | package workloads 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <>= 8 20 | pos-- 21 | } 22 | 23 | return n, err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkuri/path.go: -------------------------------------------------------------------------------- 1 | package sdkuri 2 | 3 | import ( 4 | "path" 5 | "strings" 6 | ) 7 | 8 | // PathJoin will join the elements of the path delimited by the "/" 9 | // character. Similar to path.Join with the exception the trailing "/" 10 | // character is preserved if present. 11 | func PathJoin(elems ...string) string { 12 | if len(elems) == 0 { 13 | return "" 14 | } 15 | 16 | hasTrailing := strings.HasSuffix(elems[len(elems)-1], "/") 17 | str := path.Join(elems...) 18 | if hasTrailing && str != "/" { 19 | str += "/" 20 | } 21 | 22 | return str 23 | } 24 | -------------------------------------------------------------------------------- /socket.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | // +build !linux 3 | 4 | package veneur 5 | 6 | import ( 7 | "net" 8 | ) 9 | 10 | // NewSocket creates a socket which is intended for use by a single goroutine. 11 | func NewSocket(addr *net.UDPAddr, recvBuf int, reuseport bool) (net.PacketConn, error) { 12 | if reuseport { 13 | panic("SO_REUSEPORT not supported on this platform") 14 | } 15 | serverConn, err := net.ListenUDP("udp", addr) 16 | if err != nil { 17 | return nil, err 18 | } 19 | if err := serverConn.SetReadBuffer(recvBuf); err != nil { 20 | return nil, err 21 | } 22 | return serverConn, nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/protojson/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package protojson marshals and unmarshals protocol buffer messages as JSON 6 | // format. It follows the guide at 7 | // https://developers.google.com/protocol-buffers/docs/proto3#json. 8 | // 9 | // This package produces a different output than the standard "encoding/json" 10 | // package, which does not operate correctly on protocol buffer messages. 11 | package protojson 12 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-client-go/pkg/accounts/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package accounts provides a programmatic API for interacting with New Relic accounts. 3 | It can be used to retrieve details about all accounts the user is authorized to view. 4 | 5 | Authentication 6 | 7 | You will need a valid Personal API key to communicate with the backend New Relic 8 | API that provides this functionality. See the API key documentation below for 9 | more information on how to locate this key: 10 | 11 | https://docs.newrelic.com/docs/apis/get-started/intro-apis/types-new-relic-api-keys 12 | 13 | */ 14 | package accounts 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !purego,!appengine 6 | 7 | package impl 8 | 9 | // When using unsafe pointers, we can just treat enum values as int32s. 10 | 11 | var ( 12 | coderEnumNoZero = coderInt32NoZero 13 | coderEnum = coderInt32 14 | coderEnumPtr = coderInt32Ptr 15 | coderEnumSlice = coderInt32Slice 16 | coderEnumPackedSlice = coderInt32PackedSlice 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | // +build protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = false 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /trace/README.md: -------------------------------------------------------------------------------- 1 | Trace 2 | ========= 3 | 4 | Veneur provides an experimental API for tracing requests between hosts. The API is in an experimental state and is subject to change. 5 | 6 | The main Veneur tracing API is defined in the `trace.go` file; however, an OpenTracing compatibility layer is provided for convenience as well. These are functionally equivalent, though it is recommended not to mix the functions. (In other words, if a trace is started using Veneur's tracing API, avoid using the OpenTracing API functions on it or future children). 7 | 8 | Eventually, these two interfaces will be consolidated. 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build plan9 && !race 6 | // +build plan9,!race 7 | 8 | package plan9 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /sinks/xray/testdata/xray_segment_root_start_http_fields.json: -------------------------------------------------------------------------------- 1 | {"format": "json", "version": 1} 2 | {"name":"farts-srv","id":"0000000000000002","trace_id":"1-00000001-000000003fdd0f60394d200c","parent_id":"0000000000000001","start_time":1518279577,"end_time":1518279579,"namespace":"remote","error":false,"annotations":{"baz":"qux","indicator":"false","mind":"crystal"},"metadata":{"baz":"qux","feelings":"magenta","http.method":"POST","http.status_code":"200","http.url":"https://domain.name/path1/path2","indicator":"false","mind":"crystal"},"http":{"request":{"method":"POST","url":"https://domain.name/path1/path2"},"response":{"status":200}}} -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport_1_6.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7,go1.6 2 | 3 | package session 4 | 5 | import ( 6 | "net" 7 | "net/http" 8 | "time" 9 | ) 10 | 11 | // Transport that should be used when a custom CA bundle is specified with the 12 | // SDK. 13 | func getCABundleTransport() *http.Transport { 14 | return &http.Transport{ 15 | Proxy: http.ProxyFromEnvironment, 16 | Dial: (&net.Dialer{ 17 | Timeout: 30 * time.Second, 18 | KeepAlive: 30 * time.Second, 19 | }).Dial, 20 | TLSHandshakeTimeout: 10 * time.Second, 21 | ExpectContinueTimeout: 1 * time.Second, 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/go-xerial-snappy/README.md: -------------------------------------------------------------------------------- 1 | # go-xerial-snappy 2 | 3 | [![Build Status](https://travis-ci.org/eapache/go-xerial-snappy.svg?branch=master)](https://travis-ci.org/eapache/go-xerial-snappy) 4 | 5 | Xerial-compatible Snappy framing support for golang. 6 | 7 | Packages using Xerial for snappy encoding use a framing format incompatible with 8 | basically everything else in existence. This package wraps Go's built-in snappy 9 | package to support it. 10 | 11 | Apps that use this format include Apache Kafka (see 12 | https://github.com/dpkp/kafka-python/issues/126#issuecomment-35478921 for 13 | details). 14 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/BUILD.bazel: -------------------------------------------------------------------------------- 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 | 3 | package(default_visibility = ["//visibility:public"]) 4 | 5 | go_library( 6 | name = "go_default_library", 7 | srcs = [ 8 | "doc.go", 9 | "pattern.go", 10 | "readerfactory.go", 11 | "trie.go", 12 | ], 13 | importpath = "github.com/grpc-ecosystem/grpc-gateway/utilities", 14 | ) 15 | 16 | go_test( 17 | name = "go_default_test", 18 | size = "small", 19 | srcs = ["trie_test.go"], 20 | embed = [":go_default_library"], 21 | ) 22 | -------------------------------------------------------------------------------- /vendor/github.com/newrelic/newrelic-client-go/pkg/edge/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package edge provides a programmatic API for interacting with New Relic Edge with 3 | infinite tracing. It can be used to enable New Relic Edge and retrieve relevant 4 | config parameters. 5 | 6 | Authentication 7 | 8 | You will need a valid Personal API key to communicate with the backend New Relic 9 | API that provides this functionality. See the API key documentation below for 10 | more information on how to locate this key: 11 | 12 | https://docs.newrelic.com/docs/apis/get-started/intro-apis/types-new-relic-api-keys 13 | 14 | */ 15 | package edge 16 | -------------------------------------------------------------------------------- /sinks/s3/mock/s3.go: -------------------------------------------------------------------------------- 1 | package s3Mock 2 | 3 | import ( 4 | "github.com/aws/aws-sdk-go/service/s3" 5 | "github.com/aws/aws-sdk-go/service/s3/s3iface" 6 | ) 7 | 8 | type MockS3Client struct { 9 | s3iface.S3API 10 | putObject func(*s3.PutObjectInput) (*s3.PutObjectOutput, error) 11 | } 12 | 13 | // SetPutObject sets the function that acts as the PutObject handler 14 | func (m *MockS3Client) SetPutObject(f func(*s3.PutObjectInput) (*s3.PutObjectOutput, error)) { 15 | m.putObject = f 16 | } 17 | 18 | func (m *MockS3Client) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error) { 19 | return m.putObject(input) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/getsentry/sentry-go/internal/crypto/randutil/randutil.go: -------------------------------------------------------------------------------- 1 | package randutil 2 | 3 | import ( 4 | "crypto/rand" 5 | "encoding/binary" 6 | ) 7 | 8 | const ( 9 | floatMax = 1 << 53 10 | floatMask = floatMax - 1 11 | ) 12 | 13 | // Float64 returns a cryptographically secure random number in [0.0, 1.0). 14 | func Float64() float64 { 15 | // The implementation is, in essence: 16 | // return float64(rand.Int63n(1<<53)) / (1<<53) 17 | b := make([]byte, 8) 18 | _, err := rand.Read(b) 19 | if err != nil { 20 | panic(err) 21 | } 22 | return float64(binary.LittleEndian.Uint64(b)&floatMask) / floatMax 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/zenazn/goji/graceful/einhorn.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package graceful 4 | 5 | import ( 6 | "os" 7 | "strconv" 8 | "syscall" 9 | ) 10 | 11 | func init() { 12 | // This is a little unfortunate: goji/bind already knows whether we're 13 | // running under einhorn, but we don't want to introduce a dependency 14 | // between the two packages. Since the check is short enough, inlining 15 | // it here seems "fine." 16 | mpid, err := strconv.Atoi(os.Getenv("EINHORN_MASTER_PID")) 17 | if err != nil || mpid != os.Getppid() { 18 | return 19 | } 20 | stdSignals = append(stdSignals, syscall.SIGUSR2) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | // +build windows,!race 7 | 8 | package windows 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | // +build !protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = true 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return m.ProtoMethods() 19 | } 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | bin 27 | _work 28 | /veneur 29 | /cmd/veneur/veneur 30 | /veneur-proxy 31 | /cmd/veneur-proxy/veneur-proxy 32 | /veneur-prometheus 33 | /cmd/veneur-prometheus/veneur-prometheus 34 | 35 | *.swp 36 | *.swo 37 | *.swn 38 | coverage.out 39 | .DS_Store 40 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | // +build linux 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 8 | 9 | package unix 10 | 11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 12 | // values. 13 | 14 | //sys Alarm(seconds uint) (remaining uint, err error) 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /testdata/tracing_agent/spans/trace_critical.pb.json: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | { 4 | "duration": 881, 5 | "error": 2, 6 | "meta": { 7 | "error.msg": "an error occurred!", 8 | "error.stack": "insert\nlots\nof\nstuff", 9 | "error.type": "type error interface" 10 | }, 11 | "metrics": null, 12 | "name": "veneur.trace.test", 13 | "resource": "Robert'); DROP TABLE students;", 14 | "service": "veneur-test", 15 | "span_id": 8890541568593727407, 16 | "start": 1497026085338874599, 17 | "trace_id": 8890541568593727407, 18 | "type": "web" 19 | } 20 | ] 21 | ] 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | // +build 386,hurd 7 | 8 | package unix 9 | 10 | const ( 11 | TIOCGETA = 0x62251713 12 | ) 13 | 14 | type Winsize struct { 15 | Row uint16 16 | Col uint16 17 | Xpixel uint16 18 | Ypixel uint16 19 | } 20 | 21 | type Termios struct { 22 | Iflag uint32 23 | Oflag uint32 24 | Cflag uint32 25 | Lflag uint32 26 | Cc [20]uint8 27 | Ispeed int32 28 | Ospeed int32 29 | } 30 | -------------------------------------------------------------------------------- /cmd/veneur-prometheus/testdata/client.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBfDCCASKgAwIBAgIBBDAKBggqhkjOPQQDAjAkMRAwDgYDVQQKEwdBY21lIENv 3 | MRAwDgYDVQQDEwdSb290IENBMCAXDTE5MDYxMTIxMTcxNFoYDzIxMTkwNTE4MjEx 4 | NzE0WjAyMRAwDgYDVQQKEwdBY21lIENvMR4wHAYDVQQDDBVjbGllbnRfYXV0aF90 5 | ZXN0X2NlcnQwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASAXT1BIR7Fa0ulfc3a 6 | Ue2ug7VvS6/WTdo1caKxEeEwshdJydPSjo1puxrag0rm29HC4outvmWLWekbvelv 7 | goeZozUwMzAOBgNVHQ8BAf8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDAYD 8 | VR0TAQH/BAIwADAKBggqhkjOPQQDAgNIADBFAiAf/EmfbE7m9+kJnpzjqjQLg4Qo 9 | 4YRF806YXATB1BziGQIhAJhJmPMbMtcYdpgcbBbkJVpvxbnG085J29+0wlNXz81V 10 | -----END CERTIFICATE----- 11 | -------------------------------------------------------------------------------- /docs/dev-local.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # A config file for testing a local -> global veneur setup. 3 | # 4 | # Use in conjunction with dev-global.yaml. 5 | stats_address: 127.0.0.1:8200 6 | ssf_listen_addresses: 7 | - unix:///tmp/veneur.sock 8 | - udp://127.0.0.1:8128 9 | statsd_listen_addresses: 10 | - udp://127.0.0.1:8200 11 | trace_max_length_bytes: 16000 12 | num_workers: 4 13 | num_readers: 1 14 | interval: 10s 15 | percentiles: 16 | - 0.50 17 | - 0.90 18 | aggregates: ['min', 'max', 'count', 'sum'] 19 | forward_address: localhost:8202 20 | forward_use_grpc: true 21 | 22 | debug: true 23 | debug_ingested_spans: true 24 | debug_flushed_metrics: true 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go: -------------------------------------------------------------------------------- 1 | package corehandlers 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | // ValidateParametersHandler is a request handler to validate the input parameters. 6 | // Validating parameters only has meaning if done prior to the request being sent. 7 | var ValidateParametersHandler = request.NamedHandler{Name: "core.ValidateParametersHandler", Fn: func(r *request.Request) { 8 | if !r.ParamsFilled() { 9 | return 10 | } 11 | 12 | if v, ok := r.Params.(request.Validator); ok { 13 | if err := v.Validate(); err != nil { 14 | r.Error = err 15 | } 16 | } 17 | }} 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build plan9 6 | // +build plan9 7 | 8 | package plan9 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! 5 | VAGRANTFILE_API_VERSION = "2" 6 | 7 | # We have 5 * 192MB ZK processes and 5 * 320MB Kafka processes => 2560MB 8 | MEMORY = 3072 9 | 10 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 11 | config.vm.box = "ubuntu/trusty64" 12 | 13 | config.vm.provision :shell, path: "vagrant/provision.sh" 14 | 15 | config.vm.network "private_network", ip: "192.168.100.67" 16 | 17 | config.vm.provider "virtualbox" do |v| 18 | v.memory = MEMORY 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/endpoints/legacy_regions.go: -------------------------------------------------------------------------------- 1 | package endpoints 2 | 3 | var legacyGlobalRegions = map[string]map[string]struct{}{ 4 | "sts": { 5 | "ap-northeast-1": {}, 6 | "ap-south-1": {}, 7 | "ap-southeast-1": {}, 8 | "ap-southeast-2": {}, 9 | "ca-central-1": {}, 10 | "eu-central-1": {}, 11 | "eu-north-1": {}, 12 | "eu-west-1": {}, 13 | "eu-west-2": {}, 14 | "eu-west-3": {}, 15 | "sa-east-1": {}, 16 | "us-east-1": {}, 17 | "us-east-2": {}, 18 | "us-west-1": {}, 19 | "us-west-2": {}, 20 | }, 21 | "s3": { 22 | "us-east-1": {}, 23 | }, 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/newline_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | func isNewline(b []rune) bool { 4 | if len(b) == 0 { 5 | return false 6 | } 7 | 8 | if b[0] == '\n' { 9 | return true 10 | } 11 | 12 | if len(b) < 2 { 13 | return false 14 | } 15 | 16 | return b[0] == '\r' && b[1] == '\n' 17 | } 18 | 19 | func newNewlineToken(b []rune) (Token, int, error) { 20 | i := 1 21 | if b[0] == '\r' && isNewline(b[1:]) { 22 | i++ 23 | } 24 | 25 | if !isNewline([]rune(b[:i])) { 26 | return emptyToken, 0, NewParseError("invalid new line token") 27 | } 28 | 29 | return newToken(TokenNL, b[:i], NoneType), i, nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015 James Saryerwinnie 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /cmd/veneur-prometheus/testdata/root.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBgTCCASagAwIBAgIQKK4UL7jrQLvOls/Z5qgPoDAKBggqhkjOPQQDAjAkMRAw 3 | DgYDVQQKEwdBY21lIENvMRAwDgYDVQQDEwdSb290IENBMCAXDTE5MDYxMTIxMTcx 4 | NFoYDzIxMTkwNTE4MjExNzE0WjAkMRAwDgYDVQQKEwdBY21lIENvMRAwDgYDVQQD 5 | EwdSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEQf/W1cn5g+EN013e 6 | n+bagCQTSm4RTUYOlltLDigoY0NtAqsFqXIOD/3NHWIJSpXtAi5wnm+qd2/b8wys 7 | ccMBT6M4MDYwDgYDVR0PAQH/BAQDAgIEMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA8G 8 | A1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSQAwRgIhALAyJnUAerPV2fY8g9U/ 9 | +/LA7CXM4Ve09KtaP4S/2fqIAiEAxM7L+RySEw8xBRn8FjK5YYflpYX02lPbaEAQ 10 | 1EfGPlo= 11 | -----END CERTIFICATE----- 12 | -------------------------------------------------------------------------------- /trace/example_metrics_on_a_span_test.go: -------------------------------------------------------------------------------- 1 | package trace_test 2 | 3 | import ( 4 | "context" 5 | "time" 6 | 7 | "github.com/stripe/veneur/v14/ssf" 8 | "github.com/stripe/veneur/v14/trace" 9 | ) 10 | 11 | func ExampleTrace_Add() { 12 | // Create a span for testing and ensure it gets reported: 13 | span, _ := trace.StartSpanFromContext(context.Background(), "an_example") 14 | defer span.Finish() 15 | 16 | // Add a counter: 17 | span.Add(ssf.Count("hey.there", 1, map[string]string{ 18 | "a.tag": "a value", 19 | })) 20 | // Add a timer: 21 | span.Add(ssf.Timing("some.duration", 3*time.Millisecond, time.Nanosecond, nil)) 22 | // Output: 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.16 2 | // +build !go1.16 3 | 4 | package middleware 5 | 6 | import "runtime" 7 | 8 | func getNormalizedOSName() (os string) { 9 | switch runtime.GOOS { 10 | case "android": 11 | os = "android" 12 | case "linux": 13 | os = "linux" 14 | case "windows": 15 | os = "windows" 16 | case "darwin": 17 | // Due to Apple M1 we can't distinguish between macOS and iOS when GOOS/GOARCH is darwin/amd64 18 | // For now declare this as "other" until we have a better detection mechanism. 19 | fallthrough 20 | default: 21 | os = "other" 22 | } 23 | return os 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/context_sleep.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "time" 5 | ) 6 | 7 | // SleepWithContext will wait for the timer duration to expire, or the context 8 | // is canceled. Which ever happens first. If the context is canceled the Context's 9 | // error will be returned. 10 | // 11 | // Expects Context to always return a non-nil error if the Done channel is closed. 12 | func SleepWithContext(ctx Context, dur time.Duration) error { 13 | t := time.NewTimer(dur) 14 | defer t.Stop() 15 | 16 | select { 17 | case <-t.C: 18 | break 19 | case <-ctx.Done(): 20 | return ctx.Err() 21 | } 22 | 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/goji.io/internal/context.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // ContextKey is a type used for Goji's context.Context keys. 4 | type ContextKey int 5 | 6 | var ( 7 | // Path is the context key used to store the path Goji uses for its 8 | // PathPrefix optimization. 9 | Path interface{} = ContextKey(0) 10 | // Pattern is the context key used to store the Pattern that Goji last 11 | // matched. 12 | Pattern interface{} = ContextKey(1) 13 | // Handler is the context key used to store the Handler that Goji last 14 | // mached (and will therefore dispatch to at the end of the middleware 15 | // stack). 16 | Handler interface{} = ContextKey(2) 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/log/multi.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | // MultiLogger is a logger that sends to all the wrapped Loggers 4 | type MultiLogger []Logger 5 | 6 | var _ Logger = MultiLogger(nil) 7 | 8 | // Log will call log on every logger that isn't disabled 9 | func (c MultiLogger) Log(keyvals ...interface{}) { 10 | for _, l := range c { 11 | if !IsDisabled(l) { 12 | l.Log(keyvals...) 13 | } 14 | } 15 | } 16 | 17 | // Disabled returns true if all the wrapped loggers are disabled 18 | func (c MultiLogger) Disabled() bool { 19 | for _, l := range c { 20 | if !IsDisabled(l) { 21 | return false 22 | } 23 | } 24 | return true 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.11 6 | // +build !go1.11 7 | 8 | package http2 9 | 10 | import ( 11 | "net/http/httptrace" 12 | "net/textproto" 13 | ) 14 | 15 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 16 | 17 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 18 | 19 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go: -------------------------------------------------------------------------------- 1 | package retry 2 | 3 | import "fmt" 4 | 5 | // MaxAttemptsError provides the error when the maximum number of attempts have 6 | // been exceeded. 7 | type MaxAttemptsError struct { 8 | Attempt int 9 | Err error 10 | } 11 | 12 | func (e *MaxAttemptsError) Error() string { 13 | return fmt.Sprintf("exceeded maximum number of attempts, %d, %v", e.Attempt, e.Err) 14 | } 15 | 16 | // Unwrap returns the nested error causing the max attempts error. Provides the 17 | // implementation for errors.Is and errors.As to unwrap nested errors. 18 | func (e *MaxAttemptsError) Unwrap() error { 19 | return e.Err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/walker.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | // Walk will traverse the AST using the v, the Visitor. 4 | func Walk(tree []AST, v Visitor) error { 5 | for _, node := range tree { 6 | switch node.Kind { 7 | case ASTKindExpr, 8 | ASTKindExprStatement: 9 | 10 | if err := v.VisitExpr(node); err != nil { 11 | return err 12 | } 13 | case ASTKindStatement, 14 | ASTKindCompletedSectionStatement, 15 | ASTKindNestedSectionStatement, 16 | ASTKindCompletedNestedSectionStatement: 17 | 18 | if err := v.VisitStatement(node); err != nil { 19 | return err 20 | } 21 | } 22 | } 23 | 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | matrix: 4 | include: 5 | - go: "1.13.x" 6 | - go: "1.14.x" 7 | - go: "tip" 8 | env: 9 | - LINT=true 10 | - COVERAGE=true 11 | 12 | install: 13 | - if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi 14 | - go get -u github.com/stretchr/testify/... 15 | 16 | script: 17 | - make test 18 | - go build ./... 19 | - if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi 20 | - if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /sinks/cloudwatch/testdata/output.1.txt: -------------------------------------------------------------------------------- 1 | Action=PutMetricData&MetricData.member.1.Dimensions.member.1.Name=foo&MetricData.member.1.Dimensions.member.1.Value=bar&MetricData.member.1.Dimensions.member.2.Name=baz&MetricData.member.1.Dimensions.member.2.Value=qux&MetricData.member.1.MetricName=a.b.gauge&MetricData.member.1.Unit=None&MetricData.member.1.Value=100&MetricData.member.2.Dimensions.member.1.Name=foo&MetricData.member.2.Dimensions.member.1.Value=bar&MetricData.member.2.MetricName=a.b.counter&MetricData.member.2.Unit=None&MetricData.member.2.Value=2&MetricData.member.3.MetricName=a.b.status&MetricData.member.3.Unit=None&MetricData.member.3.Value=5&Namespace=test&Version=2010-08-01 -------------------------------------------------------------------------------- /vendor/github.com/dgryski/go-bits/clz.go: -------------------------------------------------------------------------------- 1 | // +build !amd64 appengine 2 | 3 | package bits 4 | 5 | // Clz counts leading zeroes 6 | func Clz(x uint64) uint64 { 7 | var n uint64 8 | 9 | n = 1 10 | 11 | if (x >> 32) == 0 { 12 | n = n + 32 13 | x = x << 32 14 | } 15 | if (x >> (32 + 16)) == 0 { 16 | n = n + 16 17 | x = x << 16 18 | } 19 | 20 | if (x >> (32 + 16 + 8)) == 0 { 21 | n = n + 8 22 | x = x << 8 23 | } 24 | 25 | if (x >> (32 + 16 + 8 + 4)) == 0 { 26 | n = n + 4 27 | x = x << 4 28 | } 29 | 30 | if (x >> (32 + 16 + 8 + 4 + 2)) == 0 { 31 | n = n + 2 32 | x = x << 2 33 | } 34 | 35 | n = n - (x >> 63) 36 | return uint64(n) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /forwardrpc/forward.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package forwardrpc; 3 | 4 | import "samplers/metricpb/metric.proto"; 5 | import "google/protobuf/empty.proto"; 6 | 7 | // Forward defines a service that can be used to forward metrics from one 8 | // Veneur to another. 9 | service Forward { 10 | // SendMetrics sends a batch of metrics at once, and returns no response. 11 | rpc SendMetrics(MetricList) returns (google.protobuf.Empty) {} 12 | rpc SendMetricsV2(stream metricpb.Metric) returns (google.protobuf.Empty) {} 13 | } 14 | 15 | // MetricList just wraps a list of metricpb.Metric's. 16 | message MetricList { 17 | repeated metricpb.Metric metrics = 1; 18 | } 19 | -------------------------------------------------------------------------------- /sinks/localfile/README.md: -------------------------------------------------------------------------------- 1 | Local File Sink 2 | =============== 3 | 4 | The Local File Sink appends each flush as TSV data to a specified file on the local system. Since the file path is not parametrized with regards to date or time, the file with the TSV data should be rotated, processed, or removed to avoid problems with filling the disk. 5 | 6 | # Configuration 7 | 8 | ```yaml 9 | metric_sinks: 10 | - kind: localfile 11 | name: localfile 12 | config: 13 | # The file to flush metrics to 14 | flush_file: /path/to/file 15 | ``` 16 | 17 | The `flush_file` path must be writeable by Veneur, and if the file does not exist, Veneur will try to create it. 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go: -------------------------------------------------------------------------------- 1 | package eventstream 2 | 3 | import "fmt" 4 | 5 | // LengthError provides the error for items being larger than a maximum length. 6 | type LengthError struct { 7 | Part string 8 | Want int 9 | Have int 10 | Value interface{} 11 | } 12 | 13 | func (e LengthError) Error() string { 14 | return fmt.Sprintf("%s length invalid, %d/%d, %v", 15 | e.Part, e.Want, e.Have, e.Value) 16 | } 17 | 18 | // ChecksumError provides the error for message checksum invalidation errors. 19 | type ChecksumError struct{} 20 | 21 | func (e ChecksumError) Error() string { 22 | return "message checksum mismatch" 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/macos 2 | 3 | ### macOS ### 4 | *.DS_Store 5 | .AppleDouble 6 | .LSOverride 7 | 8 | # Icon must end with two \r 9 | Icon 10 | 11 | 12 | # Thumbnails 13 | ._* 14 | 15 | # Files that might appear in the root of a volume 16 | .DocumentRevisions-V100 17 | .fseventsd 18 | .Spotlight-V100 19 | .TemporaryItems 20 | .Trashes 21 | .VolumeIcon.icns 22 | .com.apple.timemachine.donotpresent 23 | 24 | # Directories potentially created on remote AFP share 25 | .AppleDB 26 | .AppleDesktop 27 | Network Trash Folder 28 | Temporary Items 29 | .apdisk 30 | 31 | # End of https://www.gitignore.io/api/macos 32 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/.gitignore: -------------------------------------------------------------------------------- 1 | #### joe made this: http://goel.io/joe 2 | 3 | #### go #### 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 17 | .glide/ 18 | 19 | #### vim #### 20 | # Swap 21 | [._]*.s[a-v][a-z] 22 | [._]*.sw[a-p] 23 | [._]s[a-v][a-z] 24 | [._]sw[a-p] 25 | 26 | # Session 27 | Session.vim 28 | 29 | # Temporary 30 | .netrwhist 31 | *~ 32 | # Auto-generated tag files 33 | tags 34 | -------------------------------------------------------------------------------- /vendor/github.com/signalfx/golib/v3/trace/format/format.go: -------------------------------------------------------------------------------- 1 | package traceformat 2 | 3 | import "github.com/signalfx/golib/v3/trace" 4 | 5 | // This package is here to provide classes for easy json code generation and so we can isolate those generated classes 6 | // which do not adhere to our strict coding standards for test coverage or linting 7 | 8 | // Span is an alias 9 | //easyjson:json 10 | type Span trace.Span 11 | 12 | // Trace is an alias 13 | //easyjson:json 14 | type Trace trace.Trace 15 | 16 | // Endpoint is an alias 17 | //easyjson:json 18 | type Endpoint trace.Endpoint 19 | 20 | // Annotation is an alias 21 | //easyjson:json 22 | type Annotation trace.Annotation 23 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | #### Summary 10 | 11 | 12 | 13 | #### Motivation 14 | 15 | 16 | 17 | #### Test plan 18 | 19 | 20 | 21 | #### Rollout/monitoring/revert plan 22 | 23 | -------------------------------------------------------------------------------- /cmd/veneur-prometheus/testdata/server.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBkzCCATmgAwIBAgIRAJndv0bXFngKxMqIrxd3OTIwCgYIKoZIzj0EAwIwJDEQ 3 | MA4GA1UEChMHQWNtZSBDbzEQMA4GA1UEAxMHUm9vdCBDQTAgFw0xOTA2MTEyMTE3 4 | MTRaGA8yMTE5MDUxODIxMTcxNFowKDEQMA4GA1UEChMHQWNtZSBDbzEUMBIGA1UE 5 | AwwLdGVzdF9jZXJ0XzEwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARAHAkYY/FO 6 | ZSm+ptRaFhzYPn94ryZp+pO3J5z7YlH7F3S1CPcX7ICNNxQ4dtSqNANIRqog/tA+ 7 | OjKV8ZPO8bRco0YwRDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUH 8 | AwEwDAYDVR0TAQH/BAIwADAPBgNVHREECDAGhwR/AAABMAoGCCqGSM49BAMCA0gA 9 | MEUCIBNtYWSCYUO5mXDsKJO5E/PGjLDjpyMImsAtjF+6hpl/AiEApO5UGOABF0oC 10 | PvCpm25r31NgATaoAtVTiN/iMYfLfCg= 11 | -----END CERTIFICATE----- 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /sources/openmetrics/demo/config.yaml: -------------------------------------------------------------------------------- 1 | debug: true 2 | features: 3 | diagnostics_metrics_enabled: false 4 | enable_metric_sink_routing: true 5 | interval: 1s 6 | metric_sinks: 7 | - kind: debug 8 | name: debug 9 | metric_sink_routing: 10 | - name: default 11 | match: 12 | - name: 13 | kind: prefix 14 | value: demo_ 15 | sinks: 16 | matched: 17 | - debug 18 | sources: 19 | - kind: openmetrics 20 | name: openmetrics 21 | config: 22 | scrape_interval: 1s 23 | scrape_target: http://localhost:2112/metrics 24 | num_readers: 1 25 | stats_address: "localhost:8125" 26 | statsd_listen_addresses: 27 | - udp://localhost:8126 28 | -------------------------------------------------------------------------------- /trace/example_making_a_span_test.go: -------------------------------------------------------------------------------- 1 | package trace_test 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | 7 | "github.com/stripe/veneur/v14/trace" 8 | ) 9 | 10 | func ExampleStartSpanFromContext() { 11 | ctx := context.TODO() // assume your code gets a Context from somewhere 12 | 13 | // Create a span: 14 | span, ctx := trace.StartSpanFromContext(ctx, "") 15 | defer span.Finish() 16 | 17 | span.Tags = map[string]string{ 18 | "operation": "example", 19 | } 20 | 21 | // Function name inference will have guessed the name of this 22 | // example: "trace_test.ExampleStartSpanFromContext" 23 | fmt.Println(span.Name) 24 | // Output: 25 | // trace_test.ExampleStartSpanFromContext 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | // ExecutionEnvironmentID is the AWS execution environment runtime identifier. 4 | type ExecutionEnvironmentID string 5 | 6 | // RuntimeEnvironment is a collection of values that are determined at runtime 7 | // based on the environment that the SDK is executing in. Some of these values 8 | // may or may not be present based on the executing environment and certain SDK 9 | // configuration properties that drive whether these values are populated.. 10 | type RuntimeEnvironment struct { 11 | EnvironmentIdentifier ExecutionEnvironmentID 12 | Region string 13 | EC2InstanceMetadataRegion string 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/prometheus/prompb/README.md: -------------------------------------------------------------------------------- 1 | The compiled protobufs are version controlled and you won't normally need to 2 | re-compile them when building Prometheus. 3 | 4 | If however you have modified the defs and do need to re-compile, run 5 | `./scripts/genproto.sh` from the parent dir. 6 | 7 | In order for the script to run, you'll need `protoc` (version 3.5) in your 8 | PATH, and the following Go packages installed: 9 | 10 | - github.com/gogo/protobuf 11 | - github.com/gogo/protobuf/protoc-gen-gogofast 12 | - github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/ 13 | - github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger 14 | - golang.org/x/tools/cmd/goimports 15 | --------------------------------------------------------------------------------