TelemetryKeyManagementService
Reports key generation and signing to Telemetry, and delegates everything else unchanged.
The SDK's instrumentation used to stop at the HTTP boundary, so a host could see that a request was slow without seeing that the time went to an HSM round trip. Wrapping the configured service closes that gap without every provider plugin having to carry instrumentation of its own.
Kotlin interface delegation supplies every other member, so a method added to KeyManagementService keeps working here rather than silently losing its implementation.
val kms = TelemetryKeyManagementService(AwsKeyManagementService(...))Nothing is recorded until a host installs a sink. Key material and signed bytes are never attached to an event; the algorithm is, because it is low-cardinality and useful.
Functions
Deletes a key from the key management service.
Generates a new cryptographic key by algorithm name.
Generates a new cryptographic key.
Retrieves the public key information for a given key ID.
Returns the set of algorithms supported by this KMS instance.
Signs data using the specified key by algorithm name.
Signs data using the specified key.
Checks if an algorithm by name is supported.
Checks if a specific algorithm is supported.
Wraps this service so its key generation and signing are reported to Telemetry.