Class CustomLogStorageRetriever
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.backend.custom.CustomLogStorageRetriever
-
- All Implemented Interfaces:
LogStorageRetriever
,AutoCloseable
public class CustomLogStorageRetriever extends Object implements LogStorageRetriever
-
-
Constructor Summary
Constructors Constructor Description CustomLogStorageRetriever(groovy.text.Template buildLogsVisualizationUrlTemplate, TemplateBindingsProvider templateBindingsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
LogsQueryResult
overallLog(String jobFullName, int runNumber, String traceId, String spanId, boolean complete, Instant startTime, Instant endTime)
LogsQueryResult
stepLog(String jobFullName, int runNumber, String flowNodeId, String traceId, String spanId, boolean complete, Instant startTime, Instant endTime)
String
toString()
-
-
-
Constructor Detail
-
CustomLogStorageRetriever
public CustomLogStorageRetriever(@NonNull groovy.text.Template buildLogsVisualizationUrlTemplate, @NonNull TemplateBindingsProvider templateBindingsProvider)
-
-
Method Detail
-
overallLog
@NonNull public LogsQueryResult overallLog(@NonNull String jobFullName, int runNumber, @NonNull String traceId, @NonNull String spanId, boolean complete, @NonNull Instant startTime, Instant endTime)
- Specified by:
overallLog
in interfaceLogStorageRetriever
- Parameters:
jobFullName
- seeAbstractItem.getFullName()
runNumber
- seeRun.getNumber()
complete
- if true, we claim to be serving the complete log for a build, so implementations should be sure to retrieve final log linesstartTime
- Pipeline run start time. SeeRun.getStartTimeInMillis()
endTime
-null
if the pipeline is still running. SeeRun.getDuration()
-
stepLog
@NonNull public LogsQueryResult stepLog(@NonNull String jobFullName, int runNumber, @NonNull String flowNodeId, @NonNull String traceId, @NonNull String spanId, boolean complete, @NonNull Instant startTime, @Nullable Instant endTime)
- Specified by:
stepLog
in interfaceLogStorageRetriever
- Parameters:
jobFullName
- seeAbstractItem.getFullName()
runNumber
- seeRun.getNumber()
flowNodeId
- seeFlowNode.getId()
complete
- if true, we claim to be serving the complete log for a build, so implementations should be sure to retrieve final log linesstartTime
- Pipeline run start time. SeeRun.getStartTimeInMillis()
endTime
-null
if the pipeline is still running. SeeRun.getDuration()
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-