A newer version is available. For the latest information, see the
current release documentation.
Span Indices
editSpan Indices
editSpans are stored in separate indices of the format apm-[version]-span-[date]
.
Conceptually, spans are part of transactions.
Example document
edit{ "context": { "db": { "instance": "customers", "statement": "SELECT * FROM product_types WHERE user_id=?", "type": "sql", "user": "readonly_user" }, "http": { "url": "http://localhost:8000" }, "service": { "agent": { "name": "elastic-node", "version": "3.14.0" }, "name": "1234_service-12a3" } }, "processor": { "event": "span", "name": "transaction" }, "span": { "duration": { "us": 3781 }, "id": 0, "name": "SELECT FROM product_types", "stacktrace": [ { "abs_path": "net.js", "context": { "post": [ " ins.currentTransaction = prev", " return result", "}" ], "pre": [ " var trans = this.currentTransaction", "" ] }, "exclude_from_grouping": false, "filename": "net.js", "function": "onread", "library_frame": true, "line": { "column": 4, "context": "line3", "number": 547 }, "module": "some module", "vars": { "key": "value" } }, { "exclude_from_grouping": false, "filename": "my2file.js", "line": { "number": 10 } } ], "start": { "us": 2830 }, "type": "db.postgresql.query" }, "transaction": { "id": "945254c5-67a5-417e-8a4e-aa29efcbfb79" } }