File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ The public API of the Elastic APM Java agent lets you
99customize and manually create spans and transactions,
1010as 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();
9595try {
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();
119119try {
120120 span.setName("SELECT FROM customer");
121121 span.setType("db.mysql.query");
You can’t perform that action at this time.
0 commit comments