generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config moved to serviceinfo singleton (#625)
* config moved to serviceinfo singleton * fix integration * schemas path * merge * fix port * edit * add version to swagger * rename * rename to avoid git weirdness * remove ptr * remove access * comment on thread safety * all use the same service endpoint
- Loading branch information
1 parent
02d6f8f
commit 5440bee
Showing
45 changed files
with
367 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ import ( | |
// | ||
// @title SSI Service API | ||
// @description The Self Sovereign Identity Service: Managing DIDs, Verifiable Credentials, and more! | ||
// @version 0.0.3 | ||
// @contact.name TBD | ||
// @contact.url https://github.com/TBD54566975/ssi-service/issues | ||
// @contact.email [email protected] | ||
|
@@ -88,9 +89,9 @@ func run() error { | |
} | ||
} | ||
|
||
expvar.NewString("build").Set(cfg.Version.SVN) | ||
expvar.NewString("build").Set(config.ServiceVersion) | ||
|
||
logrus.Infof("main: Started : Service initializing : env [%s] : version %q", cfg.Server.Environment, cfg.Version.SVN) | ||
logrus.Infof("main: Started : Service initializing : env [%s] : version %q", cfg.Server.Environment, config.ServiceVersion) | ||
defer logrus.Info("main: Completed") | ||
|
||
out, err := conf.String(cfg) | ||
|
@@ -171,7 +172,7 @@ func newTracerProvider(cfg *config.SSIServiceConfig) (*sdktrace.TracerProvider, | |
sdktrace.WithResource(resource.NewWithAttributes( | ||
semconv.SchemaURL, | ||
semconv.ServiceNameKey.String(config.ServiceName), | ||
semconv.ServiceVersionKey.String(cfg.Version.SVN), | ||
semconv.ServiceVersionKey.String(config.ServiceVersion), | ||
)), | ||
) | ||
otel.SetTracerProvider(tp) | ||
|
Oops, something went wrong.