Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 774c01d

Browse files
authored
[TF 5350] Add Telemetry Fields for Categories (#60)
* Update logging, metrics, and traces. * Add telemetry categories
1 parent 48880c4 commit 774c01d

File tree

5 files changed

+107
-79
lines changed

5 files changed

+107
-79
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
website-preview
2+
website-preview
3+
.idea

website/docs/cloud-docs/agents/logging.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ levels. There are 5 levels supported by the agent:
4040
## Data format
4141

4242
By default, Terraform Cloud Agents emit log lines in a human-friendly text
43-
format. This is convenient for running the tfc-agent locally and streaming the
43+
format. This is convenient for running the TFC Agent locally and streaming the
4444
logs directly to a terminal, or for use in log systems where raw logs are
4545
consumed directly by operators. The default text format looks something like
4646
the following:
4747

4848
```
49-
2023-01-26T13:45:02.502-0800 [INFO] core: Job received: job.type=plan job.id=run-xxx
49+
2023-04-14T17:12:43.002Z [INFO] core: Job received: job_type=plan job_id=run-xxx
5050
```
5151

5252
It is also possible to configure the Terraform Cloud Agent to produce JSON-
@@ -58,7 +58,7 @@ environment variable `TFC_AGENT_LOG_JSON=1`. The JSON format contains additional
5858
verbose information in each log message, and looks something like this:
5959

6060
```
61-
{"@level":"info","@message":"Job received","@module":"core","@timestamp":"2023-01-26T13:47:20.637933-08:00","agent.id":"agent-xxx","agent.pool.id":"apool-xxx","agent.version":"1.6.0","job.id":"run-xxx","job.type":"plan"}
61+
{"@level":"info","@message":"Job received","@module":"core","@timestamp":"2023-04-13T23:35:28.653853Z","agent_id":"agent-xxx","agent_name":"name","agent_pool_id":"apool-xxx","agent_version":"1.7.1","job_id":"run-xxx","job_type":"plan"}
6262
```
6363

6464
## Log data sensitivity

0 commit comments

Comments
 (0)