MCPcopy
hub / github.com/kopia/kopia / start

Method start

cli/observability_flags.go:148–163  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

146}
147
148func (c *observabilityFlags) start(ctx context.Context) error {
149 c.maybeStartListener(ctx)
150
151 if err := c.maybeStartMetricsPusher(ctx); err != nil {
152 return err
153 }
154
155 if c.saveMetrics {
156 // ensure the metrics output dir can be created
157 if _, err := mkSubdirectories(c.outputDirectory, c.outputSubdirectoryName); err != nil {
158 return err
159 }
160 }
161
162 return c.maybeStartTraceExporter(ctx)
163}
164
165func mkSubdirectories(directoryNames ...string) (dirName string, err error) {
166 dirName = filepath.Join(directoryNames...)

Callers 1

runMethod · 0.95

Calls 4

maybeStartListenerMethod · 0.95
mkSubdirectoriesFunction · 0.85

Tested by

no test coverage detected