Skip to content

docs: link trace pipeline references to data model versioning - #3061

Merged
killme2008 merged 4 commits into
mainfrom
docs/link-trace-data-model-versions
Nov 26, 2026
Merged

killme2008 merged 4 commits into
mainfrom
docs/link-trace-data-model-versions

Conversation

@shuiyisong

@shuiyisong shuiyisong commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Make greptime_trace_v2 the default in trace ingestion and SQL examples. V2 stores attributes in fixed JSON2 columns, which keeps the table schema stable as new attribute keys arrive.

  • Use v2 in the OpenTelemetry Collector, Fluent Bit, and GreptimeCloud trace configurations. The trace guide shows how to query dotted JSON2 keys and includes a v1 configuration and query for flattened columns.
  • Recommend Grafana's Jaeger data source for finding and viewing traces. The GreptimeDB plugin guide covers flattened v1 tags, and its raw SQL example aggregates input tokens from v2 spans.
  • Link the ingestion, semantic-layer, and SQL reference pages to the trace data model comparison. Add the same link to the Nightly PostgreSQL COPY FROM STDIN guide introduced in docs: document PostgreSQL COPY FROM STDIN ingestion #3055.
  • Preserve the published v2 ingestion anchors in English and Chinese.

Scope

  • Nightly and v1.3 documentation in English and Chinese

Follow-up

The GenAI Observability dashboard in plugin v3.0.5 reads flattened v1 attributes. Track greptime_trace_v2 support for Trace Details and both bundled dashboards in Grafana datasource issue #77.

Verification

  • DOC_LANG=en pnpm check:links
  • DOC_LANG=zh pnpm check:links
  • typos --config .typos.toml on the changed Markdown files
  • git diff --check
  • Checked the rendered Jaeger links and published v2 ingestion anchors in both versions and languages.
  • Checked pipeline selection, JSON2 query syntax, and Jaeger tag conversion against the v1.3 and Nightly source and test fixtures.

Checklist

  • I verified the content against the applicable GreptimeDB version.
  • I updated the relevant documentation versions and languages, or explained why not.
  • I checked changed links and anchors.
  • I updated navigation when the document structure changed. (N/A)
  • For a version cut, stable promotion, or feature backport, I reviewed Nightly upgrade entries against the target release, updated both Nightly and versioned English/Chinese guides, and recorded release evidence and the outcome (or marked this not applicable). (N/A)

Signed-off-by: shuiyisong <xixing.sys@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 59fe0bd
Status: ✅  Deploy successful!
Preview URL: https://1f5618e0.greptime-docs.pages.dev
Branch Preview URL: https://docs-link-trace-data-model-v.greptime-docs.pages.dev

View logs

Signed-off-by: shuiyisong <xixing.sys@gmail.com>

@killme2008 killme2008 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review below.

@killme2008 killme2008 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples are consistent: v2 first, and each config's table name matches the query that reads it. Two things left:

  • Existing users get rejected writes if opentelemetry_traces was created by v1 and they switch the header to v2. Turn the paragraph after the Collector config in traces/read-write.md into a :::warning, and add a one-line note linking to it where the Collector, Fluent Bit, GreptimeCloud OTLP, and OpenTelemetry pages set x-greptime-pipeline-name.
  • The plugin's bundled GenAI Observability dashboard queries flattened v1 columns on opentelemetry_traces, so it is empty under the v2 default. Note in "Included Dashboards" that it needs a greptime_trace_v1 table.

nit: "docs: default trace examples to greptime_trace_v2" matches the change better than the current title.

Comment thread docs/user-guide/traces/read-write.md Resolved
@shuiyisong

Copy link
Copy Markdown
Contributor Author

@killme2008, thanks for flagging the GenAI dashboard. I confirmed that 15 of its 24 panels query flattened v1 attributes in plugin v3.0.5. I added the follow-up to the PR description. We’re tracking v2 support for both bundled dashboards and Trace Details in Grafana datasource issue #77.

Signed-off-by: shuiyisong <xixing.sys@gmail.com>
Signed-off-by: shuiyisong <xixing.sys@gmail.com>
@killme2008
killme2008 merged commit 2b8ac8d into main Nov 26, 2026
7 checks passed
@killme2008
killme2008 deleted the docs/link-trace-data-model-versions branch November 26, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants