From 7a52d034f661a465068473161fa694969d078f38 Mon Sep 17 00:00:00 2001 From: 8naama Date: Sun, 22 Dec 2024 10:26:49 +0200 Subject: [PATCH] remove duplicate code block and add space --- docs/shipping/Code/go.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/shipping/Code/go.md b/docs/shipping/Code/go.md index fd7d695d..4c4b7a74 100644 --- a/docs/shipping/Code/go.md +++ b/docs/shipping/Code/go.md @@ -213,17 +213,6 @@ func handleErr(err error) { ``` Replace `<>` with your instrumentation name. - -Additionally, add the error handler: - -```go -func handleErr(err error) { - if err != nil { - panic(fmt.Errorf("encountered error: %v", err)) - } -} -``` - ### Add metric instruments @@ -644,7 +633,7 @@ Give your traces some time to get from your system to ours, and then open [Traci ### Manual Instrumentation -If you're using specific libararies and want to be specific or precise with instrumentation, you can opt to[instrument your code manually](https://opentelemetry.io/docs/languages/go/instrumentation/#traces). +If you're using specific libararies and want to be specific or precise with instrumentation, you can opt to [instrument your code manually](https://opentelemetry.io/docs/languages/go/instrumentation/#traces).