Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Development

OpenTelemetry Semantic-Convention v1.20 → v1.27 Attribute Migration Tool

Rewrites span/log attribute names across OpenTelemetry semantic-convention versions: 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 and 25+ more — applied to pasted JS/TS/Python/Go/Java/.NET source, collector YAML or Grafana dashboard JSON, with an OTel Collector transform rename map, removal/manual-split warnings, per-attribute diff stats and an unmapped-attribute report.

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/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}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/otel-semantic-convention-migration-tool

Parameters

NameTypeRequiredDescription
sourceCodetextareaYes—
fromVersionselectYes—
toVersionselectYes—
generateCollectorConfigcheckboxNo—
updateDashboardscheckboxNo—

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-otel-semantic-convention-migration-tool": {
      "name": "otel-semantic-convention-migration-tool",
      "description": "Rewrites span/log attribute names across OpenTelemetry semantic-convention versions: 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 and 25+ more — applied to pasted JS/TS/Python/Go/Java/.NET source, collector YAML or Grafana dashboard JSON, with an OTel Collector transform rename map, removal/manual-split warnings, per-attribute diff stats and an unmapped-attribute report.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=otel-semantic-convention-migration-tool",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "otel-semantic-convention-migration-tool",
    "arguments": {
  "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
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool