kubesense_internal library
Classes
- AttachResponse
- CapturedConfiguration
- DefaultTimeProvider
-
Default time provider which uses
DateTimeto provide the current timestamp. - FirstPartyHost
- Used to attach a first party host name to what headers should be automatically attached by RUM Http Tracking
- InternalLogger
- This class is used internally by the SDK to log issues to the client developers. Note that all logging from the Flutter portions of the SDK are disabled if kDebugMode is not set.
- InvalidAttributeInfo
- IsolateAttachResponse
- KubesenseAttributes
- Attributes that can be added to calls that have special properies in Kubesense.
- KubesenseConfigKey
- KubesenseContext
- KubesenseHttpTracingHeaders
- KubesensePlatformAttributeKey
- KubesenseRemoteConfiguration
- Values read from the remote SDK configuration document the native SDK was initialized with: the document cached by the previous launch.
- KubesenseRumPlatformAttributeKey
- KubesenseSdkPlatform
- KubesenseTimeProvider
- Internal interface to provide the current timestamp for events, either in milliseconds (the default for most events) or nanoseconds (the default for some performance events).
- OTelHttpTracingHeaders
- PlatformInitializationResult
-
Result from initializing the platform. Individual members are set to
falseIf there is an error loading that feature, such as being unable to load required JavaScript modules on web. - RemoteConfigKey
-
A value of the remote SDK configuration document, addressed the same way
as in the native SDKs: a section (
"features","sessionReplay", ...) and a key inside it. - TracingContext
- TracingId
- TracingId is used as both a unsigned 64-bit "Span Id" and unsigned 128-bit "Trace Id"
- W3CHeadersBaggageKeys
- W3CTracingHeaders
Enums
- LateConfigurationProperty
- A set of properties that Flutter can configure "late", meaning after the first call to KubesenseSdk.initialize.
- RemoteConfigValueType
- How a value of the remote SDK configuration document is read.
- TracingHeaderType
- The type of tracing header to inject into first party requests.
- TracingIdRepresentation
- Controls how we print a TracingId
Extensions
Constants
- trackResourcesConfigKey → const String
Properties
- lowTraceMask → BigInt
-
final
Functions
-
ambiguate<
T> (T? value) → T? - This allows a value of type T or T? to be treated as a value of type T?.
-
findInvalidAttribute(
Map< String, Object?> attributes, [String parentPropertyName = '']) → InvalidAttributeInfo? -
generateKubesenseAttributes(
TracingContext? context, double samplingRate) → Map< String, Object?> -
generateTracingContext(
KubesenseSdk sdk, KubesenseRum rum) → TracingContext - Generate a tracing context
-
injectTracingHeaders(
TracingContext context, TracingHeaderType headersType, Map< String, dynamic> headers, {TraceContextInjection contextInjection = TraceContextInjection.sampled}) → void -
mergeW3CBaggageHeader(
TracingContext context, String? baggageHeader) → String -
sanitizeHost(
String host, InternalLogger internalLogger) → String? -
wrap(
String methodName, InternalLogger logger, Map< String, Object?> ? attributes, WrappedCall<void> call) → void - Wraps a call to a platform channel with common error handling and telemetry.
-
wrapAsync<
T> (String methodName, InternalLogger logger, Map< String, Object?> ? attributes, WrappedCall<T> call) → Future<T?> - Wraps a call to a platform channel that must return a value, with common error handling and telemetry. If you do not need to get a value back from your call, use wrap instead.
Typedefs
- LogCallback = void Function(String line)
- TraceIdRepresentation = TracingIdRepresentation
- Type alias for TracingIdRepresentation to ensure backwards compatibility with other packages
-
WrappedCall<
T> = FutureOr< T?> Function()