diff --git a/docs/1. Flamingo Basics/5. Flamingo Production.md b/docs/1. Flamingo Basics/5. Flamingo Production.md index 5fc692dbe..51ae523fd 100644 --- a/docs/1. Flamingo Basics/5. Flamingo Production.md +++ b/docs/1. Flamingo Basics/5. Flamingo Production.md @@ -50,7 +50,7 @@ CMD ["serve"] [Read more about the ZAP Logger in Flamingo](../3. Core Modules/Zap.md) -### OpenCensus +### OpenTelemetry -For metrics support and to push tracing informations to Jaeger/Zipkin Flamingo uses opencensus. -[Read more about Opencensus](../2. Framework Modules/Opencensus Tracing.md) \ No newline at end of file +For metrics support and to push tracing information to Jaeger/Zipkin Flamingo uses OpenTelemetry. +[Read more about OpenTelemetry](../3. Flamingo Modules/opentelemetry.md) \ No newline at end of file diff --git a/docs/1. Flamingo Basics/7. Flamingo Bootstrap.md b/docs/1. Flamingo Basics/7. Flamingo Bootstrap.md index eb76653ed..782b04d40 100644 --- a/docs/1. Flamingo Basics/7. Flamingo Bootstrap.md +++ b/docs/1. Flamingo Basics/7. Flamingo Bootstrap.md @@ -55,7 +55,7 @@ func main() { new(prefixrouter.Module), new(pugtemplate.Module), new(locale.Module), - new(opencensus.Module), + new(opentelemetry.Module), new(auth.Module), //flamingo-commerce modules diff --git a/docs/1. Flamingo Basics/8. Coding Conventions.md b/docs/1. Flamingo Basics/8. Coding Conventions.md index d30d9e38b..413e79087 100644 --- a/docs/1. Flamingo Basics/8. Coding Conventions.md +++ b/docs/1. Flamingo Basics/8. Coding Conventions.md @@ -17,7 +17,7 @@ The Context is always the first argument to a method/function. Do not check, and do not pass, nil contexts, as they are forbidden! Do not use the context for general passing of scoped data, unless it's explicit necessary. -Use the opencensus/tags package for tracing/stats tags. +Use the opentelemetry/tags package for tracing/stats tags. ## Public interfaces and methods diff --git a/framework/opencensus/Readme.md b/framework/opencensus/Readme.md index 661d30d3c..a55926cff 100644 --- a/framework/opencensus/Readme.md +++ b/framework/opencensus/Readme.md @@ -1,5 +1,7 @@ # Opencensus +> **This module is deprecated and will likely be removed in future versions of flamingo. Please use the [OpenTelemetry module](https://github.com/i-love-flamingo/opentelemetry) instead.** + ## General usage First, if you're not sure what opencensus is, please visit [https://opencensus.io/](https://opencensus.io/) to learn more about it. diff --git a/framework/opencensus/module.go b/framework/opencensus/module.go index 00470e4de..6b2dc6524 100644 --- a/framework/opencensus/module.go +++ b/framework/opencensus/module.go @@ -52,7 +52,8 @@ func (rt *correlationIDInjector) RoundTrip(req *http.Request) (*http.Response, e return rt.next.RoundTrip(req) } -// Module registers the opencensus module which in turn enables jaeger & co +// Module registers the opencensus module which in turn enables jaeger & co. +// Deprecated: OpenCensus was discontinued in favor of OpenTelemetry, please use flamingo.me/opentelemetry instead. type Module struct { endpoint string serviceName string