Class CustomLogStorageRetriever
java.lang.Object
io.jenkins.plugins.opentelemetry.backend.custom.CustomLogStorageRetriever
- All Implemented Interfaces:
LogStorageRetriever
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionCustomLogStorageRetriever
(groovy.text.Template buildLogsVisualizationUrlTemplate, TemplateBindingsProvider templateBindingsProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
overallLog
(String jobFullName, int runNumber, String traceId, String spanId, boolean complete, Instant startTime, Instant endTime) stepLog
(String jobFullName, int runNumber, String flowNodeId, String traceId, String spanId, boolean complete, Instant startTime, Instant endTime) toString()
-
Constructor Details
-
CustomLogStorageRetriever
public CustomLogStorageRetriever(@NonNull groovy.text.Template buildLogsVisualizationUrlTemplate, @NonNull TemplateBindingsProvider templateBindingsProvider)
-
-
Method Details
-
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()
-
toString
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-