While working on the gen_ai.request.messages rename I noticed that we hardcode all the attributes in our ai integration tests (both node and cloudflare), meaning that we currently need to change each individual test just to rename one attribute name. This PR refactors this to use the attributes from our gen-ai-attributes.ts. I also added some missing entries for attributes that we currently hardcode in the integrations.
Note
The pull request "ref(tests): use constants in ai integration tests and add missing ones" was created by @nicohrubec but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.
While working on the
gen_ai.request.messagesrename I noticed that we hardcode all the attributes in our ai integration tests (both node and cloudflare), meaning that we currently need to change each individual test just to rename one attribute name. This PR refactors this to use the attributes from ourgen-ai-attributes.ts. I also added some missing entries for attributes that we currently hardcode in the integrations.