Uses of Class
codes.grow.packages.skywalking.logging.LogRecord
Packages that use LogRecord
Package
Description
Grow Codes SDK for Apache SkyWalking.
-
Uses of LogRecord in codes.grow.packages.skywalking
Methods in codes.grow.packages.skywalking that return LogRecordModifier and TypeMethodDescriptionstatic LogRecordMaps a stored log back to a SPEC record: taglevel→ severity and severity text (default INFO), a 16-hexspan_idtag →spanId, a 32-hextraceId→traceId(native trace ids go to attributesw.trace_id), other tags → attributes (strings), service/instance → resourceservice.name/service.instance.id, endpoint → resourcesw.endpoint.Methods in codes.grow.packages.skywalking with parameters of type LogRecordModifier and TypeMethodDescriptionMaps a record to the nativeLogDataJSON object (see the class description).Method parameters in codes.grow.packages.skywalking with type arguments of type LogRecordModifier and TypeMethodDescriptionSkyWalkingLogExporter.export(List<LogRecord> records, ExportOptions options) Posts one batch; transport errors fail the future (the batch processor retries retryable ones).SkyWalkingLogQueryClient.tail(String query, Consumer<LogRecord> onRecord, TailOptions options) Polling tail on top ofSkyWalkingLogQueryClient.search(java.lang.String, codes.grow.packages.skywalking.logging.SearchOptions): everyintervalit asks for records newer than the last one seen (ascending) and callsonRecordonce per new record. -
Uses of LogRecord in codes.grow.packages.skywalking.logging
Methods in codes.grow.packages.skywalking.logging that return LogRecordModifier and TypeMethodDescriptionLogRecord.Builder.build()Builds the record.static LogRecordParses one record from JSON text.static LogRecordLogRecordJson.fromJsonNode(com.fasterxml.jackson.databind.JsonNode node) Parses one record from a Jackson tree.Returns a redacted copy of the record.default LogRecordLogQueryClient.waitForLog(String query) LogQueryClient.waitForLog(String, WaitForLogOptions)with defaults.default LogRecordLogQueryClient.waitForLog(String query, WaitForLogOptions options) PollsLogQueryClient.search(java.lang.String, codes.grow.packages.skywalking.logging.SearchOptions)until a record matches the query and the predicate.Methods in codes.grow.packages.skywalking.logging that return types with arguments of type LogRecordModifier and TypeMethodDescriptionBatchOptions.onDrop()Drop callback.BatchOptions.onError()Export error callback.WaitForLogOptions.predicate()Returns the value of thepredicaterecord component.LogSearchResult.records()Returns the value of therecordsrecord component.default CompletableFuture<LogRecord> LogQueryClient.waitForLogAsync(String query, WaitForLogOptions options) AsynchronousLogQueryClient.waitForLog(String, WaitForLogOptions).Methods in codes.grow.packages.skywalking.logging with parameters of type LogRecordModifier and TypeMethodDescriptionbooleanQueues a record.static intReturns the UTF-8 size of the record's JSON form (the unit ofmaxBatchBytes).Returns a redacted copy of the record.static StringSerialises a record to compact JSON.Returns the wire form as an ordered map of plain JSON values.Method parameters in codes.grow.packages.skywalking.logging with type arguments of type LogRecordModifier and TypeMethodDescriptionLogExporter.export(List<LogRecord> records, ExportOptions options) Exports a batch.static LogSearchResultA single page without cursor or total.BatchOptions.Builder.onDrop(BiConsumer<List<LogRecord>, DropReason> onDrop) Sets the drop callback (exceptions it throws are ignored).BatchOptions.Builder.onError(BiConsumer<Throwable, List<LogRecord>> onError) Sets the export error callback (exceptions it throws are ignored).default TailHandleLogQueryClient.tail(String query, Consumer<LogRecord> onRecord, TailOptions options) Streams new matching records toonRecorduntil the handle is stopped.WaitForLogOptions.withPredicate(Predicate<LogRecord> filter) Copy with a predicate.Constructor parameters in codes.grow.packages.skywalking.logging with type arguments of type LogRecordModifierConstructorDescriptionLogSearchResult(List<LogRecord> records, Optional<String> nextCursor, OptionalLong total) Copies the list and replacesnulloptionals by empty ones.WaitForLogOptions(Duration timeout, Duration interval, Predicate<LogRecord> predicate, SearchOptions search) Fills defaults fornullvalues. -
Uses of LogRecord in codes.grow.packages.skywalking.testing.logging
Methods in codes.grow.packages.skywalking.testing.logging that return types with arguments of type LogRecordModifier and TypeMethodDescriptionInMemoryLogExporter.records()Accepted records in export order.Methods in codes.grow.packages.skywalking.testing.logging with parameters of type LogRecordModifier and TypeMethodDescriptionstatic booleanWhether a record matches a query.Method parameters in codes.grow.packages.skywalking.testing.logging with type arguments of type LogRecordModifier and TypeMethodDescriptionvoidInMemoryLogExporter.enqueueOutcome(Function<List<LogRecord>, CompletableFuture<ExportResult>> outcome) Scripts the outcome of the next export call (FIFO).InMemoryLogExporter.export(List<LogRecord> batch, ExportOptions options) voidStores records as if exported (for outcomes that accept part of a batch).InMemoryLogQueryClient.tail(String query, Consumer<LogRecord> onRecord, TailOptions options) Constructor parameters in codes.grow.packages.skywalking.testing.logging with type arguments of type LogRecordModifierConstructorDescriptionInMemoryLogQueryClient(Supplier<List<LogRecord>> source) Reads records from a supplier.