Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

(badly) Fix the extension to work with k6 v0.36.0 #20

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Conversation

mstoykov
Copy link
Contributor

No description provided.

Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm the hack itself is unavoidable, for now, until we have grafana/k6#2293 on the k6 side. And since we plan to have a somewhat different approach to tracing soon (grafana/k6#2128 and others), it should be fine for now.

I think we shouldn't call k6HTTP.New().NewModuleInstance(vu).Exports() on every HTTP request though. Rather, we should call that once per VU and then save it, e.g. in

func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance {
return &DistributedTracing{vu: vu}
}

@mstoykov mstoykov requested a review from na-- January 25, 2022 13:57
@mstoykov mstoykov merged commit dad381e into master Jan 25, 2022
@mstoykov mstoykov deleted the updateFork6v0.36 branch January 25, 2022 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants