8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d68cb commit fafac78Copy full SHA for fafac78
exporters/stdout/stdoutmetric/example_test.go
@@ -257,8 +257,8 @@ func Example() {
257
// 6,
258
// 0
259
// ],
260
- // "Min": {},
261
- // "Max": {},
+ // "Min": null,
+ // "Max": null,
262
// "Sum": 57
263
// }
264
sdk/metric/metricdata/data.go
@@ -215,7 +215,7 @@ type Extrema[N int64 | float64] struct {
215
// MarshalText converts the Extrema value to text.
216
func (e Extrema[N]) MarshalText() ([]byte, error) {
217
if !e.valid {
218
- return nil, nil
+ return json.Marshal(nil)
219
}
220
return json.Marshal(e.value)
221
0 commit comments