Provides low-level interfaces and helper methods for authentication in Azure SDK
Overall
score
97%
{
"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-authdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10