-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing a race condition where some labels are miss applied
- Loading branch information
Showing
3 changed files
with
155 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package prom | ||
|
||
import ( | ||
"github.com/json-iterator/go" | ||
) | ||
|
||
// fast JSON encoding | ||
var json = jsoniter.ConfigFastest | ||
|
||
// jsonSorted is fast, but still sorts keys | ||
var jsonSorted = jsoniter.Config{ | ||
IndentionStep: 4, | ||
EscapeHTML: false, | ||
SortMapKeys: true, | ||
ValidateJsonRawMessage: false, | ||
}.Froze() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters