Skip to content

[FEATURE] Add runtime toggle to disable [instance] prefix on console log output #1650

@Roei-Bracha

Description

@Roei-Bracha

Description

When TEN apps run in cloud environments (e.g. GKE on GCP), the console logs produced by the runtime include a leading tag such as [agora_1xaiem] ahead of the JSON payload.
The property.json log formatter is already set to json, so the payload is valid JSON, but Google Cloud Logging rejects it as structured data because the first character is [ rather than {. As a result, all lines are ingested as plain text and downstream alerts/queries fail.
Please expose an environment variable or property setting that disables this prefix (or otherwise emits pure JSON) so that operators can keep using console logging while maintaining structured logging support in cloud platforms.

Severity

Critical

Additional Information

Example log line showing the non-JSON prefix:
[agora_1xaiem] {"timestamp":"2025-10-21T11:14:39.001813424+00:00","level":"INFO",...}

required output:
{"channel": "agora_1xaiem", "timestamp":"2025-10-21T11:14:39.001813424+00:00","level":"INFO",...}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions