Skip to content

Commit d792add

Browse files
andremmfelixbarny
authored andcommitted
Update public-api.asciidoc (#160)
1 parent 75d743f commit d792add

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/public-api.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The public API of the Elastic APM Java agent lets you
99
customize and manually create spans and transactions,
1010
as well as track errors.
1111

12-
The first step in getting started with the API ist to declare a dependency to the API:
12+
The first step in getting started with the API is to declare a dependency to the API:
1313

1414
[source,xml]
1515
.pom.xml
@@ -91,7 +91,7 @@ Example:
9191

9292
[source,java]
9393
----
94-
Transaction transaction = tracer.startTransaction()
94+
Transaction transaction = ElasticApm.startTransaction();
9595
try {
9696
transaction.setName("MyController#myAction");
9797
span.setType(Transaction.TYPE_REQUEST);
@@ -115,7 +115,7 @@ Example:
115115

116116
[source,java]
117117
----
118-
Span span = tracer.startSpan()
118+
Span span = ElasticApm.startSpan();
119119
try {
120120
span.setName("SELECT FROM customer");
121121
span.setType("db.mysql.query");

0 commit comments

Comments
 (0)