CtrlK
BlogDocsLog inGet started
Tessl Logo

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

Data model artifacts for Prometheus

Overall
score

93%

Evaluation93%

1.13x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "Evaluates how well the solution uses github.com/prometheus/client_model/go native histogram types to encode spans, bucket populations, and serialization. Focuses on correct field selection for delta versus absolute bucket representations.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Native struct",
      "description": "Builds a dto.Histogram populated with Schema plus ZeroCount or ZeroCountFloat and preserves the provided TimestampMs on the enclosing dto.Metric before serialization.",
      "max_score": 25
    },
    {
      "name": "Span mapping",
      "description": "Copies span offsets/lengths into Histogram.NegativeSpan and Histogram.PositiveSpan in the input order so bucket slots align with the provided spans.",
      "max_score": 20
    },
    {
      "name": "Delta mode",
      "description": "When UseDelta is true, fills Histogram.NegativeDelta and Histogram.PositiveDelta with the provided values, leaves NegativeCount/PositiveCount empty, and sets SampleCount or SampleCountFloat to zero bucket plus summed deltas.",
      "max_score": 20
    },
    {
      "name": "Absolute mode",
      "description": "When UseDelta is false, writes bucket values into Histogram.NegativeCount and Histogram.PositiveCount (float-aware), leaves delta slices empty, and sets SampleCountFloat to zero bucket plus summed absolute counts including fractions.",
      "max_score": 20
    },
    {
      "name": "Serialization",
      "description": "Returns bytes from proto.Marshal of the dto.Histogram embedded in a dto.Metric (or MetricFamily if used), ensuring the native histogram fields carry through to the encoded payload.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json