isValidSensitiveSpanAttributeMaxLength (telemetry/constants.ts)

qwen-code · packages/core/src/telemetry/constants.ts · typescript · Apache-2.0
analytics

Defines telemetry event constants and validates sensitive span attribute length.

// Source: https://github.com/QwenLM/qwen-code | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

export const SERVICE_NAME = 'qwen-code';

export const EVENT_USER_PROMPT = 'qwen-code.user_prompt';
export const EVENT_USER_RETRY = 'qwen-code.user_retry';
export const EVENT_TOOL_CALL = 'qwen-code.tool_call';
export const EVENT_REPEATED_TOOL_FAILURE_GUARD =
  'qwen-code.repeated_tool_failure_guard';
export const EVENT_API_REQUEST = 'qwen-code.api_request';
export const EVENT_API_ERROR = 'qwen-code.api_error';
export const EVENT_API_CANCEL = 'qwen-code.api_cancel';
export const EVENT_API_RESPONSE = '

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key