Development
OpenTelemetry Semantic-Convention v1.20 → v1.27 Attribut-Migrationstool
Schreibt Span-/Log-Attributnamen über OpenTelemetry-Konventionsversionen um: http.method → http.request.method, http.status_code → http.response.status_code, http.url → url.full, db.system → db.system.name, messaging.destination → messaging.destination.name und 25+ weitere — angewendet auf eingefügten JS/TS/Python/Go/Java/.NET-Code, Collector-YAML oder Grafana-Dashboard-JSON, mit Collector-Rename-Map, Entfernungs-/Split-Warnungen, Diff-Statistik pro Attribut und Bericht nicht gemappter Attribute.
Schnellstart
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/api/tools/otel-semantic-convention-migration-tool' \
-H 'Content-Type: application/json' \
-d '{"sourceCode":"const { SpanStatusCode } = require('\''@opentelemetry/api'\'');\nfunction record(span, req, res) {\n span.setAttribute('\''http.method'\'', req.method);\n span.setAttribute('\''http.status_code'\'', res.statusCode);\n span.setAttribute('\''http.url'\'', req.originalUrl);\n span.setAttribute('\''net.peer.name'\'', req.hostname);\n span.setAttribute('\''db.system'\'', '\''postgresql'\'');\n span.setAttribute('\''db.statement'\'', '\''SELECT * FROM users'\'');\n span.setAttribute('\''messaging.destination'\'', '\''orders-queue'\'');\n}","fromVersion":"v1.20.0","toVersion":"v1.27.0","generateCollectorConfig":true,"updateDashboards":true}'