Skip to content

Commit c27b450

Browse files
committed
fix: fix templates
Signed-off-by: namkyu1999 <[email protected]>
1 parent f55bfb7 commit c27b450

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

contribute/developer-guide/templates/chaoslib_helper.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func runChaos(ctx context.Context, experimentsDetails *experimentTypes.Experimen
126126
//PrepareChaos contains the preparation steps before chaos injection
127127
func PrepareChaos(ctx context.Context, experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error {
128128
// @TODO: setup tracing
129-
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "name-your-chaos-fault")
129+
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "Prepare[name-your-chaos]Fault")
130130
// defer span.End()
131131

132132
//Waiting for the ramp time before chaos injection
@@ -149,7 +149,7 @@ func PrepareChaos(ctx context.Context, experimentsDetails *experimentTypes.Exper
149149
// createHelperPod derive the attributes for helper pod and create the helper pod
150150
func createHelperPod(ctx context.Context, experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, chaosDetails *types.ChaosDetails, targets, nodeName, runID string) error {
151151
// @TODO: setup tracing
152-
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "CreateHelperPod")
152+
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "Create[name-your-chaos]FaultHelperPod")
153153
// defer span.End()
154154

155155
helperPod := &corev1.Pod{

contribute/developer-guide/templates/chaoslib_non-k8s.tmpl

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
//PrepareChaos contains the preparation and injection steps for the experiment
2626
func PrepareChaos(ctx context.Context, experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error {
2727
// @TODO: setup tracing
28-
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "InjectChaos")
28+
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "Prepare[name-your-chaos]Fault")
2929
// defer span.End()
3030

3131
// inject channel is used to transmit signal notifications.
@@ -78,6 +78,9 @@ func PrepareChaos(ctx context.Context, experimentsDetails *experimentTypes.Exper
7878

7979
//injectChaosInSerialMode will inject the chaos on the target one after other
8080
func injectChaosInSerialMode(ctx context.Contxt, experimentsDetails *experimentTypes.ExperimentDetails, targetIDList []string, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error {
81+
// @TODO: setup tracing
82+
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "Inject[name-your-chaos]FaultInSerialMode")
83+
// defer span.End()
8184

8285
select {
8386
case <-inject:
@@ -141,6 +144,9 @@ func injectChaosInSerialMode(ctx context.Contxt, experimentsDetails *experimentT
141144

142145
// injectChaosInParallelMode will inject the chaos on the target all at once
143146
func injectChaosInParallelMode(ctx context.Context, experimentsDetails *experimentTypes.ExperimentDetails, targetIDList []string, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error {
147+
// @TODO: setup tracing
148+
// ctx, span := otel.Tracer(telemetry.TracerName).Start(ctx, "Inject[name-your-chaos]FaultInParallelMode")
149+
// defer span.End()
144150

145151
select {
146152
case <-inject:

0 commit comments

Comments
 (0)