From 8bf5ea04da4c72b18ea235e678a73fa2c8ce77e0 Mon Sep 17 00:00:00 2001 From: agarwalt Date: Tue, 6 Feb 2024 11:07:32 -0800 Subject: [PATCH 1/5] Update template with additional comment --- codegen/template_bundle/template_files.go | 4 ++-- codegen/templates/tchannel_endpoint.tmpl | 2 +- config/production.gen.go | 2 +- .../endpoints/abc/abc_appdemoservice_method_call_tchannel.go | 2 +- .../endpoints/bounce/bounce_bounce_method_bounce_tchannel.go | 2 +- .../tchannel/baz/baz_simpleservice_method_call_tchannel.go | 2 +- .../tchannel/baz/baz_simpleservice_method_echo_tchannel.go | 2 +- .../endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go | 2 +- .../panic/panic_simpleservice_method_anothercall_tchannel.go | 2 +- .../quux/quux_simpleservice_method_echostring_tchannel.go | 2 +- .../endpoints/bounce/bounce_bounce_method_bounce_tchannel.go | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/codegen/template_bundle/template_files.go b/codegen/template_bundle/template_files.go index 5143eb38c..28b2f2ec1 100644 --- a/codegen/template_bundle/template_files.go +++ b/codegen/template_bundle/template_files.go @@ -4159,7 +4159,7 @@ import ( {{- $clientID := .ClientID }} {{with .Method -}} -// New{{$handlerName}} creates a handler to be registered with a thrift server. +// New{{$handlerName}} creates a simple handler to be registered with a thrift server. func New{{$handlerName}}(deps *module.Dependencies) *{{$handlerName}} { handler := &{{$handlerName}}{ Deps: deps, @@ -4408,7 +4408,7 @@ func tchannel_endpointTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "tchannel_endpoint.tmpl", size: 9383, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "tchannel_endpoint.tmpl", size: 9390, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/codegen/templates/tchannel_endpoint.tmpl b/codegen/templates/tchannel_endpoint.tmpl index d94aa69a3..f0091f5de 100644 --- a/codegen/templates/tchannel_endpoint.tmpl +++ b/codegen/templates/tchannel_endpoint.tmpl @@ -39,7 +39,7 @@ import ( {{- $clientID := .ClientID }} {{with .Method -}} -// New{{$handlerName}} creates a handler to be registered with a thrift server. +// New{{$handlerName}} creates a simple handler to be registered with a thrift server. func New{{$handlerName}}(deps *module.Dependencies) *{{$handlerName}} { handler := &{{$handlerName}}{ Deps: deps, diff --git a/config/production.gen.go b/config/production.gen.go index eab9bb889..887bf3c58 100644 --- a/config/production.gen.go +++ b/config/production.gen.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go b/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go index 07f29c12d..f6a16d69c 100644 --- a/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go +++ b/examples/example-gateway/build/app/demo/endpoints/abc/abc_appdemoservice_method_call_tchannel.go @@ -41,7 +41,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/app/demo/endpoints/abc/module" ) -// NewAppDemoServiceCallHandler creates a handler to be registered with a thrift server. +// NewAppDemoServiceCallHandler creates a simple handler to be registered with a thrift server. func NewAppDemoServiceCallHandler(deps *module.Dependencies) *AppDemoServiceCallHandler { handler := &AppDemoServiceCallHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go b/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go index 315cf8516..b2f3e01c1 100644 --- a/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go +++ b/examples/example-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/bounce/module" ) -// NewBounceBounceHandler creates a handler to be registered with a thrift server. +// NewBounceBounceHandler creates a simple handler to be registered with a thrift server. func NewBounceBounceHandler(deps *module.Dependencies) *BounceBounceHandler { handler := &BounceBounceHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go index 1f4091e9d..dd4b271ad 100644 --- a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_call_tchannel.go @@ -45,7 +45,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/baz/module" ) -// NewSimpleServiceCallHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceCallHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceCallHandler(deps *module.Dependencies) *SimpleServiceCallHandler { handler := &SimpleServiceCallHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go index 44fe0258d..3fbc5ecba 100644 --- a/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/baz/baz_simpleservice_method_echo_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/baz/module" ) -// NewSimpleServiceEchoHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceEchoHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceEchoHandler(deps *module.Dependencies) *SimpleServiceEchoHandler { handler := &SimpleServiceEchoHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go index 01f762d44..20bdb7d8c 100644 --- a/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/echo/echo_echo_method_echo_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/echo/module" ) -// NewEchoEchoHandler creates a handler to be registered with a thrift server. +// NewEchoEchoHandler creates a simple handler to be registered with a thrift server. func NewEchoEchoHandler(deps *module.Dependencies) *EchoEchoHandler { handler := &EchoEchoHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go index 57c75894e..15405cdcb 100644 --- a/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/panic/panic_simpleservice_method_anothercall_tchannel.go @@ -44,7 +44,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/panic/module" ) -// NewSimpleServiceAnotherCallHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceAnotherCallHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceAnotherCallHandler(deps *module.Dependencies) *SimpleServiceAnotherCallHandler { handler := &SimpleServiceAnotherCallHandler{ Deps: deps, diff --git a/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go b/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go index 30003adf2..82f2aec8b 100644 --- a/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go +++ b/examples/example-gateway/build/endpoints/tchannel/quux/quux_simpleservice_method_echostring_tchannel.go @@ -43,7 +43,7 @@ import ( module "github.com/uber/zanzibar/examples/example-gateway/build/endpoints/tchannel/quux/module" ) -// NewSimpleServiceEchoStringHandler creates a handler to be registered with a thrift server. +// NewSimpleServiceEchoStringHandler creates a simple handler to be registered with a thrift server. func NewSimpleServiceEchoStringHandler(deps *module.Dependencies) *SimpleServiceEchoStringHandler { handler := &SimpleServiceEchoStringHandler{ Deps: deps, diff --git a/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go b/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go index 6fb031e24..985ce3804 100644 --- a/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go +++ b/examples/selective-gateway/build/endpoints/bounce/bounce_bounce_method_bounce_tchannel.go @@ -41,7 +41,7 @@ import ( module "github.com/uber/zanzibar/examples/selective-gateway/build/endpoints/bounce/module" ) -// NewBounceBounceHandler creates a handler to be registered with a thrift server. +// NewBounceBounceHandler creates a simple handler to be registered with a thrift server. func NewBounceBounceHandler(deps *module.Dependencies) *BounceBounceHandler { handler := &BounceBounceHandler{ Deps: deps, From 35958528b197550fcbd93cd0cf2bc45c8d70a5c5 Mon Sep 17 00:00:00 2001 From: agarwalt Date: Tue, 6 Feb 2024 12:14:44 -0800 Subject: [PATCH 2/5] Update license to 2024 --- benchmarks/benchserver/main.go | 2 +- benchmarks/runner/main.go | 2 +- codegen/casing.go | 2 +- codegen/casing_test.go | 2 +- codegen/client.go | 2 +- codegen/client_test.go | 2 +- codegen/gateway.go | 2 +- codegen/gateway_test.go | 2 +- codegen/header_propagate.go | 2 +- codegen/header_propagate_test.go | 2 +- codegen/mockgen.go | 2 +- codegen/module.go | 13 ++--- codegen/module_system.go | 2 +- codegen/module_test.go | 2 +- codegen/package.go | 2 +- codegen/package_test.go | 2 +- codegen/post_gen_hooks.go | 2 +- codegen/proto.go | 2 +- codegen/proto_test.go | 20 +++---- codegen/reflect_interface.go | 2 +- codegen/runner/runner.go | 2 +- codegen/service.go | 2 +- codegen/service_test.go | 2 +- codegen/template.go | 2 +- codegen/template_test.go | 2 +- codegen/thrift.go | 2 +- codegen/thrift_test.go | 2 +- codegen/type_converter.go | 26 ++++----- codegen/type_converter_test.go | 54 +++++++++---------- config/config.go | 2 +- fix_glide.go | 2 +- parallelize/parallelize.go | 2 +- parallelize/parallelize_test.go | 2 +- runtime/client_http_request.go | 2 +- runtime/client_http_request_test.go | 2 +- .../client_http_request_write_json_test.go | 2 +- runtime/client_http_response.go | 2 +- runtime/client_http_response_test.go | 2 +- runtime/constants.go | 5 +- runtime/context.go | 2 +- runtime/context_test.go | 2 +- runtime/gateway.go | 2 +- runtime/gateway_test.go | 2 +- runtime/grpc_client.go | 2 +- runtime/grpc_client_test.go | 2 +- runtime/http_client.go | 2 +- runtime/http_server.go | 2 +- runtime/jsonwrapper/jsonwrapper.go | 2 +- runtime/middlewares.go | 2 +- runtime/middlewares_tchannel.go | 2 +- runtime/middlewares_tchannel_test.go | 2 +- runtime/middlewares_test.go | 2 +- runtime/options.go | 2 +- runtime/plugins/m3_aggregator.go | 2 +- runtime/router.go | 2 +- runtime/router/router.go | 2 +- runtime/router/router_test.go | 2 +- runtime/router/trie.go | 2 +- runtime/router/trie_test.go | 2 +- runtime/router_test.go | 2 +- runtime/ruleengine/rule_engine.go | 2 +- runtime/ruleengine/rule_engine_test.go | 2 +- runtime/runtime_metrics.go | 9 ++-- runtime/runtime_metrics_test.go | 2 +- runtime/server_header.go | 2 +- runtime/server_header_test.go | 2 +- runtime/server_http_request.go | 2 +- runtime/server_http_request_test.go | 2 +- runtime/server_http_response.go | 2 +- runtime/server_http_response_easyjson_test.go | 2 +- runtime/server_http_response_test.go | 2 +- runtime/static_config.go | 16 +++--- runtime/static_config_test.go | 2 +- runtime/tchannel_client.go | 2 +- runtime/tchannel_client_raw.go | 2 +- runtime/tchannel_client_test.go | 2 +- runtime/tchannel_headers.go | 2 +- runtime/tchannel_headers_test.go | 2 +- runtime/tchannel_helpers.go | 2 +- runtime/tchannel_helpers_test.go | 2 +- runtime/tchannel_inbound_call.go | 2 +- runtime/tchannel_interfaces.go | 2 +- runtime/tchannel_logger.go | 2 +- runtime/tchannel_logger_test.go | 2 +- runtime/tchannel_metrics.go | 2 +- runtime/tchannel_metrics_test.go | 2 +- runtime/tchannel_outbound_call.go | 2 +- runtime/tchannel_server.go | 2 +- runtime/tchannel_server_test.go | 2 +- runtime/utils.go | 2 +- runtime/utils_test.go | 2 +- scripts/easy_json/easy_json.go | 2 +- scripts/resolve_i64/main.go | 2 +- scripts/resolve_thrift/main.go | 2 +- test/bootstrap_test.go | 2 +- test/clients/bar/bar_test.go | 2 +- test/clients/baz/baz_test.go | 2 +- test/clients/echo/echo_test.go | 2 +- test/config/config_test.go | 2 +- .../bar/bar_arg_with_headers_test.go | 2 +- .../endpoints/bar/bar_arg_with_params_test.go | 2 +- .../bar/bar_arg_with_query_params_test.go | 2 +- test/endpoints/bar/bar_hello_test.go | 2 +- test/endpoints/bar/bar_metrics_test.go | 2 +- test/endpoints/bar/bar_normal_test.go | 2 +- test/endpoints/baz/baz_metrics_test.go | 2 +- .../baz/baz_simpleservice_method_call_test.go | 2 +- .../baz_simpleservice_method_compare_test.go | 2 +- .../baz/baz_simpleservice_method_ping_test.go | 2 +- ...az_simpleservice_method_silly_noop_test.go | 2 +- test/endpoints/clientless/clientless_test.go | 2 +- test/endpoints/contacts/save_contacts_test.go | 2 +- test/endpoints/googlenow/googlenow_test.go | 2 +- test/endpoints/multi/multi_helloA_test.go | 2 +- test/endpoints/multi/multi_helloB_test.go | 2 +- .../tchannel/baz/baz_metrics_test.go | 2 +- .../baz/baz_simpleservice_method_call_test.go | 2 +- test/health_test.go | 2 +- test/jaeger_test.go | 2 +- test/lib/bench_gateway/bench_gateway.go | 2 +- test/lib/sort_metrics.go | 2 +- test/lib/test_backend/test_http_backend.go | 2 +- .../lib/test_backend/test_tchannel_backend.go | 2 +- test/lib/test_gateway/test_gateway.go | 2 +- test/lib/test_gateway/test_gateway_cover.go | 2 +- test/lib/test_gateway/test_gateway_process.go | 2 +- test/lib/test_m3_server/test_m3_server.go | 2 +- test/lib/util/util.go | 2 +- test/lib/wait_at_least.go | 14 ++--- .../circuitbreaker_test.go | 2 +- 130 files changed, 204 insertions(+), 197 deletions(-) diff --git a/benchmarks/benchserver/main.go b/benchmarks/benchserver/main.go index c4e6d7397..563547c55 100644 --- a/benchmarks/benchserver/main.go +++ b/benchmarks/benchserver/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/benchmarks/runner/main.go b/benchmarks/runner/main.go index 807975afb..1f682a0db 100644 --- a/benchmarks/runner/main.go +++ b/benchmarks/runner/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/casing.go b/codegen/casing.go index c8348d840..1ca6fee54 100644 --- a/codegen/casing.go +++ b/codegen/casing.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/casing_test.go b/codegen/casing_test.go index 1435c16a8..67d185a45 100644 --- a/codegen/casing_test.go +++ b/codegen/casing_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/client.go b/codegen/client.go index 91ca65d29..faec60798 100644 --- a/codegen/client.go +++ b/codegen/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/client_test.go b/codegen/client_test.go index 7ca4814e0..9952c0e69 100644 --- a/codegen/client_test.go +++ b/codegen/client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/gateway.go b/codegen/gateway.go index 0353530da..7d5e5775a 100644 --- a/codegen/gateway.go +++ b/codegen/gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/gateway_test.go b/codegen/gateway_test.go index 67300f9e5..e5cb071d1 100644 --- a/codegen/gateway_test.go +++ b/codegen/gateway_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/header_propagate.go b/codegen/header_propagate.go index 7573fa67a..7e74635b9 100644 --- a/codegen/header_propagate.go +++ b/codegen/header_propagate.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/header_propagate_test.go b/codegen/header_propagate_test.go index 3076643b3..458212402 100644 --- a/codegen/header_propagate_test.go +++ b/codegen/header_propagate_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/mockgen.go b/codegen/mockgen.go index 51b646a37..12c73e018 100644 --- a/codegen/mockgen.go +++ b/codegen/mockgen.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module.go b/codegen/module.go index 21b6f90a5..356f2a8b1 100644 --- a/codegen/module.go +++ b/codegen/module.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -1736,11 +1736,12 @@ func (info *PackageInfo) ModulePackageAlias() string { // ModuleInstance is a configured module inside a module class directory. // For example, this could be -// ClassName: "Endpoint, -// ClassType: "http", -// BaseDirectory "/path/to/service/base/" -// Directory: "clients/health/" -// InstanceName: "health", +// +// ClassName: "Endpoint, +// ClassType: "http", +// BaseDirectory "/path/to/service/base/" +// Directory: "clients/health/" +// InstanceName: "health", type ModuleInstance struct { // genSpec is used to share generated specs across dependencies. Generators // should not mutate this directly, and should return the spec as a result. diff --git a/codegen/module_system.go b/codegen/module_system.go index 1b3a57ad4..3f540e51f 100644 --- a/codegen/module_system.go +++ b/codegen/module_system.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module_test.go b/codegen/module_test.go index c099a69b0..498e23431 100644 --- a/codegen/module_test.go +++ b/codegen/module_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/package.go b/codegen/package.go index 48b26feb8..5ce91b71a 100644 --- a/codegen/package.go +++ b/codegen/package.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/package_test.go b/codegen/package_test.go index c248e182a..181e8170e 100644 --- a/codegen/package_test.go +++ b/codegen/package_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/post_gen_hooks.go b/codegen/post_gen_hooks.go index 3928bf0d6..428b097cb 100644 --- a/codegen/post_gen_hooks.go +++ b/codegen/post_gen_hooks.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/proto.go b/codegen/proto.go index 22feb233b..262f7a8e9 100644 --- a/codegen/proto.go +++ b/codegen/proto.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/proto_test.go b/codegen/proto_test.go index 89646383c..d1ce43e53 100644 --- a/codegen/proto_test.go +++ b/codegen/proto_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -32,10 +32,10 @@ const ( singleServiceSpec = ` syntax = "proto3"; package echo; - + message Request { string message = 1; } message Response { string message = 1; } - + service EchoService { rpc EchoMethod(Request) returns (Response); } @@ -43,12 +43,12 @@ const ( multiServiceSpec = ` syntax = "proto3"; package echo; - + message Request1 { string message = 1; } message Response1 { string message = 1; } message Request2 { string message = 1; } message Response2 { string message = 1; } - + service EchoService { rpc EchoMethod1(Request1) returns (Response1); rpc EchoMethod2(Request2) returns (Response2); @@ -57,11 +57,11 @@ const ( mixedServiceSpec = ` syntax = "proto3"; package echo; - + message Request1 { string message = 1; } message Response1 { string message = 1; } message Response2 { string message = 1; } - + service EchoService { rpc EchoMethod1(Request1) returns (Response1); rpc EchoMethod2(Request1) returns (Response2); @@ -70,17 +70,17 @@ const ( noServiceSpec = ` syntax = "proto3"; package echo; - + message Request { string message = 1; } message Response { string message = 1; } ` emptyServiceSpec = ` syntax = "proto3"; package echo; - + message Request { string message = 1; } message Response { string message = 1; } - + service EchoService {} ` ) diff --git a/codegen/reflect_interface.go b/codegen/reflect_interface.go index abc73214a..1b097d748 100644 --- a/codegen/reflect_interface.go +++ b/codegen/reflect_interface.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/runner/runner.go b/codegen/runner/runner.go index 1e6b91fb6..4d1136aa1 100644 --- a/codegen/runner/runner.go +++ b/codegen/runner/runner.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/service.go b/codegen/service.go index 2a0cdbc4b..9a8499669 100644 --- a/codegen/service.go +++ b/codegen/service.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/service_test.go b/codegen/service_test.go index 891d947ff..797daf03c 100644 --- a/codegen/service_test.go +++ b/codegen/service_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/template.go b/codegen/template.go index 0f5a357df..ce879803d 100644 --- a/codegen/template.go +++ b/codegen/template.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/template_test.go b/codegen/template_test.go index 0afbddea0..93e36d46c 100644 --- a/codegen/template_test.go +++ b/codegen/template_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/thrift.go b/codegen/thrift.go index 2f102dda7..00674511b 100644 --- a/codegen/thrift.go +++ b/codegen/thrift.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/thrift_test.go b/codegen/thrift_test.go index aa1fb595d..d16826095 100644 --- a/codegen/thrift_test.go +++ b/codegen/thrift_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/type_converter.go b/codegen/type_converter.go index f84afc8a4..6839d4f96 100644 --- a/codegen/type_converter.go +++ b/codegen/type_converter.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -120,7 +120,7 @@ func (c *TypeConverter) getGoTypeName(valueType compile.TypeSpec) (string, error return GoType(c.Helper, valueType) } -// input of "A.B.C.D" returns ["A","A.B", "A.B.C", "A.B.C.D"] +// input of "A.B.C.D" returns ["A","A.B", "A.B.C", "A.B.C.D"] func getMiddleIdentifiers(identifier string) []string { subIds := strings.Split(identifier, ".") @@ -134,7 +134,7 @@ func getMiddleIdentifiers(identifier string) []string { return middleIds } -// converts a list of identifier paths into boolean nil check expressions on those paths +// converts a list of identifier paths into boolean nil check expressions on those paths func convertIdentifiersToNilChecks(identifiers []string) []string { checks := make([]string, 0, len(identifiers)-1) @@ -641,13 +641,14 @@ func (c *TypeConverter) genConverterForMap( } // recursive function to walk a DFS on toFields and try to assign fromFields or fieldMap tranforms -// generated code is appended as we traverse the toFields thrift type structure -// keyPrefix - the identifier (path) of the current position in the "to" struct -// fromPrefix - the identifier (path) of the corresponding position in the "from" struct -// indent - a string of tabs for current block scope -// fromFields - fields in the current from struct, can be nil if only fieldMap transforms are applicable in the path -// toFields - fields in the current to struct -// fieldMap - a data structure specifying configured transforms Map[toIdentifier ] -> fromField FieldMapperEntry +// +// generated code is appended as we traverse the toFields thrift type structure +// keyPrefix - the identifier (path) of the current position in the "to" struct +// fromPrefix - the identifier (path) of the corresponding position in the "from" struct +// indent - a string of tabs for current block scope +// fromFields - fields in the current from struct, can be nil if only fieldMap transforms are applicable in the path +// toFields - fields in the current to struct +// fieldMap - a data structure specifying configured transforms Map[toIdentifier ] -> fromField FieldMapperEntry func (c *TypeConverter) genStructConverter( keyPrefix string, fromPrefix string, @@ -1291,8 +1292,9 @@ func isRecursiveStruct(spec compile.TypeSpec, seenSoFar map[string]bool) bool { // Returns true if any of the fields of a struct form a cycle anywhere down the line // e.g. struct A has optional field of type A -> cycle of length 0 -// struct A has optional field of type B; struct B has optional field of type A -> cycle of length 2 -// struct A has optional field of type B; struct B has optional field of type B -> cycle of length 0 downstream +// +// struct A has optional field of type B; struct B has optional field of type A -> cycle of length 2 +// struct A has optional field of type B; struct B has optional field of type B -> cycle of length 0 downstream func (c *TypeConverter) isRecursiveStruct(fields []*compile.FieldSpec) bool { for _, field := range fields { if isRecursiveStruct(field.Type, make(map[string]bool)) { diff --git a/codegen/type_converter_test.go b/codegen/type_converter_test.go index 1ebbffa56..a3c4dd045 100644 --- a/codegen/type_converter_test.go +++ b/codegen/type_converter_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -667,7 +667,7 @@ func TestConvertWithBadImportTypedef(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional bar.MyString one 2: required string two @@ -698,7 +698,7 @@ func TestConvertWithBadImportEnum(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional bar.MyEnum one 2: required string two @@ -732,7 +732,7 @@ func TestConvertWithBadImportStruct(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional bar.MyStruct one 2: required string two @@ -825,7 +825,7 @@ func TestConvertListOfStruct(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: required list two @@ -867,7 +867,7 @@ func TestConvertWithBadImportListOfStruct(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional list one 2: required string two @@ -902,7 +902,7 @@ func TestConvertWithMisMatchListTypes(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: required string two @@ -933,7 +933,7 @@ func TestConvertWithBadImportListOfBadStruct(t *testing.T) { struct Inner { 1: optional bar.MyStruct field } - + struct Foo { 1: optional list one 2: required string two @@ -998,7 +998,7 @@ func TestConvertMapStringToStruct(t *testing.T) { 1: required string one 2: optional string two } - + struct Foo { 1: required map uuidMap } @@ -1037,7 +1037,7 @@ func TestConvertMapTypeDefToStruct(t *testing.T) { 1: required string one 2: optional string two } - + struct Foo { 1: required map uuidMap } @@ -1071,7 +1071,7 @@ func TestConvertMapOfStruct(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: required map two @@ -1113,7 +1113,7 @@ func TestConvertWithBadImportMapOfStruct(t *testing.T) { "Foo", "Bar", ` include "../../bar.thrift" - + struct Foo { 1: optional map one 2: required string two @@ -1148,7 +1148,7 @@ func TestConvertWithMisMatchMapTypes(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: required string two @@ -1179,7 +1179,7 @@ func TestConvertWithBadImportMapOfBadStruct(t *testing.T) { struct Inner { 1: optional bar.MyStruct field } - + struct Foo { 1: optional map one 2: required string two @@ -1559,7 +1559,7 @@ func TestConverterMapOverrideReqToOpt(t *testing.T) { if in.Two != nil { out.One = (*bool)(in.Two) } - out.Two = (*bool)(in.Two) + out.Two = (*bool)(in.Two) `), lines) } @@ -2312,7 +2312,7 @@ func TestConverterMapMapType(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional map two @@ -2379,7 +2379,7 @@ func TestConverterMapMapType(t *testing.T) { out.Two[key7] = nil } } - } + } `), lines) } @@ -2395,7 +2395,7 @@ func TestConvertWithMisMatchListTypesForOverride(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: optional string two @@ -2430,7 +2430,7 @@ func TestConverterMapListTypeIncompatabile(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional list one 2: optional list two @@ -2465,7 +2465,7 @@ func TestConvertWithMisMatchMapTypesForOverride(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional string two @@ -2500,7 +2500,7 @@ func TestConverterMapMapTypeIncompatabile(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional map two @@ -2535,7 +2535,7 @@ func TestConverterInvalidMapping(t *testing.T) { struct Inner { 1: optional string field } - + struct Foo { 1: optional map one 2: optional map two @@ -2650,7 +2650,7 @@ func TestConverterRecursiveNested(t *testing.T) { ` struct StringFoo { 1: required string one - 2: optional StringFoo recur + 2: optional StringFoo recur } struct Foo { @@ -2698,13 +2698,13 @@ func TestConverterRecursiveMixedDeep(t *testing.T) { struct StringFooA { 1: required string one - 2: optional StringFooA recur + 2: optional StringFooA recur 3: required DeepFoo deep } struct StringFooB { 1: required string one - 2: optional StringFooB recur + 2: optional StringFooB recur 3: required DeepFoo deep } @@ -2886,7 +2886,7 @@ func TestConverterMapTypeDef(t *testing.T) { struct RecurFoo2 { 1: required UUIDFoo field1 } - + struct RecurBar2 { 1: required UUIDBar field1 } @@ -2894,7 +2894,7 @@ func TestConverterMapTypeDef(t *testing.T) { struct RecurFoo1 { 1: required map field1 } - + struct RecurBar1 { 1: required map field1 } diff --git a/config/config.go b/config/config.go index 98199f154..0caf6eeb3 100644 --- a/config/config.go +++ b/config/config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/fix_glide.go b/fix_glide.go index ff4a4a764..937f87fa9 100644 --- a/fix_glide.go +++ b/fix_glide.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/parallelize/parallelize.go b/parallelize/parallelize.go index 694966049..05675c514 100644 --- a/parallelize/parallelize.go +++ b/parallelize/parallelize.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/parallelize/parallelize_test.go b/parallelize/parallelize_test.go index 2d5f61a7c..6525af48f 100644 --- a/parallelize/parallelize_test.go +++ b/parallelize/parallelize_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request.go b/runtime/client_http_request.go index a3321b01b..5b1174091 100644 --- a/runtime/client_http_request.go +++ b/runtime/client_http_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request_test.go b/runtime/client_http_request_test.go index 48796977a..c8bfe8f7a 100644 --- a/runtime/client_http_request_test.go +++ b/runtime/client_http_request_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request_write_json_test.go b/runtime/client_http_request_write_json_test.go index 0799e4823..a53f9662b 100644 --- a/runtime/client_http_request_write_json_test.go +++ b/runtime/client_http_request_write_json_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_response.go b/runtime/client_http_response.go index 8b85cb9d1..072302990 100644 --- a/runtime/client_http_response.go +++ b/runtime/client_http_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_response_test.go b/runtime/client_http_response_test.go index f3a4e9b5e..b8bdc2ee9 100644 --- a/runtime/client_http_response_test.go +++ b/runtime/client_http_response_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/constants.go b/runtime/constants.go index 50ac50fa5..14bb3b692 100644 --- a/runtime/constants.go +++ b/runtime/constants.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -77,6 +77,9 @@ const ( ClientResponseDurationKey = "client.response.duration" // ClientTypeKey denotes the type of the client, usually http / tchannel / client-less / custom ClientTypeKey = "client.type" + + //RPC + ClientRPCCode = "rpc$-application-error-name" ) var knownMetrics = []string{ diff --git a/runtime/context.go b/runtime/context.go index dd987b390..9782ed901 100644 --- a/runtime/context.go +++ b/runtime/context.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/context_test.go b/runtime/context_test.go index 95de46ede..866bb91a5 100644 --- a/runtime/context_test.go +++ b/runtime/context_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/gateway.go b/runtime/gateway.go index 6891c6e8b..01fe5b07e 100644 --- a/runtime/gateway.go +++ b/runtime/gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/gateway_test.go b/runtime/gateway_test.go index db44b7a69..880a204aa 100644 --- a/runtime/gateway_test.go +++ b/runtime/gateway_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/grpc_client.go b/runtime/grpc_client.go index 57f9244bb..fa70ab18a 100644 --- a/runtime/grpc_client.go +++ b/runtime/grpc_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/grpc_client_test.go b/runtime/grpc_client_test.go index 6e2985551..a3d5916a8 100644 --- a/runtime/grpc_client_test.go +++ b/runtime/grpc_client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/http_client.go b/runtime/http_client.go index 86065672f..e2c572c20 100644 --- a/runtime/http_client.go +++ b/runtime/http_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/http_server.go b/runtime/http_server.go index 821559e9f..61db56569 100644 --- a/runtime/http_server.go +++ b/runtime/http_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/jsonwrapper/jsonwrapper.go b/runtime/jsonwrapper/jsonwrapper.go index bcdacacef..c295ba5ad 100644 --- a/runtime/jsonwrapper/jsonwrapper.go +++ b/runtime/jsonwrapper/jsonwrapper.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares.go b/runtime/middlewares.go index 1823824bb..2e5a4c568 100644 --- a/runtime/middlewares.go +++ b/runtime/middlewares.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_tchannel.go b/runtime/middlewares_tchannel.go index 6ed6a48cc..f7b9b2bfc 100644 --- a/runtime/middlewares_tchannel.go +++ b/runtime/middlewares_tchannel.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_tchannel_test.go b/runtime/middlewares_tchannel_test.go index 30b24daa2..ca1e9bbf0 100644 --- a/runtime/middlewares_tchannel_test.go +++ b/runtime/middlewares_tchannel_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_test.go b/runtime/middlewares_test.go index b90aafcff..f81c82f35 100644 --- a/runtime/middlewares_test.go +++ b/runtime/middlewares_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/options.go b/runtime/options.go index 0c885d968..6c6d5f663 100644 --- a/runtime/options.go +++ b/runtime/options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/plugins/m3_aggregator.go b/runtime/plugins/m3_aggregator.go index 767591bd5..541dbc8c9 100644 --- a/runtime/plugins/m3_aggregator.go +++ b/runtime/plugins/m3_aggregator.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router.go b/runtime/router.go index 2fcbfef90..52b294e5e 100644 --- a/runtime/router.go +++ b/runtime/router.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/router.go b/runtime/router/router.go index be1799fcf..8abfc7b4f 100644 --- a/runtime/router/router.go +++ b/runtime/router/router.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/router_test.go b/runtime/router/router_test.go index 1bf77ad60..01328de01 100644 --- a/runtime/router/router_test.go +++ b/runtime/router/router_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/trie.go b/runtime/router/trie.go index 28d1e946d..d32122789 100644 --- a/runtime/router/trie.go +++ b/runtime/router/trie.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/trie_test.go b/runtime/router/trie_test.go index 085de10ac..5bad1bbb3 100644 --- a/runtime/router/trie_test.go +++ b/runtime/router/trie_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router_test.go b/runtime/router_test.go index 1840ae2df..3850cf191 100644 --- a/runtime/router_test.go +++ b/runtime/router_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/ruleengine/rule_engine.go b/runtime/ruleengine/rule_engine.go index 72dd3ce3b..5c12448f2 100644 --- a/runtime/ruleengine/rule_engine.go +++ b/runtime/ruleengine/rule_engine.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/ruleengine/rule_engine_test.go b/runtime/ruleengine/rule_engine_test.go index 3cda56c72..8397a450a 100644 --- a/runtime/ruleengine/rule_engine_test.go +++ b/runtime/ruleengine/rule_engine_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/runtime_metrics.go b/runtime/runtime_metrics.go index 531859b2e..d571b06ea 100644 --- a/runtime/runtime_metrics.go +++ b/runtime/runtime_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -82,9 +82,10 @@ type runtimeCollector struct { // StartRuntimeMetricsCollector starts collecting runtime metrics periodically. // Recommended usage: -// rm := StartRuntimeMetricsCollector(rootScope.Scope("runtime"), opts) -// ... -// rm.Stop() +// +// rm := StartRuntimeMetricsCollector(rootScope.Scope("runtime"), opts) +// ... +// rm.Stop() func StartRuntimeMetricsCollector( config RuntimeMetricsOptions, scope tally.Scope, diff --git a/runtime/runtime_metrics_test.go b/runtime/runtime_metrics_test.go index 56dd94b4d..529f45997 100644 --- a/runtime/runtime_metrics_test.go +++ b/runtime/runtime_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_header.go b/runtime/server_header.go index 23f0c06fb..6d26d505e 100644 --- a/runtime/server_header.go +++ b/runtime/server_header.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_header_test.go b/runtime/server_header_test.go index ac1d46175..b3fef2638 100644 --- a/runtime/server_header_test.go +++ b/runtime/server_header_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_request.go b/runtime/server_http_request.go index 53fca540e..b59cb29bd 100644 --- a/runtime/server_http_request.go +++ b/runtime/server_http_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_request_test.go b/runtime/server_http_request_test.go index cb5446010..e6e64a475 100644 --- a/runtime/server_http_request_test.go +++ b/runtime/server_http_request_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response.go b/runtime/server_http_response.go index 3a52ce0de..629dde762 100644 --- a/runtime/server_http_response.go +++ b/runtime/server_http_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response_easyjson_test.go b/runtime/server_http_response_easyjson_test.go index e5259bbfd..abbcfc731 100644 --- a/runtime/server_http_response_easyjson_test.go +++ b/runtime/server_http_response_easyjson_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response_test.go b/runtime/server_http_response_test.go index 03143f4e8..8306a039f 100644 --- a/runtime/server_http_response_test.go +++ b/runtime/server_http_response_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/static_config.go b/runtime/static_config.go index 0009dac6e..657a3e32b 100644 --- a/runtime/static_config.go +++ b/runtime/static_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -87,13 +87,13 @@ func ConfigFileContents(fileBytes []byte) *ConfigOption { // The files must be a list of YAML files. Each file must be a flat object of // key, value pairs. It's recommended that you use keys like: // -// { -// "name": "my-name", -// "clients.thingy": { -// "some client": "config" -// }, -// "server.my-port": 9999 -// } +// { +// "name": "my-name", +// "clients.thingy": { +// "some client": "config" +// }, +// "server.my-port": 9999 +// } // // To organize your configuration file. func NewStaticConfigOrDie( diff --git a/runtime/static_config_test.go b/runtime/static_config_test.go index dac81892a..4c007249c 100644 --- a/runtime/static_config_test.go +++ b/runtime/static_config_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client.go b/runtime/tchannel_client.go index d4aae6d63..7af25bc97 100644 --- a/runtime/tchannel_client.go +++ b/runtime/tchannel_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client_raw.go b/runtime/tchannel_client_raw.go index 3e18b2426..519a8c003 100644 --- a/runtime/tchannel_client_raw.go +++ b/runtime/tchannel_client_raw.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client_test.go b/runtime/tchannel_client_test.go index 75610d8f2..12742cf7a 100644 --- a/runtime/tchannel_client_test.go +++ b/runtime/tchannel_client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_headers.go b/runtime/tchannel_headers.go index bc33f3fab..ade475993 100644 --- a/runtime/tchannel_headers.go +++ b/runtime/tchannel_headers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_headers_test.go b/runtime/tchannel_headers_test.go index 0dc3e5f9a..5c4ca3a04 100644 --- a/runtime/tchannel_headers_test.go +++ b/runtime/tchannel_headers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_helpers.go b/runtime/tchannel_helpers.go index b36adea96..beb112174 100644 --- a/runtime/tchannel_helpers.go +++ b/runtime/tchannel_helpers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_helpers_test.go b/runtime/tchannel_helpers_test.go index 67fce1d94..487aa695b 100644 --- a/runtime/tchannel_helpers_test.go +++ b/runtime/tchannel_helpers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_inbound_call.go b/runtime/tchannel_inbound_call.go index a113d47d7..9b26c65fc 100644 --- a/runtime/tchannel_inbound_call.go +++ b/runtime/tchannel_inbound_call.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_interfaces.go b/runtime/tchannel_interfaces.go index 0ca9e222c..4d6be538e 100644 --- a/runtime/tchannel_interfaces.go +++ b/runtime/tchannel_interfaces.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_logger.go b/runtime/tchannel_logger.go index 4e86a876d..f4d041acb 100644 --- a/runtime/tchannel_logger.go +++ b/runtime/tchannel_logger.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_logger_test.go b/runtime/tchannel_logger_test.go index 5970f8cc3..f4623cd58 100644 --- a/runtime/tchannel_logger_test.go +++ b/runtime/tchannel_logger_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_metrics.go b/runtime/tchannel_metrics.go index 2b209d4c2..3b889cb2f 100644 --- a/runtime/tchannel_metrics.go +++ b/runtime/tchannel_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_metrics_test.go b/runtime/tchannel_metrics_test.go index 5b5f08c93..572ed240e 100644 --- a/runtime/tchannel_metrics_test.go +++ b/runtime/tchannel_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_outbound_call.go b/runtime/tchannel_outbound_call.go index 85186028e..61cf3f6f4 100644 --- a/runtime/tchannel_outbound_call.go +++ b/runtime/tchannel_outbound_call.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_server.go b/runtime/tchannel_server.go index 9c4fbb81e..f359ba654 100644 --- a/runtime/tchannel_server.go +++ b/runtime/tchannel_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_server_test.go b/runtime/tchannel_server_test.go index 00d9efcd6..571872581 100644 --- a/runtime/tchannel_server_test.go +++ b/runtime/tchannel_server_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/utils.go b/runtime/utils.go index 7b52806a1..d4cda7b7c 100644 --- a/runtime/utils.go +++ b/runtime/utils.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/utils_test.go b/runtime/utils_test.go index 3c8a26c8e..7742b71a4 100644 --- a/runtime/utils_test.go +++ b/runtime/utils_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/easy_json/easy_json.go b/scripts/easy_json/easy_json.go index adf6fabab..d8aa54483 100644 --- a/scripts/easy_json/easy_json.go +++ b/scripts/easy_json/easy_json.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/resolve_i64/main.go b/scripts/resolve_i64/main.go index f996d2aea..83a6b0c0e 100644 --- a/scripts/resolve_i64/main.go +++ b/scripts/resolve_i64/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/resolve_thrift/main.go b/scripts/resolve_thrift/main.go index ffd7ae0f6..fbfb574d7 100644 --- a/scripts/resolve_thrift/main.go +++ b/scripts/resolve_thrift/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/bootstrap_test.go b/test/bootstrap_test.go index c7960637b..7ab426a05 100644 --- a/test/bootstrap_test.go +++ b/test/bootstrap_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/bar/bar_test.go b/test/clients/bar/bar_test.go index b90c7ca94..0e00d5f4f 100644 --- a/test/clients/bar/bar_test.go +++ b/test/clients/bar/bar_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/baz/baz_test.go b/test/clients/baz/baz_test.go index 4177035ca..dddfb458a 100644 --- a/test/clients/baz/baz_test.go +++ b/test/clients/baz/baz_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/echo/echo_test.go b/test/clients/echo/echo_test.go index 810ca30ef..ff8114b86 100644 --- a/test/clients/echo/echo_test.go +++ b/test/clients/echo/echo_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/config/config_test.go b/test/config/config_test.go index 28392a8e2..c4597a1eb 100644 --- a/test/config/config_test.go +++ b/test/config/config_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_headers_test.go b/test/endpoints/bar/bar_arg_with_headers_test.go index f3613dc44..cb42ad142 100644 --- a/test/endpoints/bar/bar_arg_with_headers_test.go +++ b/test/endpoints/bar/bar_arg_with_headers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_params_test.go b/test/endpoints/bar/bar_arg_with_params_test.go index 61da314ae..92a0dfc18 100644 --- a/test/endpoints/bar/bar_arg_with_params_test.go +++ b/test/endpoints/bar/bar_arg_with_params_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_query_params_test.go b/test/endpoints/bar/bar_arg_with_query_params_test.go index 7e5559bcf..a2260c2ce 100644 --- a/test/endpoints/bar/bar_arg_with_query_params_test.go +++ b/test/endpoints/bar/bar_arg_with_query_params_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_hello_test.go b/test/endpoints/bar/bar_hello_test.go index 76673fee9..9439a7dd0 100644 --- a/test/endpoints/bar/bar_hello_test.go +++ b/test/endpoints/bar/bar_hello_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_metrics_test.go b/test/endpoints/bar/bar_metrics_test.go index 3b75ed7d1..5a78585f7 100644 --- a/test/endpoints/bar/bar_metrics_test.go +++ b/test/endpoints/bar/bar_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_normal_test.go b/test/endpoints/bar/bar_normal_test.go index 8e570faff..d2057159b 100644 --- a/test/endpoints/bar/bar_normal_test.go +++ b/test/endpoints/bar/bar_normal_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_metrics_test.go b/test/endpoints/baz/baz_metrics_test.go index 6b91f6716..8b20f33b1 100644 --- a/test/endpoints/baz/baz_metrics_test.go +++ b/test/endpoints/baz/baz_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_call_test.go b/test/endpoints/baz/baz_simpleservice_method_call_test.go index 4a10c9560..500d15145 100644 --- a/test/endpoints/baz/baz_simpleservice_method_call_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_call_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_compare_test.go b/test/endpoints/baz/baz_simpleservice_method_compare_test.go index b55340de9..8263375a9 100644 --- a/test/endpoints/baz/baz_simpleservice_method_compare_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_compare_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_ping_test.go b/test/endpoints/baz/baz_simpleservice_method_ping_test.go index 2d25c4bc2..1184eeafe 100644 --- a/test/endpoints/baz/baz_simpleservice_method_ping_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_ping_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go b/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go index ae8037bac..23608dc68 100644 --- a/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/clientless/clientless_test.go b/test/endpoints/clientless/clientless_test.go index d67132bde..118b2ad38 100644 --- a/test/endpoints/clientless/clientless_test.go +++ b/test/endpoints/clientless/clientless_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/contacts/save_contacts_test.go b/test/endpoints/contacts/save_contacts_test.go index 8add7579b..67d64e079 100644 --- a/test/endpoints/contacts/save_contacts_test.go +++ b/test/endpoints/contacts/save_contacts_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/googlenow/googlenow_test.go b/test/endpoints/googlenow/googlenow_test.go index 05b395d1e..d72cdc26a 100644 --- a/test/endpoints/googlenow/googlenow_test.go +++ b/test/endpoints/googlenow/googlenow_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/multi/multi_helloA_test.go b/test/endpoints/multi/multi_helloA_test.go index 72aaf3340..86fd19269 100644 --- a/test/endpoints/multi/multi_helloA_test.go +++ b/test/endpoints/multi/multi_helloA_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/multi/multi_helloB_test.go b/test/endpoints/multi/multi_helloB_test.go index 2f0603a16..72cf6a856 100644 --- a/test/endpoints/multi/multi_helloB_test.go +++ b/test/endpoints/multi/multi_helloB_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/tchannel/baz/baz_metrics_test.go b/test/endpoints/tchannel/baz/baz_metrics_test.go index cad87eeb5..ac05d53e3 100644 --- a/test/endpoints/tchannel/baz/baz_metrics_test.go +++ b/test/endpoints/tchannel/baz/baz_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go b/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go index 3e92b2f7c..5c67b8c68 100644 --- a/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go +++ b/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/health_test.go b/test/health_test.go index f45277340..783043fe0 100644 --- a/test/health_test.go +++ b/test/health_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/jaeger_test.go b/test/jaeger_test.go index 645949c44..161916ef5 100644 --- a/test/jaeger_test.go +++ b/test/jaeger_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/bench_gateway/bench_gateway.go b/test/lib/bench_gateway/bench_gateway.go index 39966bf58..97a1a08ff 100644 --- a/test/lib/bench_gateway/bench_gateway.go +++ b/test/lib/bench_gateway/bench_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/sort_metrics.go b/test/lib/sort_metrics.go index ad8e84777..c064ebb98 100644 --- a/test/lib/sort_metrics.go +++ b/test/lib/sort_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_backend/test_http_backend.go b/test/lib/test_backend/test_http_backend.go index 94996d5b5..db017c449 100644 --- a/test/lib/test_backend/test_http_backend.go +++ b/test/lib/test_backend/test_http_backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_backend/test_tchannel_backend.go b/test/lib/test_backend/test_tchannel_backend.go index cfe1e6058..09993f84a 100644 --- a/test/lib/test_backend/test_tchannel_backend.go +++ b/test/lib/test_backend/test_tchannel_backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway.go b/test/lib/test_gateway/test_gateway.go index 97796abc3..6b16867fb 100644 --- a/test/lib/test_gateway/test_gateway.go +++ b/test/lib/test_gateway/test_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway_cover.go b/test/lib/test_gateway/test_gateway_cover.go index e738be6ac..e356fd200 100644 --- a/test/lib/test_gateway/test_gateway_cover.go +++ b/test/lib/test_gateway/test_gateway_cover.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway_process.go b/test/lib/test_gateway/test_gateway_process.go index 422ddb6e3..a1747001d 100644 --- a/test/lib/test_gateway/test_gateway_process.go +++ b/test/lib/test_gateway/test_gateway_process.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_m3_server/test_m3_server.go b/test/lib/test_m3_server/test_m3_server.go index 5f952bb71..0e2b508b6 100644 --- a/test/lib/test_m3_server/test_m3_server.go +++ b/test/lib/test_m3_server/test_m3_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/util/util.go b/test/lib/util/util.go index ba53605da..63affe47b 100644 --- a/test/lib/util/util.go +++ b/test/lib/util/util.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/wait_at_least.go b/test/lib/wait_at_least.go index 6a20e31bb..5d80c851c 100644 --- a/test/lib/wait_at_least.go +++ b/test/lib/wait_at_least.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -28,13 +28,13 @@ import ( // count are done. This avoids sync.WaitGroup panic when count is negative. // // Usage: -// wg := WaitAtLeast{} -// wg.Add(1) -// wg.Wait() -// go func() { -// wg.Done() -// }() // +// wg := WaitAtLeast{} +// wg.Add(1) +// wg.Wait() +// go func() { +// wg.Done() +// }() type WaitAtLeast struct { mutex sync.Mutex wg sync.WaitGroup diff --git a/test/test_circuit_breaker/circuitbreaker_test.go b/test/test_circuit_breaker/circuitbreaker_test.go index feec075a3..4e2c75f9b 100644 --- a/test/test_circuit_breaker/circuitbreaker_test.go +++ b/test/test_circuit_breaker/circuitbreaker_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal From de20b5416721bdd17ccd9f1e6c3bf06e8b645f36 Mon Sep 17 00:00:00 2001 From: agarwalt Date: Tue, 6 Feb 2024 12:54:46 -0800 Subject: [PATCH 3/5] Update license to 2024 --- benchmarks/benchserver/main.go | 2 +- benchmarks/runner/main.go | 2 +- codegen/casing.go | 2 +- codegen/casing_test.go | 2 +- codegen/client.go | 2 +- codegen/client_test.go | 2 +- codegen/gateway.go | 2 +- codegen/gateway_test.go | 2 +- codegen/header_propagate.go | 2 +- codegen/header_propagate_test.go | 2 +- codegen/mockgen.go | 2 +- codegen/module.go | 2 +- codegen/module_system.go | 2 +- codegen/module_test.go | 2 +- codegen/package.go | 2 +- codegen/package_test.go | 2 +- codegen/post_gen_hooks.go | 2 +- codegen/proto.go | 2 +- codegen/proto_test.go | 2 +- codegen/reflect_interface.go | 2 +- codegen/runner/runner.go | 2 +- codegen/service.go | 2 +- codegen/service_test.go | 2 +- codegen/template.go | 2 +- codegen/template_test.go | 2 +- codegen/thrift.go | 2 +- codegen/thrift_test.go | 2 +- codegen/type_converter.go | 2 +- codegen/type_converter_test.go | 2 +- config/config.go | 2 +- config/production.gen.go | 3 +-- fix_glide.go | 2 +- parallelize/parallelize.go | 2 +- parallelize/parallelize_test.go | 2 +- runtime/client_http_request.go | 2 +- runtime/client_http_request_test.go | 2 +- runtime/client_http_request_write_json_test.go | 2 +- runtime/client_http_response.go | 2 +- runtime/client_http_response_test.go | 2 +- runtime/constants.go | 2 +- runtime/context.go | 2 +- runtime/context_test.go | 2 +- runtime/gateway.go | 2 +- runtime/gateway_test.go | 2 +- runtime/grpc_client.go | 2 +- runtime/grpc_client_test.go | 2 +- runtime/http_client.go | 2 +- runtime/http_server.go | 2 +- runtime/jsonwrapper/jsonwrapper.go | 2 +- runtime/middlewares.go | 2 +- runtime/middlewares_tchannel.go | 2 +- runtime/middlewares_tchannel_test.go | 2 +- runtime/middlewares_test.go | 2 +- runtime/options.go | 2 +- runtime/plugins/m3_aggregator.go | 2 +- runtime/router.go | 2 +- runtime/router/router.go | 2 +- runtime/router/router_test.go | 2 +- runtime/router/trie.go | 2 +- runtime/router/trie_test.go | 2 +- runtime/router_test.go | 2 +- runtime/ruleengine/rule_engine.go | 2 +- runtime/ruleengine/rule_engine_test.go | 2 +- runtime/runtime_metrics.go | 2 +- runtime/runtime_metrics_test.go | 2 +- runtime/server_header.go | 2 +- runtime/server_header_test.go | 2 +- runtime/server_http_request.go | 2 +- runtime/server_http_request_test.go | 2 +- runtime/server_http_response.go | 2 +- runtime/server_http_response_easyjson_test.go | 2 +- runtime/server_http_response_test.go | 2 +- runtime/static_config.go | 2 +- runtime/static_config_test.go | 2 +- runtime/tchannel_client.go | 2 +- runtime/tchannel_client_raw.go | 2 +- runtime/tchannel_client_test.go | 2 +- runtime/tchannel_headers.go | 2 +- runtime/tchannel_headers_test.go | 2 +- runtime/tchannel_helpers.go | 2 +- runtime/tchannel_helpers_test.go | 2 +- runtime/tchannel_inbound_call.go | 2 +- runtime/tchannel_interfaces.go | 2 +- runtime/tchannel_logger.go | 2 +- runtime/tchannel_logger_test.go | 2 +- runtime/tchannel_metrics.go | 2 +- runtime/tchannel_metrics_test.go | 2 +- runtime/tchannel_outbound_call.go | 2 +- runtime/tchannel_server.go | 2 +- runtime/tchannel_server_test.go | 2 +- runtime/utils.go | 2 +- runtime/utils_test.go | 2 +- scripts/easy_json/easy_json.go | 2 +- scripts/resolve_i64/main.go | 2 +- scripts/resolve_thrift/main.go | 2 +- test/bootstrap_test.go | 2 +- test/clients/bar/bar_test.go | 2 +- test/clients/baz/baz_test.go | 2 +- test/clients/echo/echo_test.go | 2 +- test/config/config_test.go | 2 +- test/endpoints/bar/bar_arg_with_headers_test.go | 2 +- test/endpoints/bar/bar_arg_with_params_test.go | 2 +- test/endpoints/bar/bar_arg_with_query_params_test.go | 2 +- test/endpoints/bar/bar_hello_test.go | 2 +- test/endpoints/bar/bar_metrics_test.go | 2 +- test/endpoints/bar/bar_normal_test.go | 2 +- test/endpoints/baz/baz_metrics_test.go | 2 +- test/endpoints/baz/baz_simpleservice_method_call_test.go | 2 +- test/endpoints/baz/baz_simpleservice_method_compare_test.go | 2 +- test/endpoints/baz/baz_simpleservice_method_ping_test.go | 2 +- test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go | 2 +- test/endpoints/clientless/clientless_test.go | 2 +- test/endpoints/contacts/save_contacts_test.go | 2 +- test/endpoints/googlenow/googlenow_test.go | 2 +- test/endpoints/multi/multi_helloA_test.go | 2 +- test/endpoints/multi/multi_helloB_test.go | 2 +- test/endpoints/tchannel/baz/baz_metrics_test.go | 2 +- .../tchannel/baz/baz_simpleservice_method_call_test.go | 2 +- test/health_test.go | 2 +- test/jaeger_test.go | 2 +- test/lib/bench_gateway/bench_gateway.go | 2 +- test/lib/sort_metrics.go | 2 +- test/lib/test_backend/test_http_backend.go | 2 +- test/lib/test_backend/test_tchannel_backend.go | 2 +- test/lib/test_gateway/test_gateway.go | 2 +- test/lib/test_gateway/test_gateway_cover.go | 2 +- test/lib/test_gateway/test_gateway_process.go | 2 +- test/lib/test_m3_server/test_m3_server.go | 2 +- test/lib/util/util.go | 2 +- test/lib/wait_at_least.go | 2 +- test/test_circuit_breaker/circuitbreaker_test.go | 2 +- 131 files changed, 131 insertions(+), 132 deletions(-) diff --git a/benchmarks/benchserver/main.go b/benchmarks/benchserver/main.go index 563547c55..55740c41e 100644 --- a/benchmarks/benchserver/main.go +++ b/benchmarks/benchserver/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/benchmarks/runner/main.go b/benchmarks/runner/main.go index 1f682a0db..c45ba72e1 100644 --- a/benchmarks/runner/main.go +++ b/benchmarks/runner/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/casing.go b/codegen/casing.go index 1ca6fee54..64cfe349f 100644 --- a/codegen/casing.go +++ b/codegen/casing.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/casing_test.go b/codegen/casing_test.go index 67d185a45..390b6e848 100644 --- a/codegen/casing_test.go +++ b/codegen/casing_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/client.go b/codegen/client.go index faec60798..a959278e1 100644 --- a/codegen/client.go +++ b/codegen/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/client_test.go b/codegen/client_test.go index 9952c0e69..da3402a76 100644 --- a/codegen/client_test.go +++ b/codegen/client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/gateway.go b/codegen/gateway.go index 7d5e5775a..0e738a727 100644 --- a/codegen/gateway.go +++ b/codegen/gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/gateway_test.go b/codegen/gateway_test.go index e5cb071d1..83996beab 100644 --- a/codegen/gateway_test.go +++ b/codegen/gateway_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/header_propagate.go b/codegen/header_propagate.go index 7e74635b9..eb879b27b 100644 --- a/codegen/header_propagate.go +++ b/codegen/header_propagate.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/header_propagate_test.go b/codegen/header_propagate_test.go index 458212402..006f5c7e8 100644 --- a/codegen/header_propagate_test.go +++ b/codegen/header_propagate_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/mockgen.go b/codegen/mockgen.go index 12c73e018..6dbebbc31 100644 --- a/codegen/mockgen.go +++ b/codegen/mockgen.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module.go b/codegen/module.go index 356f2a8b1..65b649770 100644 --- a/codegen/module.go +++ b/codegen/module.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module_system.go b/codegen/module_system.go index 3f540e51f..a9ed09e28 100644 --- a/codegen/module_system.go +++ b/codegen/module_system.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/module_test.go b/codegen/module_test.go index 498e23431..084e355e9 100644 --- a/codegen/module_test.go +++ b/codegen/module_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/package.go b/codegen/package.go index 5ce91b71a..93e9011a3 100644 --- a/codegen/package.go +++ b/codegen/package.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/package_test.go b/codegen/package_test.go index 181e8170e..6d300c013 100644 --- a/codegen/package_test.go +++ b/codegen/package_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/post_gen_hooks.go b/codegen/post_gen_hooks.go index 428b097cb..58d69da5d 100644 --- a/codegen/post_gen_hooks.go +++ b/codegen/post_gen_hooks.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/proto.go b/codegen/proto.go index 262f7a8e9..28e5cbb0a 100644 --- a/codegen/proto.go +++ b/codegen/proto.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/proto_test.go b/codegen/proto_test.go index d1ce43e53..ce5d1751c 100644 --- a/codegen/proto_test.go +++ b/codegen/proto_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/reflect_interface.go b/codegen/reflect_interface.go index 1b097d748..f22893296 100644 --- a/codegen/reflect_interface.go +++ b/codegen/reflect_interface.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/runner/runner.go b/codegen/runner/runner.go index 4d1136aa1..56beb6d65 100644 --- a/codegen/runner/runner.go +++ b/codegen/runner/runner.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/service.go b/codegen/service.go index 9a8499669..8b6ae6014 100644 --- a/codegen/service.go +++ b/codegen/service.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/service_test.go b/codegen/service_test.go index 797daf03c..69503ab44 100644 --- a/codegen/service_test.go +++ b/codegen/service_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/template.go b/codegen/template.go index ce879803d..876821a89 100644 --- a/codegen/template.go +++ b/codegen/template.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/template_test.go b/codegen/template_test.go index 93e36d46c..7c3f0bddb 100644 --- a/codegen/template_test.go +++ b/codegen/template_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/thrift.go b/codegen/thrift.go index 00674511b..5eda356e1 100644 --- a/codegen/thrift.go +++ b/codegen/thrift.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/thrift_test.go b/codegen/thrift_test.go index d16826095..436224450 100644 --- a/codegen/thrift_test.go +++ b/codegen/thrift_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/type_converter.go b/codegen/type_converter.go index 6839d4f96..76a05f469 100644 --- a/codegen/type_converter.go +++ b/codegen/type_converter.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/codegen/type_converter_test.go b/codegen/type_converter_test.go index a3c4dd045..a3a9a56be 100644 --- a/codegen/type_converter_test.go +++ b/codegen/type_converter_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/config/config.go b/config/config.go index 0caf6eeb3..f0b93a432 100644 --- a/config/config.go +++ b/config/config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/config/production.gen.go b/config/production.gen.go index 887bf3c58..bd3538538 100644 --- a/config/production.gen.go +++ b/config/production.gen.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -250,4 +250,3 @@ func _filePath(dir, name string) string { cannonicalName := strings.Replace(name, "\\", "/", -1) return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) } - diff --git a/fix_glide.go b/fix_glide.go index 937f87fa9..bc3ec7230 100644 --- a/fix_glide.go +++ b/fix_glide.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/parallelize/parallelize.go b/parallelize/parallelize.go index 05675c514..d4c6e02fe 100644 --- a/parallelize/parallelize.go +++ b/parallelize/parallelize.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/parallelize/parallelize_test.go b/parallelize/parallelize_test.go index 6525af48f..e55a48968 100644 --- a/parallelize/parallelize_test.go +++ b/parallelize/parallelize_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request.go b/runtime/client_http_request.go index 5b1174091..51e8f188e 100644 --- a/runtime/client_http_request.go +++ b/runtime/client_http_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request_test.go b/runtime/client_http_request_test.go index c8bfe8f7a..78ef6ba78 100644 --- a/runtime/client_http_request_test.go +++ b/runtime/client_http_request_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_request_write_json_test.go b/runtime/client_http_request_write_json_test.go index a53f9662b..5ad0d0700 100644 --- a/runtime/client_http_request_write_json_test.go +++ b/runtime/client_http_request_write_json_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_response.go b/runtime/client_http_response.go index 072302990..88e9bbd39 100644 --- a/runtime/client_http_response.go +++ b/runtime/client_http_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/client_http_response_test.go b/runtime/client_http_response_test.go index b8bdc2ee9..ac32e8d96 100644 --- a/runtime/client_http_response_test.go +++ b/runtime/client_http_response_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/constants.go b/runtime/constants.go index 14bb3b692..707437f65 100644 --- a/runtime/constants.go +++ b/runtime/constants.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/context.go b/runtime/context.go index 9782ed901..f00aa3471 100644 --- a/runtime/context.go +++ b/runtime/context.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/context_test.go b/runtime/context_test.go index 866bb91a5..badcb59d5 100644 --- a/runtime/context_test.go +++ b/runtime/context_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/gateway.go b/runtime/gateway.go index 01fe5b07e..d8af230f6 100644 --- a/runtime/gateway.go +++ b/runtime/gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/gateway_test.go b/runtime/gateway_test.go index 880a204aa..4219241c5 100644 --- a/runtime/gateway_test.go +++ b/runtime/gateway_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/grpc_client.go b/runtime/grpc_client.go index fa70ab18a..4b0b2eb7a 100644 --- a/runtime/grpc_client.go +++ b/runtime/grpc_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/grpc_client_test.go b/runtime/grpc_client_test.go index a3d5916a8..b6022847f 100644 --- a/runtime/grpc_client_test.go +++ b/runtime/grpc_client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/http_client.go b/runtime/http_client.go index e2c572c20..1cbf4dc35 100644 --- a/runtime/http_client.go +++ b/runtime/http_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/http_server.go b/runtime/http_server.go index 61db56569..2b2343834 100644 --- a/runtime/http_server.go +++ b/runtime/http_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/jsonwrapper/jsonwrapper.go b/runtime/jsonwrapper/jsonwrapper.go index c295ba5ad..c5d315ceb 100644 --- a/runtime/jsonwrapper/jsonwrapper.go +++ b/runtime/jsonwrapper/jsonwrapper.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares.go b/runtime/middlewares.go index 2e5a4c568..509f0efed 100644 --- a/runtime/middlewares.go +++ b/runtime/middlewares.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_tchannel.go b/runtime/middlewares_tchannel.go index f7b9b2bfc..33c9a5e37 100644 --- a/runtime/middlewares_tchannel.go +++ b/runtime/middlewares_tchannel.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_tchannel_test.go b/runtime/middlewares_tchannel_test.go index ca1e9bbf0..8f619c2ea 100644 --- a/runtime/middlewares_tchannel_test.go +++ b/runtime/middlewares_tchannel_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/middlewares_test.go b/runtime/middlewares_test.go index f81c82f35..8ce7e84dc 100644 --- a/runtime/middlewares_test.go +++ b/runtime/middlewares_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/options.go b/runtime/options.go index 6c6d5f663..b0c1e3f25 100644 --- a/runtime/options.go +++ b/runtime/options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/plugins/m3_aggregator.go b/runtime/plugins/m3_aggregator.go index 541dbc8c9..d0f36904c 100644 --- a/runtime/plugins/m3_aggregator.go +++ b/runtime/plugins/m3_aggregator.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router.go b/runtime/router.go index 52b294e5e..d025129bb 100644 --- a/runtime/router.go +++ b/runtime/router.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/router.go b/runtime/router/router.go index 8abfc7b4f..7eccbef8a 100644 --- a/runtime/router/router.go +++ b/runtime/router/router.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/router_test.go b/runtime/router/router_test.go index 01328de01..d0cb438fc 100644 --- a/runtime/router/router_test.go +++ b/runtime/router/router_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/trie.go b/runtime/router/trie.go index d32122789..d3a6e3bfe 100644 --- a/runtime/router/trie.go +++ b/runtime/router/trie.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router/trie_test.go b/runtime/router/trie_test.go index 5bad1bbb3..9458dc194 100644 --- a/runtime/router/trie_test.go +++ b/runtime/router/trie_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/router_test.go b/runtime/router_test.go index 3850cf191..bbc8ca7a3 100644 --- a/runtime/router_test.go +++ b/runtime/router_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/ruleengine/rule_engine.go b/runtime/ruleengine/rule_engine.go index 5c12448f2..a1806a3ea 100644 --- a/runtime/ruleengine/rule_engine.go +++ b/runtime/ruleengine/rule_engine.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/ruleengine/rule_engine_test.go b/runtime/ruleengine/rule_engine_test.go index 8397a450a..9e36a49a9 100644 --- a/runtime/ruleengine/rule_engine_test.go +++ b/runtime/ruleengine/rule_engine_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/runtime_metrics.go b/runtime/runtime_metrics.go index d571b06ea..8bd143bda 100644 --- a/runtime/runtime_metrics.go +++ b/runtime/runtime_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/runtime_metrics_test.go b/runtime/runtime_metrics_test.go index 529f45997..f188e6483 100644 --- a/runtime/runtime_metrics_test.go +++ b/runtime/runtime_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_header.go b/runtime/server_header.go index 6d26d505e..c4d3a7d38 100644 --- a/runtime/server_header.go +++ b/runtime/server_header.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_header_test.go b/runtime/server_header_test.go index b3fef2638..ac45fb9cb 100644 --- a/runtime/server_header_test.go +++ b/runtime/server_header_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_request.go b/runtime/server_http_request.go index b59cb29bd..d5a2ba428 100644 --- a/runtime/server_http_request.go +++ b/runtime/server_http_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_request_test.go b/runtime/server_http_request_test.go index e6e64a475..0a32babbe 100644 --- a/runtime/server_http_request_test.go +++ b/runtime/server_http_request_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response.go b/runtime/server_http_response.go index 629dde762..18de37fc9 100644 --- a/runtime/server_http_response.go +++ b/runtime/server_http_response.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response_easyjson_test.go b/runtime/server_http_response_easyjson_test.go index abbcfc731..90e1ef937 100644 --- a/runtime/server_http_response_easyjson_test.go +++ b/runtime/server_http_response_easyjson_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/server_http_response_test.go b/runtime/server_http_response_test.go index 8306a039f..2026dce14 100644 --- a/runtime/server_http_response_test.go +++ b/runtime/server_http_response_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/static_config.go b/runtime/static_config.go index 657a3e32b..82d1ae9a5 100644 --- a/runtime/static_config.go +++ b/runtime/static_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/static_config_test.go b/runtime/static_config_test.go index 4c007249c..d0375279c 100644 --- a/runtime/static_config_test.go +++ b/runtime/static_config_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client.go b/runtime/tchannel_client.go index 7af25bc97..906d8a774 100644 --- a/runtime/tchannel_client.go +++ b/runtime/tchannel_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client_raw.go b/runtime/tchannel_client_raw.go index 519a8c003..7391fc6ed 100644 --- a/runtime/tchannel_client_raw.go +++ b/runtime/tchannel_client_raw.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_client_test.go b/runtime/tchannel_client_test.go index 12742cf7a..f5c304030 100644 --- a/runtime/tchannel_client_test.go +++ b/runtime/tchannel_client_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_headers.go b/runtime/tchannel_headers.go index ade475993..cfb3a8724 100644 --- a/runtime/tchannel_headers.go +++ b/runtime/tchannel_headers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_headers_test.go b/runtime/tchannel_headers_test.go index 5c4ca3a04..fa16fa700 100644 --- a/runtime/tchannel_headers_test.go +++ b/runtime/tchannel_headers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_helpers.go b/runtime/tchannel_helpers.go index beb112174..6c653e82d 100644 --- a/runtime/tchannel_helpers.go +++ b/runtime/tchannel_helpers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_helpers_test.go b/runtime/tchannel_helpers_test.go index 487aa695b..77cfca352 100644 --- a/runtime/tchannel_helpers_test.go +++ b/runtime/tchannel_helpers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_inbound_call.go b/runtime/tchannel_inbound_call.go index 9b26c65fc..e6177f0f9 100644 --- a/runtime/tchannel_inbound_call.go +++ b/runtime/tchannel_inbound_call.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_interfaces.go b/runtime/tchannel_interfaces.go index 4d6be538e..780b78ec5 100644 --- a/runtime/tchannel_interfaces.go +++ b/runtime/tchannel_interfaces.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_logger.go b/runtime/tchannel_logger.go index f4d041acb..cf4a1a2f0 100644 --- a/runtime/tchannel_logger.go +++ b/runtime/tchannel_logger.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_logger_test.go b/runtime/tchannel_logger_test.go index f4623cd58..2a371b2d0 100644 --- a/runtime/tchannel_logger_test.go +++ b/runtime/tchannel_logger_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_metrics.go b/runtime/tchannel_metrics.go index 3b889cb2f..77df942ee 100644 --- a/runtime/tchannel_metrics.go +++ b/runtime/tchannel_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_metrics_test.go b/runtime/tchannel_metrics_test.go index 572ed240e..2a642dba7 100644 --- a/runtime/tchannel_metrics_test.go +++ b/runtime/tchannel_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_outbound_call.go b/runtime/tchannel_outbound_call.go index 61cf3f6f4..7d1689a5e 100644 --- a/runtime/tchannel_outbound_call.go +++ b/runtime/tchannel_outbound_call.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_server.go b/runtime/tchannel_server.go index f359ba654..3a2b5f541 100644 --- a/runtime/tchannel_server.go +++ b/runtime/tchannel_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/tchannel_server_test.go b/runtime/tchannel_server_test.go index 571872581..15d363cce 100644 --- a/runtime/tchannel_server_test.go +++ b/runtime/tchannel_server_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/utils.go b/runtime/utils.go index d4cda7b7c..3f3351e53 100644 --- a/runtime/utils.go +++ b/runtime/utils.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/runtime/utils_test.go b/runtime/utils_test.go index 7742b71a4..f1ad9a10d 100644 --- a/runtime/utils_test.go +++ b/runtime/utils_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/easy_json/easy_json.go b/scripts/easy_json/easy_json.go index d8aa54483..f2e362d5c 100644 --- a/scripts/easy_json/easy_json.go +++ b/scripts/easy_json/easy_json.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/resolve_i64/main.go b/scripts/resolve_i64/main.go index 83a6b0c0e..bcea46f29 100644 --- a/scripts/resolve_i64/main.go +++ b/scripts/resolve_i64/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/scripts/resolve_thrift/main.go b/scripts/resolve_thrift/main.go index fbfb574d7..be1d840a2 100644 --- a/scripts/resolve_thrift/main.go +++ b/scripts/resolve_thrift/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/bootstrap_test.go b/test/bootstrap_test.go index 7ab426a05..3f8af6a30 100644 --- a/test/bootstrap_test.go +++ b/test/bootstrap_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/bar/bar_test.go b/test/clients/bar/bar_test.go index 0e00d5f4f..f666efba5 100644 --- a/test/clients/bar/bar_test.go +++ b/test/clients/bar/bar_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/baz/baz_test.go b/test/clients/baz/baz_test.go index dddfb458a..53bb61ce7 100644 --- a/test/clients/baz/baz_test.go +++ b/test/clients/baz/baz_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/clients/echo/echo_test.go b/test/clients/echo/echo_test.go index ff8114b86..bcb1459f6 100644 --- a/test/clients/echo/echo_test.go +++ b/test/clients/echo/echo_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/config/config_test.go b/test/config/config_test.go index c4597a1eb..757d5e5da 100644 --- a/test/config/config_test.go +++ b/test/config/config_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_headers_test.go b/test/endpoints/bar/bar_arg_with_headers_test.go index cb42ad142..532e913a2 100644 --- a/test/endpoints/bar/bar_arg_with_headers_test.go +++ b/test/endpoints/bar/bar_arg_with_headers_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_params_test.go b/test/endpoints/bar/bar_arg_with_params_test.go index 92a0dfc18..20ca63129 100644 --- a/test/endpoints/bar/bar_arg_with_params_test.go +++ b/test/endpoints/bar/bar_arg_with_params_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_arg_with_query_params_test.go b/test/endpoints/bar/bar_arg_with_query_params_test.go index a2260c2ce..2334caa5b 100644 --- a/test/endpoints/bar/bar_arg_with_query_params_test.go +++ b/test/endpoints/bar/bar_arg_with_query_params_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_hello_test.go b/test/endpoints/bar/bar_hello_test.go index 9439a7dd0..b04dec79f 100644 --- a/test/endpoints/bar/bar_hello_test.go +++ b/test/endpoints/bar/bar_hello_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_metrics_test.go b/test/endpoints/bar/bar_metrics_test.go index 5a78585f7..75339fabc 100644 --- a/test/endpoints/bar/bar_metrics_test.go +++ b/test/endpoints/bar/bar_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/bar/bar_normal_test.go b/test/endpoints/bar/bar_normal_test.go index d2057159b..db5c18ace 100644 --- a/test/endpoints/bar/bar_normal_test.go +++ b/test/endpoints/bar/bar_normal_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_metrics_test.go b/test/endpoints/baz/baz_metrics_test.go index 8b20f33b1..0965275b7 100644 --- a/test/endpoints/baz/baz_metrics_test.go +++ b/test/endpoints/baz/baz_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_call_test.go b/test/endpoints/baz/baz_simpleservice_method_call_test.go index 500d15145..33da9bf8f 100644 --- a/test/endpoints/baz/baz_simpleservice_method_call_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_call_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_compare_test.go b/test/endpoints/baz/baz_simpleservice_method_compare_test.go index 8263375a9..e7f452184 100644 --- a/test/endpoints/baz/baz_simpleservice_method_compare_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_compare_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_ping_test.go b/test/endpoints/baz/baz_simpleservice_method_ping_test.go index 1184eeafe..347d04646 100644 --- a/test/endpoints/baz/baz_simpleservice_method_ping_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_ping_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go b/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go index 23608dc68..df1174973 100644 --- a/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go +++ b/test/endpoints/baz/baz_simpleservice_method_silly_noop_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/clientless/clientless_test.go b/test/endpoints/clientless/clientless_test.go index 118b2ad38..0cdb2d12f 100644 --- a/test/endpoints/clientless/clientless_test.go +++ b/test/endpoints/clientless/clientless_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/contacts/save_contacts_test.go b/test/endpoints/contacts/save_contacts_test.go index 67d64e079..796bc489d 100644 --- a/test/endpoints/contacts/save_contacts_test.go +++ b/test/endpoints/contacts/save_contacts_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/googlenow/googlenow_test.go b/test/endpoints/googlenow/googlenow_test.go index d72cdc26a..1cb6aea5c 100644 --- a/test/endpoints/googlenow/googlenow_test.go +++ b/test/endpoints/googlenow/googlenow_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/multi/multi_helloA_test.go b/test/endpoints/multi/multi_helloA_test.go index 86fd19269..b6eafc151 100644 --- a/test/endpoints/multi/multi_helloA_test.go +++ b/test/endpoints/multi/multi_helloA_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/multi/multi_helloB_test.go b/test/endpoints/multi/multi_helloB_test.go index 72cf6a856..82092c24d 100644 --- a/test/endpoints/multi/multi_helloB_test.go +++ b/test/endpoints/multi/multi_helloB_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/tchannel/baz/baz_metrics_test.go b/test/endpoints/tchannel/baz/baz_metrics_test.go index ac05d53e3..1d7605ccc 100644 --- a/test/endpoints/tchannel/baz/baz_metrics_test.go +++ b/test/endpoints/tchannel/baz/baz_metrics_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go b/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go index 5c67b8c68..0a0ca236a 100644 --- a/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go +++ b/test/endpoints/tchannel/baz/baz_simpleservice_method_call_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/health_test.go b/test/health_test.go index 783043fe0..2af6eb0ff 100644 --- a/test/health_test.go +++ b/test/health_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/jaeger_test.go b/test/jaeger_test.go index 161916ef5..0dbb6a744 100644 --- a/test/jaeger_test.go +++ b/test/jaeger_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/bench_gateway/bench_gateway.go b/test/lib/bench_gateway/bench_gateway.go index 97a1a08ff..4316d2678 100644 --- a/test/lib/bench_gateway/bench_gateway.go +++ b/test/lib/bench_gateway/bench_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/sort_metrics.go b/test/lib/sort_metrics.go index c064ebb98..e1bd1825a 100644 --- a/test/lib/sort_metrics.go +++ b/test/lib/sort_metrics.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_backend/test_http_backend.go b/test/lib/test_backend/test_http_backend.go index db017c449..8e49e5aea 100644 --- a/test/lib/test_backend/test_http_backend.go +++ b/test/lib/test_backend/test_http_backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_backend/test_tchannel_backend.go b/test/lib/test_backend/test_tchannel_backend.go index 09993f84a..fe74f8808 100644 --- a/test/lib/test_backend/test_tchannel_backend.go +++ b/test/lib/test_backend/test_tchannel_backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway.go b/test/lib/test_gateway/test_gateway.go index 6b16867fb..38b3f4890 100644 --- a/test/lib/test_gateway/test_gateway.go +++ b/test/lib/test_gateway/test_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway_cover.go b/test/lib/test_gateway/test_gateway_cover.go index e356fd200..b2ff2a41f 100644 --- a/test/lib/test_gateway/test_gateway_cover.go +++ b/test/lib/test_gateway/test_gateway_cover.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_gateway/test_gateway_process.go b/test/lib/test_gateway/test_gateway_process.go index a1747001d..030dbe28b 100644 --- a/test/lib/test_gateway/test_gateway_process.go +++ b/test/lib/test_gateway/test_gateway_process.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/test_m3_server/test_m3_server.go b/test/lib/test_m3_server/test_m3_server.go index 0e2b508b6..6c39e5530 100644 --- a/test/lib/test_m3_server/test_m3_server.go +++ b/test/lib/test_m3_server/test_m3_server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/util/util.go b/test/lib/util/util.go index 63affe47b..8041f902b 100644 --- a/test/lib/util/util.go +++ b/test/lib/util/util.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/lib/wait_at_least.go b/test/lib/wait_at_least.go index 5d80c851c..c0f5ecd8a 100644 --- a/test/lib/wait_at_least.go +++ b/test/lib/wait_at_least.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/test/test_circuit_breaker/circuitbreaker_test.go b/test/test_circuit_breaker/circuitbreaker_test.go index 4e2c75f9b..e59748878 100644 --- a/test/test_circuit_breaker/circuitbreaker_test.go +++ b/test/test_circuit_breaker/circuitbreaker_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2024Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal From c016fea7872258435401793dd1cd6f87fa4fa737 Mon Sep 17 00:00:00 2001 From: agarwalt Date: Tue, 6 Feb 2024 13:09:38 -0800 Subject: [PATCH 4/5] Fix codegen license --- codegen/method.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/method.go b/codegen/method.go index 2b6212b28..110e27429 100644 --- a/codegen/method.go +++ b/codegen/method.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Uber Technologies, Inc. +// Copyright (c) 2024 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal From 7198b8abdd4f98fac35d513cdbb5a63788f0dc1c Mon Sep 17 00:00:00 2001 From: agarwalt Date: Tue, 6 Feb 2024 13:20:21 -0800 Subject: [PATCH 5/5] remove constant --- runtime/constants.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/runtime/constants.go b/runtime/constants.go index 707437f65..5a7d05e2a 100644 --- a/runtime/constants.go +++ b/runtime/constants.go @@ -77,9 +77,6 @@ const ( ClientResponseDurationKey = "client.response.duration" // ClientTypeKey denotes the type of the client, usually http / tchannel / client-less / custom ClientTypeKey = "client.type" - - //RPC - ClientRPCCode = "rpc$-application-error-name" ) var knownMetrics = []string{