Skip to content

docs: telemetry docs to provide endpoint without scheme or path#2179

Merged
Yuan325 merged 4 commits into
mainfrom
docs-telemetry
Dec 18, 2025
Merged

docs: telemetry docs to provide endpoint without scheme or path#2179
Yuan325 merged 4 commits into
mainfrom
docs-telemetry

Conversation

@Yuan325

@Yuan325 Yuan325 commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Description

According to the OTEL (docs), WithEndpoint() sets the target endpoint (host and port) the Exporter will connect to. The provided endpoint should resemble "example.com:4318" (no scheme or path). And it requires the endpoint to be secure using https://.

To provide an insecure endpoint with http://, user will need to set OTEL_EXPORTER_OTLP_INSECURE=true. This PR update the docs to reflect this.

🛠️ Fixes #1539

@Yuan325 Yuan325 requested a review from a team December 15, 2025 19:33
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @Yuan325, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the telemetry documentation to accurately reflect the expected format for OpenTelemetry Protocol (OTLP) endpoints. It clarifies that endpoints should be specified as host and port without a preceding scheme, and introduces the necessary environment variable for enabling insecure connections. These updates ensure the documentation aligns with the underlying OpenTelemetry Go library's behavior, improving user guidance for configuring telemetry.

Highlights

  • Documentation Update for OTLP Endpoint: The documentation for the --telemetry-otlp flag has been updated to clarify that the endpoint should be provided without a scheme (e.g., 127.0.0.1:4318 instead of http://127.0.0.1:4318).
  • Insecure Endpoint Configuration: Information has been added to explain how to configure an insecure OTLP endpoint by setting the OTEL_EXPORTER_OTLP_INSECURE=true environment variable.
  • Example Command Correction: All example commands demonstrating the use of --telemetry-otlp have been corrected to reflect the endpoint format without a scheme.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the telemetry documentation to clarify that the OTLP endpoint should be provided without a scheme. It also explains how to use insecure endpoints by setting the OTEL_EXPORTER_OTLP_INSECURE environment variable. The changes are correct and align with the OpenTelemetry specification. I've provided a couple of suggestions to improve the clarity and user experience of the documentation, mainly by making the instructions more explicit and providing a complete example for using an insecure connection.

Comment thread docs/en/concepts/telemetry/index.md Outdated
Comment thread docs/en/how-to/export_telemetry.md Outdated
@github-actions

Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 enabled auto-merge (squash) December 18, 2025 16:09
@github-actions

Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 merged commit 6e87349 into main Dec 18, 2025
12 checks passed
@Yuan325 Yuan325 deleted the docs-telemetry branch December 18, 2025 16:24
@github-actions

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

github-actions Bot pushed a commit that referenced this pull request Dec 18, 2025
…th (#2179)

## Description

According to the OTEL
([docs](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp#WithEndpoint)),
`WithEndpoint()` sets the target endpoint (host and port) the Exporter
will connect to. The provided endpoint should resemble
"example.com:4318" (no scheme or path). And it requires the endpoint to
be secure using `https://`.

To provide an insecure endpoint with `http://`, user will need to set
`OTEL_EXPORTER_OTLP_INSECURE=true`. This PR update the docs to reflect
this.

🛠️ Fixes #1539 6e87349
github-actions Bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Dec 18, 2025
…th (googleapis#2179)

## Description

According to the OTEL
([docs](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp#WithEndpoint)),
`WithEndpoint()` sets the target endpoint (host and port) the Exporter
will connect to. The provided endpoint should resemble
"example.com:4318" (no scheme or path). And it requires the endpoint to
be secure using `https://`.

To provide an insecure endpoint with `http://`, user will need to set
`OTEL_EXPORTER_OTLP_INSECURE=true`. This PR update the docs to reflect
this.

🛠️ Fixes googleapis#1539 6e87349
vinodhinic pushed a commit to vinodhinic/genai-toolbox that referenced this pull request Jan 14, 2026
…leapis#2179)

## Description

According to the OTEL
([docs](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp#WithEndpoint)),
`WithEndpoint()` sets the target endpoint (host and port) the Exporter
will connect to. The provided endpoint should resemble
"example.com:4318" (no scheme or path). And it requires the endpoint to
be secure using `https://`.

To provide an insecure endpoint with `http://`, user will need to set
`OTEL_EXPORTER_OTLP_INSECURE=true`. This PR update the docs to reflect
this.

🛠️ Fixes googleapis#1539
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.

Opentelemetry always uses https

2 participants