File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sdk/trace/src/main/java/io/opentelemetry/sdk/trace Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ private SdkSpan(
168168 * @param resource the resource associated with this span.
169169 * @param attributes the attributes set during span creation.
170170 * @param links the links set during span creation, may be truncated. The list MUST be immutable.
171- * @param onEnd a {@link Runnable} to run when the span is ended.
171+ * @param recordEndMetrics a {@link Runnable} to run when the span is ended to record metrics .
172172 * @return a new and started span.
173173 */
174174 static SdkSpan startSpan (
@@ -187,7 +187,7 @@ static SdkSpan startSpan(
187187 @ Nullable List <LinkData > links ,
188188 int totalRecordedLinks ,
189189 long userStartEpochNanos ,
190- Runnable onEnd ) {
190+ Runnable recordEndMetrics ) {
191191 boolean createdAnchoredClock ;
192192 AnchoredClock clock ;
193193 if (parentSpan instanceof SdkSpan ) {
@@ -227,7 +227,7 @@ static SdkSpan startSpan(
227227 links ,
228228 totalRecordedLinks ,
229229 startEpochNanos ,
230- onEnd );
230+ recordEndMetrics );
231231 // Call onStart here instead of calling in the constructor to make sure the span is completely
232232 // initialized.
233233 if (spanProcessor .isStartRequired ()) {
You can’t perform that action at this time.
0 commit comments