From 73a70bb6c95ab7eaf625ac0f8a658efbe12231a9 Mon Sep 17 00:00:00 2001 From: Andre Murbach Maidl Date: Thu, 9 Aug 2018 10:49:22 -0300 Subject: [PATCH] Update public-api.asciidoc --- docs/public-api.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/public-api.asciidoc b/docs/public-api.asciidoc index b6611749e9..f8da90b010 100644 --- a/docs/public-api.asciidoc +++ b/docs/public-api.asciidoc @@ -9,7 +9,7 @@ The public API of the Elastic APM Java agent lets you customize and manually create spans and transactions, as well as track errors. -The first step in getting started with the API ist to declare a dependency to the API: +The first step in getting started with the API is to declare a dependency to the API: [source,xml] .pom.xml @@ -91,7 +91,7 @@ Example: [source,java] ---- -Transaction transaction = tracer.startTransaction() +Transaction transaction = ElasticApm.startTransaction(); try { transaction.setName("MyController#myAction"); span.setType(Transaction.TYPE_REQUEST); @@ -115,7 +115,7 @@ Example: [source,java] ---- -Span span = tracer.startSpan() +Span span = ElasticApm.startSpan(); try { span.setName("SELECT FROM customer"); span.setType("db.mysql.query");