mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Merge branch 'master' into version/4
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- Format New Relic and OpenTelemetry metadata values that implement the `fmt.Stringer` interface as strings.
|
||||||
|
|
||||||
|
## [3.30.0] - 2025-09-17
|
||||||
### Added
|
### Added
|
||||||
- Add [IMGPROXY_GRACEFUL_STOP_TIMEOUT](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_GRACEFUL_STOP_TIMEOUT) config.
|
- Add [IMGPROXY_GRACEFUL_STOP_TIMEOUT](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_GRACEFUL_STOP_TIMEOUT) config.
|
||||||
- (pro) Add [color_profile](https://docs.imgproxy.net/latest/usage/processing#color-profile) processing option and [IMGPROXY_COLOR_PROFILES_DIR](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_COLOR_PROFILES_DIR) config.
|
- (pro) Add [color_profile](https://docs.imgproxy.net/latest/usage/processing#color-profile) processing option and [IMGPROXY_COLOR_PROFILES_DIR](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_COLOR_PROFILES_DIR) config.
|
||||||
|
@@ -146,6 +146,11 @@ func setMetadata(span attributable, key string, value interface{}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if stringer, ok := value.(fmt.Stringer); ok {
|
||||||
|
span.AddAttribute(key, stringer.String())
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
rv := reflect.ValueOf(value)
|
rv := reflect.ValueOf(value)
|
||||||
switch {
|
switch {
|
||||||
case rv.Kind() == reflect.String || rv.Kind() == reflect.Bool:
|
case rv.Kind() == reflect.String || rv.Kind() == reflect.Bool:
|
||||||
|
@@ -431,6 +431,11 @@ func setMetadata(span trace.Span, key string, value interface{}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if stringer, ok := value.(fmt.Stringer); ok {
|
||||||
|
span.SetAttributes(attribute.String(key, stringer.String()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
rv := reflect.ValueOf(value)
|
rv := reflect.ValueOf(value)
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
package version
|
package version
|
||||||
|
|
||||||
const Version = "3.29.1"
|
const Version = "3.30.0"
|
||||||
|
Reference in New Issue
Block a user