Skip to content

Conversation

@minimAluminiumalism
Copy link
Contributor

@minimAluminiumalism minimAluminiumalism commented Sep 11, 2025

I’m a developer from the Tencent Cloud APM team, and we would like to add our platform as a new integration. @nirga


Important

Adds documentation for integrating Tencent APM with OpenLLMetry, including configuration steps and port recommendations.

  • Documentation:
    • Adds tencent.mdx to document integration of Tencent APM with OpenLLMetry.
    • Provides configuration steps for tracing endpoint and authentication.
    • Recommends using port 55681 instead of 4317 for HTTP exporter.

This description was created by Ellipsis for 5d9d4f4. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • Documentation
    • Added a guide for integrating Tencent APM with OpenLLMetry via OpenTelemetry.
    • Includes setup instructions, required environment variables for tracing endpoint and authentication, and port guidance (4317 for gRPC, 55681 for HTTP exporter).
    • Features an illustrative image and a sidebar entry for quick access.
    • Helps users configure TRACELOOP_BASE_URL and TRACELOOP_HEADERS for connectivity and auth.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 11, 2025

Walkthrough

Added a new documentation page introducing Tencent APM (TAPM) integration with OpenLLMetry, including description, image, and configuration example for setting tracing endpoint and headers. Notes default TAPM ports (4317 for gRPC) and recommends 55681 for HTTP exporter.

Changes

Cohort / File(s) Summary
Docs: Tencent APM integration page
openllmetry/integrations/tencent.mdx
New doc page describing TAPM integration, sidebar entry, image frame, and example env vars (TRACELOOP_BASE_URL, TRACELOOP_HEADERS) for configuration; notes port defaults (4317 gRPC) and suggests 55681 for HTTP exporter.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks (3 passed)

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title succinctly and accurately describes the primary change: adding Tencent APM as a new documentation integration. It directly matches the added file openllmetry/integrations/tencent.mdx and the PR description from the Tencent Cloud APM team, so a reviewer scanning history would understand the main change.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Poem

I twitch my ears at docs so neat,
A Tencent trail beneath my feet.
Ports aligned, headers in tow,
Carrots trace where metrics flow.
Hop-hop, logs and spans unite—
In TAPM’s field, I set the light. 🥕✨

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 5d9d4f4 in 2 minutes and 7 seconds. Click for details.
  • Reviewed 28 lines of code in 1 files
  • Skipped 1 files when reviewing.
  • Skipped posting 6 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. openllmetry/integrations/tencent.mdx:2
  • Draft comment:
    Possible typo: 'LLM Observability' in the title may be unintended. Consider verifying if it should be 'OpenTelemetry Observability' for consistency with line 8.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The title appears intentional - OpenLLMetry seems to be about LLM observability specifically, as evidenced by the product name. The fact that it uses OpenTelemetry as a protocol doesn't mean the title should change. This looks like a documentation mistake by the reviewer, not understanding the product focus. I could be wrong about OpenLLMetry's focus - maybe it is just a general OpenTelemetry tool and the title should be changed. The product name "OpenLLMetry" strongly suggests this is specifically about LLM observability, and the title matches this focus. The mention of OpenTelemetry is about the protocol used, not the product's purpose. The comment should be deleted as it appears to be based on a misunderstanding of the product's focus. The current title accurately reflects the product's purpose.
2. openllmetry/integrations/tencent.mdx:8
  • Draft comment:
    Add a space between 'APM' and the parenthesis for improved readability.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. openllmetry/integrations/tencent.mdx:11
  • Draft comment:
    Include an alt attribute in the tag for better accessibility.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% According to the rules, we should NOT comment on pure UI/frontend changes. However, accessibility is more than just UI - it's about making content accessible to all users. But the rules also state we should only keep comments that have STRONG EVIDENCE they are correct. Without seeing the actual image, we can't be sure if "Tencent Cloud logo" is even the right alt text. The suggested alt text might not accurately describe the image content - it could be a screenshot or diagram rather than just a logo. Also, accessibility might be handled differently in this documentation framework. While the exact alt text might not be perfect, the fundamental point about needing an alt attribute for accessibility is valid and actionable. The comment should be deleted because it falls under UI/frontend changes which we're instructed to assume the author handled correctly, and we don't have strong evidence that the suggested fix is correct.
4. openllmetry/integrations/tencent.mdx:19
  • Draft comment:
    Use a standard ASCII hyphen ('-') instead of a non-standard dash in 'URL‑encoded' for clarity.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
5. openllmetry/integrations/tencent.mdx:2
  • Draft comment:
    The title uses 'OpenLLMetry', but later in the content (line 8) it mentions 'OpenTelemetry'. Please verify if this naming is intentional or if it should be consistent.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.
6. openllmetry/integrations/tencent.mdx:8
  • Draft comment:
    There appears to be a missing space between 'Tencent APM' and the opening parenthesis. Consider changing to 'Tencent APM (also known as TAPM)' for better readability.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% While the suggestion would improve readability slightly, this is an extremely minor formatting issue in documentation. The current format is still perfectly readable and understandable. According to the rules, we should not make purely informative comments or comments about obvious/unimportant issues. The missing space could be considered a legitimate style issue that affects readability. Documentation quality is important. While documentation quality matters, this is such a minor formatting issue that it doesn't warrant a PR comment. The current format doesn't significantly impact readability or understanding. Delete this comment as it addresses an extremely minor formatting issue that doesn't materially impact the documentation's quality or clarity.

Workflow ID: wflow_APc78EPJa9hRdNrJ

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
openllmetry/integrations/tencent.mdx (4)

6-6: Prefer a public docs page over a console link.

Linking to the console can 404 for readers without access. Consider linking to a TAPM OpenTelemetry integration guide and optionally keeping the console link inline.


8-8: Minor grammar/spacing nit.

Add a space before the parenthesis: “Tencent APM (also known as TAPM) …”.


2-4: Sidebar label: consider “Tencent APM” for consistency.

“Tencent Cloud” may be too broad; other integrations typically use the product name. Suggest sidebarTitle: "Tencent APM".


10-12: Add alt text to the image; asset verified

Add an informative alt attribute in openllmetry/integrations/tencent.mdx (lines 10–12). Asset present at img/integrations/tencent.png.

-  <img src="/img/integrations/tencent.png" />
+  <img src="/img/integrations/tencent.png" alt="OpenLLMetry integration with Tencent APM (TAPM)" />
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between fae41a2 and 5d9d4f4.

⛔ Files ignored due to path filters (1)
  • img/integrations/tencent.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • openllmetry/integrations/tencent.mdx (1 hunks)
🔇 Additional comments (1)
openllmetry/integrations/tencent.mdx (1)

14-16: Clarify protocol support and endpoint format for TAPM.

Please confirm TAPM accepts OTLP/HTTP ingest on port 4318; many vendor docs show gRPC (4317) examples for TAPM. If HTTP isn’t supported in some regions/editions, call that out and provide the gRPC alternative. (tencentcloud.com)

I can add a dual-protocol block (HTTP and gRPC) once you confirm TAPM’s HTTP support and expected endpoint shape.

Comment on lines +18 to +20
TRACELOOP_BASE_URL="<TAPM_ENDPOINT>" # Use port `55681` rather than `4317` as the default port.
TRACELOOP_HEADERS="Authorization=Bearer%20<TAPM_TOKEN>" # header values in env variables must be URL‑encoded.
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Incorrect OTLP HTTP port (55681 is legacy); use 4318 and include /v1/traces.

OTLP/HTTP’s default port is 4318 (not 55681). 55681 was used historically and is deprecated. Also, for OTLP/HTTP the traces path should be /v1/traces. Recommend updating the example and note accordingly. (opentelemetry.io)

Apply this diff:

-TRACELOOP_BASE_URL="<TAPM_ENDPOINT>" # Use port `55681` rather than `4317` as the default port.
-TRACELOOP_HEADERS="Authorization=Bearer%20<TAPM_TOKEN>" # header values in env variables must be URL‑encoded.
+TRACELOOP_BASE_URL="https://<TAPM_HOST>:4318/v1/traces" # OTLP/HTTP default port is 4318; include /v1/traces.
+TRACELOOP_HEADERS="Authorization=Bearer%20<TAPM_TOKEN>" # header values in env variables must be URL‑encoded.
-Tencent APM defaults to using port `4317` for the gRPC exporter; we recommend using port `55681` instead, which is the HTTP exporter port.
+Tencent APM defaults to using port `4317` for OTLP/gRPC. If you use OTLP/HTTP, use port `4318` (the OTLP/HTTP default) and include the `/v1/traces` path.

Also applies to: 22-22

🤖 Prompt for AI Agents
In openllmetry/integrations/tencent.mdx around lines 18-20 (and also line 22),
update the OTLP/HTTP example to use the current default port 4318 instead of the
deprecated 55681 and ensure the endpoint includes the traces path /v1/traces
(e.g., TRACELOOP_BASE_URL should point to
http(s)://<TAPM_ENDPOINT>:4318/v1/traces); keep the URL-encoding note for
TRACELOOP_HEADERS but adjust the example values and any accompanying text to
reflect the correct port and path.

Copy link
Member

@nirga nirga left a comment

Choose a reason for hiding this comment

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

@nirga nirga merged commit 2bb435c into traceloop:main Sep 11, 2025
1 check passed
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.

2 participants