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");