Tags inside requests do not appear in Datadog

I am running requests in the following format:

http.post(
    `${baseURL}/catalog/entries`,
    JSON.stringify(createCatalogRequestBody(data[1].realmId, catalogName)),
    headers,
    {
      tags: {
        requestType: 'createCatalog',
      },
    },
  );

as you can see, I have custom headers. Am I doing it the right way?

Saw an example in documentation that solved my query, after internet search. Here is that example

import http from 'k6/http';

export default function () {
  let params = {
    cookies: { my_cookie: 'value' },
    headers: { 'X-MyHeader': 'k6test' },
    redirects: 5,
    tags: { k6test: 'yes' },
  };
  let res = http.get('https://k6.io', params);
}