in agent-sdk/src/main/java/co/elastic/otel/android/internal/features/centralconfig/CentralConfigurationConnectivity.kt [44:53]
override fun getHeaders(): Map<String, String> {
val headers = mutableMapOf<String, String>()
headers.putAll(extraHeaders)
if (auth is Authentication.SecretToken) {
headers[AUTHORIZATION_HEADER_KEY] = "Bearer ${auth.token}"
} else if (auth is Authentication.ApiKey) {
headers[AUTHORIZATION_HEADER_KEY] = "ApiKey ${auth.key}"
}
return headers
}