or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
golangpkg:golang/github.com/prometheus/client_model@v0.6.2
tile.json

tessl/golang-github-com-prometheus--client-model

tessl install tessl/golang-github-com-prometheus--client-model@0.6.1

Data model artifacts for Prometheus

Agent Success

Agent success rate when using this tile

93%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.13x

Baseline

Agent success rate without this tile

82%

rubric.jsonevals/scenario-10/

{
  "context": "Evaluates whether the solution builds and manipulates metric labels using github.com/prometheus/client_model/go label pairs instead of custom structs. Checks pointer setup and accessor-driven ordering, filtering, and map conversion to align with the spec.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "LabelPair slice",
      "description": "BuildLabels returns and propagates a slice of the dependency's label pair messages (e.g., []*clientmodel.LabelPair) instead of custom structs.",
      "max_score": 30
    },
    {
      "name": "Pointer fields",
      "description": "Label pairs are constructed with Name and Value pointer fields set (via proto.String or address-of) so GetName/GetValue expose the trimmed strings.",
      "max_score": 20
    },
    {
      "name": "Accessor sorting",
      "description": "Merging and ordering logic reads label names through LabelPair accessors (GetName/Name) to apply overrides and sort labels lexicographically.",
      "max_score": 20
    },
    {
      "name": "Internal filter",
      "description": "Internal names prefixed with \"__\" are filtered or retained based on AllowInternal by inspecting the LabelPair name from the dependency, not by substituting other types.",
      "max_score": 15
    },
    {
      "name": "Map conversion",
      "description": "LabelsToMap (or equivalent) walks the dependency label pairs and uses GetName/GetValue when producing the map, preserving trimmed values and respecting the internal filtering rules.",
      "max_score": 15
    }
  ]
}