CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-azure--core-auth

Provides low-level interfaces and helper methods for authentication in Azure SDK

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This evaluation assesses how effectively the engineer uses the TracingContext interface from @azure/core-auth to implement an immutable context manager for distributed tracing. The focus is on proper usage of getValue, setValue, and deleteValue methods with Symbol keys.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "TracingContext Import",
      "description": "Imports the TracingContext type from @azure/core-auth package",
      "max_score": 5
    },
    {
      "name": "Symbol Keys Definition",
      "description": "Defines TRACE_ID_KEY and SPAN_CONTEXT_KEY as Symbol values for use as context keys",
      "max_score": 10
    },
    {
      "name": "Context Creation",
      "description": "Implements createRequestContext() to return a new TracingContext instance, using a factory function or constructor that creates an empty context",
      "max_score": 10
    },
    {
      "name": "setValue Usage",
      "description": "Uses TracingContext.setValue() method in setTraceId() and setSpanContext() functions to store values with Symbol keys and return new context instances",
      "max_score": 25
    },
    {
      "name": "getValue Usage",
      "description": "Uses TracingContext.getValue() method in getTraceId(), getSpanContext(), and hasTraceId() functions to retrieve stored values using Symbol keys",
      "max_score": 25
    },
    {
      "name": "deleteValue Usage",
      "description": "Uses TracingContext.deleteValue() method in removeSpanContext() function to create a new context without the span context key",
      "max_score": 15
    },
    {
      "name": "Immutability Preservation",
      "description": "All functions that modify context (setTraceId, setSpanContext, removeSpanContext) return new TracingContext instances rather than mutating existing ones, demonstrating understanding of TracingContext immutability",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-azure--core-auth

tile.json