Skip to content

Commit

Permalink
refactor: update env key OTLP_ENABLE to OTLP_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
anhvietnguyennva committed Aug 17, 2023
1 parent 92d4e70 commit 0b2f621
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/constant/env.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package constant

const (
EnvKeyOTLPEnable = "OTLP_ENABLE"
EnvKeyOTLPEnabled = "OTLP_ENABLED"
EnvKeyOTLPCollectorUrl = "OTLP_COLLECTOR_URL"
EnvKeyOTLPInsecure = "OTLP_INSECURE"
EnvKeyOTLPProtocol = "OTLP_PROTOCOL"
Expand Down
2 changes: 1 addition & 1 deletion pkg/metric/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func init() {
if env.BoolFromEnv(constant.EnvKeyOTLPEnable) {
if env.BoolFromEnv(constant.EnvKeyOTLPEnabled) {
initProvider()
}
}
2 changes: 1 addition & 1 deletion pkg/tracer/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func init() {
if env.BoolFromEnv(constant.EnvKeyOTLPEnable) {
if env.BoolFromEnv(constant.EnvKeyOTLPEnabled) {
initProvider()
}
}

0 comments on commit 0b2f621

Please sign in to comment.