Skip to content

Commit 8fdea3c

Browse files
committed
democluster: ensure that tenant server events are annotated
Release note: None
1 parent 6e45d94 commit 8fdea3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cli/democluster/demo_cluster.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ func (c *transientCluster) Start(
396396
}
397397
c.tenantServers[i] = ts
398398
c.infoLog(ctx, "started tenant %d: %s", i, ts.SQLAddr())
399+
400+
// Propagate the tenant server tags to the initialization
401+
// context, so that the initialization messages below are
402+
// properly annotated in traces.
403+
ctx = ts.AnnotateCtx(ctx)
404+
399405
if !c.demoCtx.Insecure {
400406
// Set up the demo username and password on each tenant.
401407
ie := ts.DistSQLServer().(*distsql.ServerImpl).ServerConfig.Executor

0 commit comments

Comments
 (0)