Skip to content

Commit

Permalink
docs(otlp): remove useless import
Browse files Browse the repository at this point in the history
  • Loading branch information
paomian committed Oct 24, 2024
1 parent f0d79ad commit 801e807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/db-cloud-shared/clients/otlp-logs-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ To send OpenTelemetry Logs to GreptimeDB through OpenTelemetry SDK libraries, us
* Headers:
* `X-Greptime-DB-Name`: `<dbname>`
* `Authorization`: `Basic` authentication, which is a Base64 encoded string of `<username>:<password>`. For more information, please refer to [Authentication](https://docs.greptime.com/user-guide/deployments/authentication) and [HTTP API](https://docs.greptime.com/user-guide/protocols/http#authentication)
* `X-Greptime-Log-Table-Name`: `<table_name>` (optional) the table name to store the logs, if not provided, the default table name is `opentelemetry_logs`
* `X-Greptime-Log-Extract-Keys`: `<extract_keys>` (optional) the keys to extract from the attributes. The keys should be separated by a comma (`,`). For example, `key1,key2,key3`. It will extract the keys `key1`, `key2`, and `key3` from the attributes to the top level of the log, and set them as tags. if the field type is array,float or object, it will return error. if pipeline is provided, it will be ignored.
* `X-Greptime-Log-Pipeline-Name`: `<pipeline_name>` (optional) the pipeline name to process the logs, if not provided, will use the extract keys to process the logs
* `X-Greptime-Log-Pipeline-Version`: `<pipeline_version>` (optional) the pipeline version to process the logs, if not provided, will use the latest version of the pipeline
* `X-Greptime-Log-Table-Name`: `<table_name>` (optional) - The table name to store the logs. If not provided, the default table name is `opentelemetry_logs`.
* `X-Greptime-Log-Extract-Keys`: `<extract_keys>` (optional) - The keys to extract from the attributes. The keys should be separated by commas (`,`). For example, `key1,key2,key3` will extract the keys `key1`, `key2`, and `key3` from the attributes and promote them to the top level of the log, setting them as tags. If the field type is array, float, or object, an error will be returned. If a pipeline is provided, this setting will be ignored.
* `X-Greptime-Log-Pipeline-Name`: `<pipeline_name>` (optional) - The pipeline name to process the logs. If not provided, the extract keys will be used to process the logs.
* `X-Greptime-Log-Pipeline-Version`: `<pipeline_version>` (optional) - The pipeline version to process the logs. If not provided, the latest version of the pipeline will be used.

The request uses binary protobuf to encode the payload, so you need to use packages that support `HTTP/protobuf`. For example, in Node.js, you can use [`exporter-trace-otlp-proto`](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto); in Go, you can use [`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp); in Java, you can use [`io.opentelemetry:opentelemetry-exporter-otlp`](https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-otlp); and in Python, you can use [`opentelemetry-exporter-otlp-proto-http`](https://pypi.org/project/opentelemetry-exporter-otlp-proto-http/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ import Includeotlplogintegration from '../../../db-cloud-shared/clients/otlp-log

<Includeotlplogintegration/>

<Includeotlpmetrycsintegration/>

#### Example Code

Here are some example codes about how to setup the request in different languages:
Expand Down

0 comments on commit 801e807

Please sign in to comment.