/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/cli/otel_basic/array_attributes.ts
13 строк
438 B
Bartek Iwańczuk
feat(ext/telemetry): support array values in OTEL attributes (#32748)
16 мар 2026, 21:39
Не верифицирован
16 мар 2026, 21:39
f0e7923
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. import { trace } from "npm:@opentelemetry/api@1.9.0"; const tracer = trace.getTracer("example-tracer"); const span = tracer.startSpan("example span"); span.setAttribute("strings", ["a", "b", "c"]); span.setAttribute("numbers", [1, 2, 3.5]); span.setAttribute("booleans", [true, false, true]); span.setAttribute("bigints", [1n, 2n, 3n]); span.setAttribute("empty", []); span.end();