Grouping tags not appearing in summary report

New to K6, following online documentation. Unsuccessful in grouping dynamic request tag given in code not appearing in any of summary report generated, what cane going wrong?

import http from 'k6/http';
import { htmlReport } from "";

import { jUnit, textSummary } from '';

export function handleSummary(data) {
    return {
      "result.html": htmlReport(data),
      'stdout': textSummary(data, { indent: ' ', enableColors: true }), // Show the text summary to stdout...
      'junit.xml': jUnit(data), // but also transform it and save it as a JUnit XML...
      'summary.json': JSON.stringify(data),

export default function () {
  var params = {tags: {name: "Getting something from api"},};
    for (let id = 1; id <= 50; id++) {
    /*http.get(`${id}`, {
        tags: { name: 'PostsItemURL' },

    check(res, { 'status was 200': (r) => r.status == 200 });
   /// any of the other onse

Hi @hari,
unfortunately what you’re trying is not yet natively supported by k6. Your case will be covered when the following issue will be implemented Add example for sub-metrics by scenario (or other tags) in summary · Issue #205 · grafana/k6-docs · GitHub, you can subscribe to follow the updates.

In the meanwhile, you could use some workarounds:

It would be very helpful for suggesting the optimal solution getting some more details about your end goal. Can you explain a bit more about your use case, please?

@hari may be k6-junit can help with your case.