mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-24 14:37:12 +02:00
core/config: add config version, additional telemetry (#4645)
* core/config: add config version, additional telemetry * typo
This commit is contained in:
parent
dd7e3b993c
commit
ae420f01c6
13 changed files with 857 additions and 766 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/telemetry"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/trace"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -32,6 +33,9 @@ func (b *Builder) BuildBootstrap(
|
|||
cfg *config.Config,
|
||||
fullyStatic bool,
|
||||
) (bootstrap *envoy_config_bootstrap_v3.Bootstrap, err error) {
|
||||
ctx, span := trace.StartSpan(ctx, "envoyconfig.Builder.BuildBootstrap")
|
||||
defer span.End()
|
||||
|
||||
bootstrap = new(envoy_config_bootstrap_v3.Bootstrap)
|
||||
|
||||
bootstrap.Admin, err = b.BuildBootstrapAdmin(cfg)
|
||||
|
@ -164,6 +168,9 @@ func (b *Builder) BuildBootstrapStaticResources(
|
|||
cfg *config.Config,
|
||||
fullyStatic bool,
|
||||
) (staticResources *envoy_config_bootstrap_v3.Bootstrap_StaticResources, err error) {
|
||||
ctx, span := trace.StartSpan(ctx, "envoyconfig.Builder.BuildBootstrapStaticResources")
|
||||
defer span.End()
|
||||
|
||||
staticResources = new(envoy_config_bootstrap_v3.Bootstrap_StaticResources)
|
||||
|
||||
if fullyStatic {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue