Sean Liao
1d8824889c
all: match go conventions for generated code ( #6731 )
...
Go documents the following regex pattern
for identifying generated code:
^// Code generated .* DO NOT EDIT\.$
This convention is used go APIs and tooling.
References:
https://pkg.go.dev/go/ast#IsGenerated
https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source
Co-authored-by: Damien Mathieu <42@dmathieu.com >
2025-05-05 09:41:12 +02:00
Damien Mathieu
a3c512aa95
Fix gosec overflow alerts ( #5799 )
...
To allow the golangci-lint upgrade in #5796 .
---------
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2024-09-13 09:11:50 +02:00
Robert Pająk
7dea232a46
[chore] Simplify the license header ( #4987 )
2024-02-29 07:05:28 +01:00
Tyler Yahn
b7f634a4fe
Decouple use of otel/internal/internaltest ( #4424 )
...
* Add internaltest templates
* Generate internaltest using gotmpl
* Generate the sdk/internal/internaltest pkg
* Use sdk/internal/internaltest in sdk module
* Generate exporters/jaeger/internal/internaltest pkg
* Use exporters/jaeger/internal/internaltest in jaeger exporter
* Generate the exporters/zipkin/internal/internaltest pkg
* Use local internaltest in zipkin exporter
* Fix import path name in trace test
2023-08-09 09:15:47 +02:00
Mikhail Mazurskiy
f95bee22b9
Use strings.Cut() instead of string.SplitN() ( #4049 )
...
strings.Cut() generates less garbage as it does not allocate the slice to hold parts.
2023-05-17 09:28:44 -07:00
Pablo Baeyens
19294aab4c
Add vanity imports to internal packages ( #2280 )
...
* `porto -w --include-internal .`
* Bump `porto` to 0.4.0 and include internal files
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2021-10-29 09:34:37 -07:00
Tyler Yahn
7f10ef72d4
Remove propagation testing types from oteltest ( #2116 )
...
* Add propagationtest package
* Update internal/global to use propagationtest
* Move propagationtest into internal
2021-07-22 08:16:57 -07:00