> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Go-Redis-instrumentatie

<Warning>
  De Redis-instrumentatie rapporteert momenteel alle queries op een ongesaneerde manier. Dit betekent dat alle **Personally Identifiable Information (PII)** die in deze queries voorkomt, zoals e-mailadressen en wachtwoorden, naar AppSignal wordt verzonden. Dit wordt configureerbaar in een toekomstige versie van de Redis-instrumentatie. <br /> <br /> Voor **HIPAA-covered entities** kunt u meer informatie vinden over het ondertekenen van een Business Associate Agreement (BAA) in onze [documentatie over Business Add-Ons](/support/business-add-ons).
</Warning>

## Setup

Om uw Go-Redis-code te instrumenteren, importeert u het officiële OpenTelemetry-instrumentatiepakket:

<CodeGroup>
  ```go Go theme={null}
  import "github.com/go-redis/redis/extra/redisotel/v9"
  ```
</CodeGroup>

Instrumenteer na het initialiseren van uw Redis-client tracing en metrics zoals in het onderstaande voorbeeld.

<CodeGroup>
  ```go Go theme={null}
  rdb := redis.NewClient(&redis.Options{
  		Addr: "0.0.0.0:6379",
  	})

  if err := redisotel.InstrumentTracing(rdb); err != nil {
  	panic(err)
  }
  ```
</CodeGroup>
