Tyler Yahn
319cb3a3be
Deprecate the otlptrace/internal packages ( #4425 )
...
* Stop generating otlptrace/internal and deprecate
* Remove the tracetransform templates
They are no longer used.
* Add change stub to changelog
* Add PR number to changelog
2023-08-10 14:25:53 -07:00
Tyler Yahn
4928282877
Decouple otlp/otlptrace/internal from otlp/internal using gotmpl ( #4397 )
...
* Add gotmpl
* Add shared retry pkg
* Use template retry pkg in otlpconfig
* Update license-check to look at first 4 lines
* Template out all otlptrace internal
* Add envconfig pkg to otlptrace/internal
* Generate otlptrace/internal/otlpconfig
* Revert templatizing otlptracegrpc
* Add changes to changelog
* Fix lint
---------
Co-authored-by: Robert Pająk <pellared@hotmail.com >
2023-08-02 12:28:35 -07:00
Sean Liao
2694dbfdba
add new env config options for OTLP exporter ( #3363 )
...
* add new env config options for OTLP exporter
* error path
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
* add error logging
* add missing early returns
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
2022-11-08 10:53:59 -08:00
Håvard Anda Estensen
eb55e60d3b
Replace ioutil with io and os ( #3058 )
2022-08-03 14:45:05 -07:00
Tyler Yahn
1f5b159161
Use already enabled revive linter and add depguard ( #2883 )
...
* Refactor golangci-lint conf
Order settings alphabetically.
* Add revive settings to golangci conf
* Check blank imports
* Check bool-literal-in-expr
* Check constant-logical-expr
* Check context-as-argument
* Check context-key-type
* Check deep-exit
* Check defer
* Check dot-imports
* Check duplicated-imports
* Check early-return
* Check empty-block
* Check empty-lines
* Check error-naming
* Check error-return
* Check error-strings
* Check errorf
* Stop ignoring context first arg in tests
* Check exported comments
* Check flag-parameter
* Check identical branches
* Check if-return
* Check increment-decrement
* Check indent-error-flow
* Check deny list of go imports
* Check import shadowing
* Check package comments
* Check range
* Check range val in closure
* Check range val address
* Check redefines builtin id
* Check string-format
* Check struct tag
* Check superfluous else
* Check time equal
* Check var naming
* Check var declaration
* Check unconditional recursion
* Check unexported return
* Check unhandled errors
* Check unnecessary stmt
* Check unnecessary break
* Check waitgroup by value
* Exclude deep-exit check in example*_test.go files
2022-05-19 15:15:07 -05:00
Tyler Yahn
fdfc821bac
Add godot linter to golangci ( #2845 )
...
Comment should be complete sentences outside of lists with sentence
fragments. This adds the godot linter to check these complete sentences
end with punctuation. If they do not, running fix will append a period.
2022-04-25 13:22:49 -07:00
Damien Mathieu
24414b2455
Refactor OTLP exporter env config to be shared across all exporters ( #2608 )
...
* setup global envconfig package for otlp exporter
* use envconfig in otlpmetrics package
* fix lint
* add changelog entry
* Update exporters/otlp/internal/envconfig/envconfig.go
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com >
* fix lint
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com >
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
2022-03-02 21:07:06 -05:00
Tyler Yahn
bd817df68c
Change Options to accept type not pointer ( #2558 )
...
* Change trace options to accept type not pointer
Add benchmark to show allocation improvement.
* Update CONTRIBUTING.md guidelines
* Update all Option iface
* Fix grammar in CONTRIBUTING
2022-02-01 15:51:23 -06:00
Tyler Yahn
931266483d
Fix per-signal endpoint parsing in OTLP exporters ( #2433 )
...
* Fix per-signal endpoint parsing in otlptrace
* Add distinguishing non-per-signal env var value
* Fix per-signal endpoint parsing in otlpmetric
* Add changes to changelog
* Use else if to prevent unnecessary work
* Add spec link to otlptrace README
2021-12-09 10:40:30 -08:00
Tyler Yahn
b177541239
Use host root CA set by default for OTLP exporter ( #2432 )
...
* Use host CA set by default for otlptrace
* Remove test for invalid default certs
* Default to host CA for otlpmetric
* Add changes to changelog
* Update CHANGELOG.md
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
2021-12-09 08:44:20 -08: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
Tõnis Tiigi
80ca2b1ea1
otlp: mark unix endpoints to work without transport security ( #2001 )
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2021-06-15 14:10:52 -07:00
Gustavo Silva Paiva
377f7ce402
remove WithTrace* options from otlptrace exporters ( #1997 )
...
* remove WithTrace* options from otlptrace exporters
* remove old WithTraces methods usage
2021-06-11 18:27:38 -04:00
Gustavo Silva Paiva
dfe2b6f143
OTLP trace gRPC exporter ( #1922 )
...
* draft: otlp exporter trace grpc
* address comments and improve usability
* change passthrough example to go 1.15
* code cleanups
* copy dependencies to `otlptrace`
* fix typo on makefile
* address comments
* update code with latest changes
* fix comments
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2021-05-27 13:47:01 -07:00