From fcc5451a0846e32d3be36feb429e0342327e85df Mon Sep 17 00:00:00 2001 From: Tony Fang Date: Tue, 18 Oct 2022 02:42:13 +0000 Subject: [PATCH] Fix getting-started.md with the correct import packages in main.go --- CHANGELOG.md | 1 + website_docs/getting-started.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index baab4d165f4..0c0151e5894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Slice attributes of `attribute` package are now comparable based on their value, not instance. (#3108 #3252) - Prometheus exporter will now cumulatively sum histogram buckets. (#3281) - Export the sum of each histogram datapoint uniquely with the `go.opentelemetry.io/otel/exporters/otlpmetric` exporters. (#3284, #3293) +- Getting-started guide will now have right list of import packages in main.go to run through the example successfully. (#) ## [1.11.0/0.32.3] 2022-10-12 diff --git a/website_docs/getting-started.md b/website_docs/getting-started.md index e1eb4457fec..79307c7224a 100644 --- a/website_docs/getting-started.md +++ b/website_docs/getting-started.md @@ -280,9 +280,12 @@ import ( "io" "log" "os" + "os/signal" "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/exporters/stdout/stdouttrace" + "go.opentelemetry.io/otel/sdk/resource" "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.12.0" )