Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
style: add identityId context to telemetry error logs and fix prettier formatting
Devin AI0cbc0b24c83a
diff --git a/backend/src/server/routes/v1/identity-alicloud-auth-router.ts b/backend/src/server/routes/v1/identity-alicloud-auth-router.tsindex 7d358e54e6..c7e746d1d2 100644--- a/backend/src/server/routes/v1/identity-alicloud-auth-router.ts+++ b/backend/src/server/routes/v1/identity-alicloud-auth-router.ts@@ -106,7 +106,9 @@ export const registerIdentityAliCloudAuthRouter = async (server: FastifyZodProviauthMethod: IdentityAuthMethod.ALICLOUD_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAliCloudAuth.identityId}]`);+ });return {accessToken,@@ -217,7 +219,9 @@ export const registerIdentityAliCloudAuthRouter = async (server: FastifyZodProviauthMethod: IdentityAuthMethod.ALICLOUD_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAliCloudAuth.identityId}]`);+ });return { identityAliCloudAuth };}@@ -323,7 +327,9 @@ export const registerIdentityAliCloudAuthRouter = async (server: FastifyZodProviauthMethod: IdentityAuthMethod.ALICLOUD_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAliCloudAuth.identityId}]`);+ });return { identityAliCloudAuth };}@@ -435,7 +441,9 @@ export const registerIdentityAliCloudAuthRouter = async (server: FastifyZodProviauthMethod: IdentityAuthMethod.ALICLOUD_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAliCloudAuth.identityId}]`);+ });return { identityAliCloudAuth };}diff --git a/backend/src/server/routes/v1/identity-aws-iam-auth-router.ts b/backend/src/server/routes/v1/identity-aws-iam-auth-router.tsindex e1dbc157c2..682896600d 100644--- a/backend/src/server/routes/v1/identity-aws-iam-auth-router.ts+++ b/backend/src/server/routes/v1/identity-aws-iam-auth-router.ts@@ -73,7 +73,9 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.AWS_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAwsAuth.identityId}]`);+ });return {accessToken,@@ -188,7 +190,9 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.AWS_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAwsAuth.identityId}]`);+ });return { identityAwsAuth };}@@ -286,7 +290,9 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.AWS_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAwsAuth.identityId}]`);+ });return { identityAwsAuth };}@@ -398,7 +404,9 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.AWS_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAwsAuth.identityId}]`);+ });return { identityAwsAuth };}diff --git a/backend/src/server/routes/v1/identity-azure-auth-router.ts b/backend/src/server/routes/v1/identity-azure-auth-router.tsindex a16418ad7d..eab840f7b8 100644--- a/backend/src/server/routes/v1/identity-azure-auth-router.ts+++ b/backend/src/server/routes/v1/identity-azure-auth-router.ts@@ -68,7 +68,9 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.AZURE_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAzureAuth.identityId}]`);+ });return {accessToken,@@ -182,7 +184,9 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.AZURE_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAzureAuth.identityId}]`);+ });return { identityAzureAuth };}@@ -286,7 +290,9 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.AZURE_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAzureAuth.identityId}]`);+ });return { identityAzureAuth };}@@ -399,7 +405,9 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.AZURE_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityAzureAuth.identityId}]`);+ });return { identityAzureAuth };}diff --git a/backend/src/server/routes/v1/identity-gcp-auth-router.ts b/backend/src/server/routes/v1/identity-gcp-auth-router.tsindex 39c54995d4..64de198ef6 100644--- a/backend/src/server/routes/v1/identity-gcp-auth-router.ts+++ b/backend/src/server/routes/v1/identity-gcp-auth-router.ts@@ -68,7 +68,9 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.GCP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityGcpAuth.identityId}]`);+ });return {accessToken,@@ -180,7 +182,9 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.GCP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityGcpAuth.identityId}]`);+ });return { identityGcpAuth };}@@ -280,7 +284,9 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.GCP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityGcpAuth.identityId}]`);+ });return { identityGcpAuth };}@@ -393,7 +399,9 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.GCP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityGcpAuth.identityId}]`);+ });return { identityGcpAuth };}diff --git a/backend/src/server/routes/v1/identity-jwt-auth-router.ts b/backend/src/server/routes/v1/identity-jwt-auth-router.tsindex 3b662f64df..c3430b96af 100644--- a/backend/src/server/routes/v1/identity-jwt-auth-router.ts+++ b/backend/src/server/routes/v1/identity-jwt-auth-router.ts@@ -144,7 +144,9 @@ export const registerIdentityJwtAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.JWT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityJwtAuth.identityId}]`);+ });return {accessToken,@@ -230,7 +232,9 @@ export const registerIdentityJwtAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.JWT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityJwtAuth.identityId}]`);+ });return {identityJwtAuth@@ -312,7 +316,9 @@ export const registerIdentityJwtAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.JWT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityJwtAuth.identityId}]`);+ });return { identityJwtAuth };}@@ -428,7 +434,9 @@ export const registerIdentityJwtAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.JWT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityJwtAuth.identityId}]`);+ });return { identityJwtAuth };}diff --git a/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts b/backend/src/server/routes/v1/identity-kubernetes-auth-router.tsindex d179547f5c..dd5a3785ca 100644--- a/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts+++ b/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts@@ -89,7 +89,9 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvideauthMethod: IdentityAuthMethod.KUBERNETES_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityKubernetesAuth.identityId}]`);+ });return {accessToken,@@ -255,7 +257,9 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvideauthMethod: IdentityAuthMethod.KUBERNETES_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityKubernetesAuth.identityId}]`);+ });return { identityKubernetesAuth: IdentityKubernetesAuthResponseSchema.parse(identityKubernetesAuth) };}@@ -412,7 +416,9 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvideauthMethod: IdentityAuthMethod.KUBERNETES_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityKubernetesAuth.identityId}]`);+ });return { identityKubernetesAuth };}@@ -528,7 +534,9 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvideauthMethod: IdentityAuthMethod.KUBERNETES_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityKubernetesAuth.identityId}]`);+ });return { identityKubernetesAuth };}diff --git a/backend/src/server/routes/v1/identity-ldap-auth-router.ts b/backend/src/server/routes/v1/identity-ldap-auth-router.tsindex ba2f572461..7e9d041155 100644--- a/backend/src/server/routes/v1/identity-ldap-auth-router.ts+++ b/backend/src/server/routes/v1/identity-ldap-auth-router.ts@@ -216,7 +216,9 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.LDAP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${authIdentityId}]`);+ });return {accessToken,@@ -426,7 +428,9 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.LDAP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityLdapAuth.identityId}]`);+ });return { identityLdapAuth };}@@ -561,7 +565,9 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.LDAP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityLdapAuth.identityId}]`);+ });return { identityLdapAuth };}@@ -687,7 +693,9 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.LDAP_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityLdapAuth.identityId}]`);+ });return { identityLdapAuth };}diff --git a/backend/src/server/routes/v1/identity-oci-auth-router.ts b/backend/src/server/routes/v1/identity-oci-auth-router.tsindex 74a8d3b3a2..ddb3018bc9 100644--- a/backend/src/server/routes/v1/identity-oci-auth-router.ts+++ b/backend/src/server/routes/v1/identity-oci-auth-router.ts@@ -85,7 +85,9 @@ export const registerIdentityOciAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OCI_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOciAuth.identityId}]`);+ });return {accessToken,@@ -193,7 +195,9 @@ export const registerIdentityOciAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OCI_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOciAuth.identityId}]`);+ });return { identityOciAuth };}@@ -290,7 +294,9 @@ export const registerIdentityOciAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OCI_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOciAuth.identityId}]`);+ });return { identityOciAuth };}@@ -402,7 +408,9 @@ export const registerIdentityOciAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OCI_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOciAuth.identityId}]`);+ });return { identityOciAuth };}diff --git a/backend/src/server/routes/v1/identity-oidc-auth-router.ts b/backend/src/server/routes/v1/identity-oidc-auth-router.tsindex 3d4890a4c5..6c3adf14a7 100644--- a/backend/src/server/routes/v1/identity-oidc-auth-router.ts+++ b/backend/src/server/routes/v1/identity-oidc-auth-router.ts@@ -96,7 +96,9 @@ export const registerIdentityOidcAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OIDC_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOidcAuth.identityId}]`);+ });return {accessToken,@@ -214,7 +216,9 @@ export const registerIdentityOidcAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OIDC_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOidcAuth.identityId}]`);+ });return {identityOidcAuth@@ -329,7 +333,9 @@ export const registerIdentityOidcAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OIDC_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOidcAuth.identityId}]`);+ });return { identityOidcAuth };}@@ -444,7 +450,9 @@ export const registerIdentityOidcAuthRouter = async (server: FastifyZodProvider)authMethod: IdentityAuthMethod.OIDC_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityOidcAuth.identityId}]`);+ });return { identityOidcAuth };}diff --git a/backend/src/server/routes/v1/identity-router.ts b/backend/src/server/routes/v1/identity-router.tsindex 9491451a4c..fe15a192cc 100644--- a/backend/src/server/routes/v1/identity-router.ts+++ b/backend/src/server/routes/v1/identity-router.ts@@ -177,7 +177,9 @@ export const registerIdentityRouter = async (server: FastifyZodProvider) => {hasDeleteProtection: identity.hasDeleteProtection}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identity.id}]`);+ });return { identity };}@@ -240,7 +242,9 @@ export const registerIdentityRouter = async (server: FastifyZodProvider) => {orgId: identity.orgId}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identity.id}]`);+ });return { identity };}diff --git a/backend/src/server/routes/v1/identity-tls-cert-auth-router.ts b/backend/src/server/routes/v1/identity-tls-cert-auth-router.tsindex 73c23e4281..02febdb2c4 100644--- a/backend/src/server/routes/v1/identity-tls-cert-auth-router.ts+++ b/backend/src/server/routes/v1/identity-tls-cert-auth-router.ts@@ -100,7 +100,9 @@ export const registerIdentityTlsCertAuthRouter = async (server: FastifyZodProvidauthMethod: IdentityAuthMethod.TLS_CERT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTlsCertAuth.identityId}]`);+ });return {accessToken,@@ -220,7 +222,9 @@ export const registerIdentityTlsCertAuthRouter = async (server: FastifyZodProvidauthMethod: IdentityAuthMethod.TLS_CERT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTlsCertAuth.identityId}]`);+ });return { identityTlsCertAuth };}@@ -335,7 +339,9 @@ export const registerIdentityTlsCertAuthRouter = async (server: FastifyZodProvidauthMethod: IdentityAuthMethod.TLS_CERT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTlsCertAuth.identityId}]`);+ });return { identityTlsCertAuth };}@@ -449,7 +455,9 @@ export const registerIdentityTlsCertAuthRouter = async (server: FastifyZodProvidauthMethod: IdentityAuthMethod.TLS_CERT_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTlsCertAuth.identityId}]`);+ });return { identityTlsCertAuth };}diff --git a/backend/src/server/routes/v1/identity-token-auth-router.ts b/backend/src/server/routes/v1/identity-token-auth-router.tsindex be202377d8..56897f2f7b 100644--- a/backend/src/server/routes/v1/identity-token-auth-router.ts+++ b/backend/src/server/routes/v1/identity-token-auth-router.ts@@ -112,7 +112,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.TOKEN_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTokenAuth.identityId}]`);+ });return {identityTokenAuth@@ -212,7 +214,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.TOKEN_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTokenAuth.identityId}]`);+ });return {identityTokenAuth@@ -328,7 +332,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderauthMethod: IdentityAuthMethod.TOKEN_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTokenAuth.identityId}]`);+ });return { identityTokenAuth };}@@ -402,7 +408,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderorgId: identity.orgId}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityTokenAuth.identityId}]`);+ });return {accessToken,@@ -679,7 +687,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderorgId: req.permission.orgId}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${revokedToken.identityId}]`);+ });return {message: "Successfully revoked access token"diff --git a/backend/src/server/routes/v1/identity-universal-auth-router.ts b/backend/src/server/routes/v1/identity-universal-auth-router.tsindex f45b18ed36..0a5d7c43f9 100644--- a/backend/src/server/routes/v1/identity-universal-auth-router.ts+++ b/backend/src/server/routes/v1/identity-universal-auth-router.ts@@ -91,7 +91,9 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {authMethod: IdentityAuthMethod.UNIVERSAL_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityUa.identityId}]`);+ });return {accessToken,@@ -228,7 +230,9 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {authMethod: IdentityAuthMethod.UNIVERSAL_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityUniversalAuth.identityId}]`);+ });return { identityUniversalAuth };}@@ -365,7 +369,9 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {authMethod: IdentityAuthMethod.UNIVERSAL_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityUniversalAuth.identityId}]`);+ });return { identityUniversalAuth };}@@ -478,7 +484,9 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {authMethod: IdentityAuthMethod.UNIVERSAL_AUTH}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${identityUniversalAuth.identityId}]`);+ });return { identityUniversalAuth };}@@ -549,7 +557,9 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {orgId}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${req.params.identityId}]`);+ });return { clientSecret, clientSecretData };}@@ -718,7 +728,9 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {orgId: clientSecretData.orgId}})- .catch((error) => { logger.error(error, "Failed to send telemetry event"); });+ .catch((error) => {+ logger.error(error, `Failed to send telemetry event [identityId=${clientSecretData.identityId}]`);+ });return { clientSecretData };}