attribute_group.go 652 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. // Code generated from semantic convention specification. DO NOT EDIT.
  4. package semconv // import "go.opentelemetry.io/otel/semconv/v1.40.0"
  5. import "go.opentelemetry.io/otel/attribute"
  6. // Namespace: android
  7. const (
  8. // AndroidAppStateKey is the attribute Key conforming to the "android.app.state"
  9. // semantic conventions. It represents the this attribute represents the state
  10. // of the application.
  11. //
  12. // Type: Enum
  13. // RequirementLevel: Recommended
  14. // Stability: Development
  15. //
  16. // Examples: "created"
  17. // Note: The Android lifecycle states are defined in
  18. // [Activity lifecycle callbacks], and from which the `OS identifiers` are
  19. // derived.
  20. //
  21. // [Activity lifecycle callbacks]: https://developer.android.com/guide/components/activities/activity-lifecycle#lc
  22. AndroidAppStateKey = attribute.Key("android.app.state")
  23. // AndroidOSAPILevelKey is the attribute Key conforming to the
  24. // "android.os.api_level" semantic conventions. It represents the uniquely
  25. // identifies the framework API revision offered by a version (`os.version`) of
  26. // the android operating system. More information can be found in the
  27. // [Android API levels documentation].
  28. //
  29. // Type: string
  30. // RequirementLevel: Recommended
  31. // Stability: Development
  32. //
  33. // Examples: "33", "32"
  34. //
  35. // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
  36. AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
  37. )
  38. // AndroidOSAPILevel returns an attribute KeyValue conforming to the
  39. // "android.os.api_level" semantic conventions. It represents the uniquely
  40. // identifies the framework API revision offered by a version (`os.version`) of
  41. // the android operating system. More information can be found in the
  42. // [Android API levels documentation].
  43. //
  44. // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
  45. func AndroidOSAPILevel(val string) attribute.KeyValue {
  46. return AndroidOSAPILevelKey.String(val)
  47. }
  48. // Enum values for android.app.state
  49. var (
  50. // Any time before Activity.onResume() or, if the app has no Activity,
  51. // Context.startService() has been called in the app for the first time.
  52. //
  53. // Stability: development
  54. AndroidAppStateCreated = AndroidAppStateKey.String("created")
  55. // Any time after Activity.onPause() or, if the app has no Activity,
  56. // Context.stopService() has been called when the app was in the foreground
  57. // state.
  58. //
  59. // Stability: development
  60. AndroidAppStateBackground = AndroidAppStateKey.String("background")
  61. // Any time after Activity.onResume() or, if the app has no Activity,
  62. // Context.startService() has been called when the app was in either the created
  63. // or background states.
  64. //
  65. // Stability: development
  66. AndroidAppStateForeground = AndroidAppStateKey.String("foreground")
  67. )
  68. // Namespace: app
  69. const (
  70. // AppBuildIDKey is the attribute Key conforming to the "app.build_id" semantic
  71. // conventions. It represents the unique identifier for a particular build or
  72. // compilation of the application.
  73. //
  74. // Type: string
  75. // RequirementLevel: Recommended
  76. // Stability: Development
  77. //
  78. // Examples: "6cff0a7e-cefc-4668-96f5-1273d8b334d0",
  79. // "9f2b833506aa6973a92fde9733e6271f", "my-app-1.0.0-code-123"
  80. AppBuildIDKey = attribute.Key("app.build_id")
  81. // AppInstallationIDKey is the attribute Key conforming to the
  82. // "app.installation.id" semantic conventions. It represents a unique identifier
  83. // representing the installation of an application on a specific device.
  84. //
  85. // Type: string
  86. // RequirementLevel: Recommended
  87. // Stability: Development
  88. //
  89. // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
  90. // Note: Its value SHOULD persist across launches of the same application
  91. // installation, including through application upgrades.
  92. // It SHOULD change if the application is uninstalled or if all applications of
  93. // the vendor are uninstalled.
  94. // Additionally, users might be able to reset this value (e.g. by clearing
  95. // application data).
  96. // If an app is installed multiple times on the same device (e.g. in different
  97. // accounts on Android), each `app.installation.id` SHOULD have a different
  98. // value.
  99. // If multiple OpenTelemetry SDKs are used within the same application, they
  100. // SHOULD use the same value for `app.installation.id`.
  101. // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the
  102. // `app.installation.id`.
  103. //
  104. // For iOS, this value SHOULD be equal to the [vendor identifier].
  105. //
  106. // For Android, examples of `app.installation.id` implementations include:
  107. //
  108. // - [Firebase Installation ID].
  109. // - A globally unique UUID which is persisted across sessions in your
  110. // application.
  111. // - [App set ID].
  112. // - [`Settings.getString(Settings.Secure.ANDROID_ID)`].
  113. //
  114. // More information about Android identifier best practices can be found in the
  115. // [Android user data IDs guide].
  116. //
  117. // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor
  118. // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations
  119. // [App set ID]: https://developer.android.com/identity/app-set-id
  120. // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
  121. // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
  122. AppInstallationIDKey = attribute.Key("app.installation.id")
  123. // AppJankFrameCountKey is the attribute Key conforming to the
  124. // "app.jank.frame_count" semantic conventions. It represents a number of frame
  125. // renders that experienced jank.
  126. //
  127. // Type: int
  128. // RequirementLevel: Recommended
  129. // Stability: Development
  130. //
  131. // Examples: 9, 42
  132. // Note: Depending on platform limitations, the value provided MAY be
  133. // approximation.
  134. AppJankFrameCountKey = attribute.Key("app.jank.frame_count")
  135. // AppJankPeriodKey is the attribute Key conforming to the "app.jank.period"
  136. // semantic conventions. It represents the time period, in seconds, for which
  137. // this jank is being reported.
  138. //
  139. // Type: double
  140. // RequirementLevel: Recommended
  141. // Stability: Development
  142. //
  143. // Examples: 1.0, 5.0, 10.24
  144. AppJankPeriodKey = attribute.Key("app.jank.period")
  145. // AppJankThresholdKey is the attribute Key conforming to the
  146. // "app.jank.threshold" semantic conventions. It represents the minimum
  147. // rendering threshold for this jank, in seconds.
  148. //
  149. // Type: double
  150. // RequirementLevel: Recommended
  151. // Stability: Development
  152. //
  153. // Examples: 0.016, 0.7, 1.024
  154. AppJankThresholdKey = attribute.Key("app.jank.threshold")
  155. // AppScreenCoordinateXKey is the attribute Key conforming to the
  156. // "app.screen.coordinate.x" semantic conventions. It represents the x
  157. // (horizontal) coordinate of a screen coordinate, in screen pixels.
  158. //
  159. // Type: int
  160. // RequirementLevel: Recommended
  161. // Stability: Development
  162. //
  163. // Examples: 0, 131
  164. AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x")
  165. // AppScreenCoordinateYKey is the attribute Key conforming to the
  166. // "app.screen.coordinate.y" semantic conventions. It represents the y
  167. // (vertical) component of a screen coordinate, in screen pixels.
  168. //
  169. // Type: int
  170. // RequirementLevel: Recommended
  171. // Stability: Development
  172. //
  173. // Examples: 12, 99
  174. AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y")
  175. // AppScreenIDKey is the attribute Key conforming to the "app.screen.id"
  176. // semantic conventions. It represents an identifier that uniquely
  177. // differentiates this screen from other screens in the same application.
  178. //
  179. // Type: string
  180. // RequirementLevel: Recommended
  181. // Stability: Development
  182. //
  183. // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3",
  184. // "com.example.app.MainActivity", "com.example.shop.ProductDetailFragment",
  185. // "MyApp.ProfileView", "MyApp.ProfileViewController"
  186. // Note: A screen represents only the part of the device display drawn by the
  187. // app. It typically contains multiple widgets or UI components and is larger in
  188. // scope than individual widgets. Multiple screens can coexist on the same
  189. // display simultaneously (e.g., split view on tablets).
  190. AppScreenIDKey = attribute.Key("app.screen.id")
  191. // AppScreenNameKey is the attribute Key conforming to the "app.screen.name"
  192. // semantic conventions. It represents the name of an application screen.
  193. //
  194. // Type: string
  195. // RequirementLevel: Recommended
  196. // Stability: Development
  197. //
  198. // Examples: "MainActivity", "ProductDetailFragment", "ProfileView",
  199. // "ProfileViewController"
  200. // Note: A screen represents only the part of the device display drawn by the
  201. // app. It typically contains multiple widgets or UI components and is larger in
  202. // scope than individual widgets. Multiple screens can coexist on the same
  203. // display simultaneously (e.g., split view on tablets).
  204. AppScreenNameKey = attribute.Key("app.screen.name")
  205. // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
  206. // semantic conventions. It represents an identifier that uniquely
  207. // differentiates this widget from other widgets in the same application.
  208. //
  209. // Type: string
  210. // RequirementLevel: Recommended
  211. // Stability: Development
  212. //
  213. // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
  214. // Note: A widget is an application component, typically an on-screen visual GUI
  215. // element.
  216. AppWidgetIDKey = attribute.Key("app.widget.id")
  217. // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
  218. // semantic conventions. It represents the name of an application widget.
  219. //
  220. // Type: string
  221. // RequirementLevel: Recommended
  222. // Stability: Development
  223. //
  224. // Examples: "submit", "attack", "Clear Cart"
  225. // Note: A widget is an application component, typically an on-screen visual GUI
  226. // element.
  227. AppWidgetNameKey = attribute.Key("app.widget.name")
  228. )
  229. // AppBuildID returns an attribute KeyValue conforming to the "app.build_id"
  230. // semantic conventions. It represents the unique identifier for a particular
  231. // build or compilation of the application.
  232. func AppBuildID(val string) attribute.KeyValue {
  233. return AppBuildIDKey.String(val)
  234. }
  235. // AppInstallationID returns an attribute KeyValue conforming to the
  236. // "app.installation.id" semantic conventions. It represents a unique identifier
  237. // representing the installation of an application on a specific device.
  238. func AppInstallationID(val string) attribute.KeyValue {
  239. return AppInstallationIDKey.String(val)
  240. }
  241. // AppJankFrameCount returns an attribute KeyValue conforming to the
  242. // "app.jank.frame_count" semantic conventions. It represents a number of frame
  243. // renders that experienced jank.
  244. func AppJankFrameCount(val int) attribute.KeyValue {
  245. return AppJankFrameCountKey.Int(val)
  246. }
  247. // AppJankPeriod returns an attribute KeyValue conforming to the
  248. // "app.jank.period" semantic conventions. It represents the time period, in
  249. // seconds, for which this jank is being reported.
  250. func AppJankPeriod(val float64) attribute.KeyValue {
  251. return AppJankPeriodKey.Float64(val)
  252. }
  253. // AppJankThreshold returns an attribute KeyValue conforming to the
  254. // "app.jank.threshold" semantic conventions. It represents the minimum rendering
  255. // threshold for this jank, in seconds.
  256. func AppJankThreshold(val float64) attribute.KeyValue {
  257. return AppJankThresholdKey.Float64(val)
  258. }
  259. // AppScreenCoordinateX returns an attribute KeyValue conforming to the
  260. // "app.screen.coordinate.x" semantic conventions. It represents the x
  261. // (horizontal) coordinate of a screen coordinate, in screen pixels.
  262. func AppScreenCoordinateX(val int) attribute.KeyValue {
  263. return AppScreenCoordinateXKey.Int(val)
  264. }
  265. // AppScreenCoordinateY returns an attribute KeyValue conforming to the
  266. // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
  267. // component of a screen coordinate, in screen pixels.
  268. func AppScreenCoordinateY(val int) attribute.KeyValue {
  269. return AppScreenCoordinateYKey.Int(val)
  270. }
  271. // AppScreenID returns an attribute KeyValue conforming to the "app.screen.id"
  272. // semantic conventions. It represents an identifier that uniquely differentiates
  273. // this screen from other screens in the same application.
  274. func AppScreenID(val string) attribute.KeyValue {
  275. return AppScreenIDKey.String(val)
  276. }
  277. // AppScreenName returns an attribute KeyValue conforming to the
  278. // "app.screen.name" semantic conventions. It represents the name of an
  279. // application screen.
  280. func AppScreenName(val string) attribute.KeyValue {
  281. return AppScreenNameKey.String(val)
  282. }
  283. // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
  284. // semantic conventions. It represents an identifier that uniquely differentiates
  285. // this widget from other widgets in the same application.
  286. func AppWidgetID(val string) attribute.KeyValue {
  287. return AppWidgetIDKey.String(val)
  288. }
  289. // AppWidgetName returns an attribute KeyValue conforming to the
  290. // "app.widget.name" semantic conventions. It represents the name of an
  291. // application widget.
  292. func AppWidgetName(val string) attribute.KeyValue {
  293. return AppWidgetNameKey.String(val)
  294. }
  295. // Namespace: artifact
  296. const (
  297. // ArtifactAttestationFilenameKey is the attribute Key conforming to the
  298. // "artifact.attestation.filename" semantic conventions. It represents the
  299. // provenance filename of the built attestation which directly relates to the
  300. // build artifact filename. This filename SHOULD accompany the artifact at
  301. // publish time. See the [SLSA Relationship] specification for more information.
  302. //
  303. // Type: string
  304. // RequirementLevel: Recommended
  305. // Stability: Development
  306. //
  307. // Examples: "golang-binary-amd64-v0.1.0.attestation",
  308. // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
  309. // "file-name-package.tar.gz.intoto.json1"
  310. //
  311. // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
  312. ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
  313. // ArtifactAttestationHashKey is the attribute Key conforming to the
  314. // "artifact.attestation.hash" semantic conventions. It represents the full
  315. // [hash value (see glossary)], of the built attestation. Some envelopes in the
  316. // [software attestation space] also refer to this as the **digest**.
  317. //
  318. // Type: string
  319. // RequirementLevel: Recommended
  320. // Stability: Development
  321. //
  322. // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
  323. //
  324. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  325. // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
  326. ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
  327. // ArtifactAttestationIDKey is the attribute Key conforming to the
  328. // "artifact.attestation.id" semantic conventions. It represents the id of the
  329. // build [software attestation].
  330. //
  331. // Type: string
  332. // RequirementLevel: Recommended
  333. // Stability: Development
  334. //
  335. // Examples: "123"
  336. //
  337. // [software attestation]: https://slsa.dev/attestation-model
  338. ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
  339. // ArtifactFilenameKey is the attribute Key conforming to the
  340. // "artifact.filename" semantic conventions. It represents the human readable
  341. // file name of the artifact, typically generated during build and release
  342. // processes. Often includes the package name and version in the file name.
  343. //
  344. // Type: string
  345. // RequirementLevel: Recommended
  346. // Stability: Development
  347. //
  348. // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
  349. // "release-1.tar.gz", "file-name-package.tar.gz"
  350. // Note: This file name can also act as the [Package Name]
  351. // in cases where the package ecosystem maps accordingly.
  352. // Additionally, the artifact [can be published]
  353. // for others, but that is not a guarantee.
  354. //
  355. // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
  356. // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
  357. ArtifactFilenameKey = attribute.Key("artifact.filename")
  358. // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
  359. // semantic conventions. It represents the full [hash value (see glossary)],
  360. // often found in checksum.txt on a release of the artifact and used to verify
  361. // package integrity.
  362. //
  363. // Type: string
  364. // RequirementLevel: Recommended
  365. // Stability: Development
  366. //
  367. // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
  368. // Note: The specific algorithm used to create the cryptographic hash value is
  369. // not defined. In situations where an artifact has multiple
  370. // cryptographic hashes, it is up to the implementer to choose which
  371. // hash value to set here; this should be the most secure hash algorithm
  372. // that is suitable for the situation and consistent with the
  373. // corresponding attestation. The implementer can then provide the other
  374. // hash values through an additional set of attribute extensions as they
  375. // deem necessary.
  376. //
  377. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  378. ArtifactHashKey = attribute.Key("artifact.hash")
  379. // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
  380. // semantic conventions. It represents the [Package URL] of the
  381. // [package artifact] provides a standard way to identify and locate the
  382. // packaged artifact.
  383. //
  384. // Type: string
  385. // RequirementLevel: Recommended
  386. // Stability: Development
  387. //
  388. // Examples: "pkg:github/package-url/purl-spec@1209109710924",
  389. // "pkg:npm/foo@12.12.3"
  390. //
  391. // [Package URL]: https://github.com/package-url/purl-spec
  392. // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
  393. ArtifactPurlKey = attribute.Key("artifact.purl")
  394. // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
  395. // semantic conventions. It represents the version of the artifact.
  396. //
  397. // Type: string
  398. // RequirementLevel: Recommended
  399. // Stability: Development
  400. //
  401. // Examples: "v0.1.0", "1.2.1", "122691-build"
  402. ArtifactVersionKey = attribute.Key("artifact.version")
  403. )
  404. // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
  405. // "artifact.attestation.filename" semantic conventions. It represents the
  406. // provenance filename of the built attestation which directly relates to the
  407. // build artifact filename. This filename SHOULD accompany the artifact at
  408. // publish time. See the [SLSA Relationship] specification for more information.
  409. //
  410. // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
  411. func ArtifactAttestationFilename(val string) attribute.KeyValue {
  412. return ArtifactAttestationFilenameKey.String(val)
  413. }
  414. // ArtifactAttestationHash returns an attribute KeyValue conforming to the
  415. // "artifact.attestation.hash" semantic conventions. It represents the full
  416. // [hash value (see glossary)], of the built attestation. Some envelopes in the
  417. // [software attestation space] also refer to this as the **digest**.
  418. //
  419. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  420. // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
  421. func ArtifactAttestationHash(val string) attribute.KeyValue {
  422. return ArtifactAttestationHashKey.String(val)
  423. }
  424. // ArtifactAttestationID returns an attribute KeyValue conforming to the
  425. // "artifact.attestation.id" semantic conventions. It represents the id of the
  426. // build [software attestation].
  427. //
  428. // [software attestation]: https://slsa.dev/attestation-model
  429. func ArtifactAttestationID(val string) attribute.KeyValue {
  430. return ArtifactAttestationIDKey.String(val)
  431. }
  432. // ArtifactFilename returns an attribute KeyValue conforming to the
  433. // "artifact.filename" semantic conventions. It represents the human readable
  434. // file name of the artifact, typically generated during build and release
  435. // processes. Often includes the package name and version in the file name.
  436. func ArtifactFilename(val string) attribute.KeyValue {
  437. return ArtifactFilenameKey.String(val)
  438. }
  439. // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
  440. // semantic conventions. It represents the full [hash value (see glossary)],
  441. // often found in checksum.txt on a release of the artifact and used to verify
  442. // package integrity.
  443. //
  444. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  445. func ArtifactHash(val string) attribute.KeyValue {
  446. return ArtifactHashKey.String(val)
  447. }
  448. // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
  449. // semantic conventions. It represents the [Package URL] of the
  450. // [package artifact] provides a standard way to identify and locate the packaged
  451. // artifact.
  452. //
  453. // [Package URL]: https://github.com/package-url/purl-spec
  454. // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
  455. func ArtifactPurl(val string) attribute.KeyValue {
  456. return ArtifactPurlKey.String(val)
  457. }
  458. // ArtifactVersion returns an attribute KeyValue conforming to the
  459. // "artifact.version" semantic conventions. It represents the version of the
  460. // artifact.
  461. func ArtifactVersion(val string) attribute.KeyValue {
  462. return ArtifactVersionKey.String(val)
  463. }
  464. // Namespace: aws
  465. const (
  466. // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
  467. // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
  468. // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
  469. // prevent unwanted behavior from model responses or user messages.
  470. //
  471. // Type: string
  472. // RequirementLevel: Recommended
  473. // Stability: Development
  474. //
  475. // Examples: "sgi5gkybzqak"
  476. //
  477. // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
  478. AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
  479. // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
  480. // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
  481. // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
  482. // bank of information that can be queried by models to generate more relevant
  483. // responses and augment prompts.
  484. //
  485. // Type: string
  486. // RequirementLevel: Recommended
  487. // Stability: Development
  488. //
  489. // Examples: "XFWUPB9PAW"
  490. //
  491. // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  492. AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
  493. // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
  494. // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
  495. // JSON-serialized value of each item in the `AttributeDefinitions` request
  496. // field.
  497. //
  498. // Type: string[]
  499. // RequirementLevel: Recommended
  500. // Stability: Development
  501. //
  502. // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
  503. AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
  504. // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
  505. // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
  506. // value of the `AttributesToGet` request parameter.
  507. //
  508. // Type: string[]
  509. // RequirementLevel: Recommended
  510. // Stability: Development
  511. //
  512. // Examples: "lives", "id"
  513. AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
  514. // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
  515. // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
  516. // of the `ConsistentRead` request parameter.
  517. //
  518. // Type: boolean
  519. // RequirementLevel: Recommended
  520. // Stability: Development
  521. //
  522. // Examples:
  523. AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
  524. // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
  525. // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
  526. // JSON-serialized value of each item in the `ConsumedCapacity` response field.
  527. //
  528. // Type: string[]
  529. // RequirementLevel: Recommended
  530. // Stability: Development
  531. //
  532. // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
  533. // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
  534. // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
  535. // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
  536. // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
  537. // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
  538. // "string", "WriteCapacityUnits": number }"
  539. AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
  540. // AWSDynamoDBCountKey is the attribute Key conforming to the
  541. // "aws.dynamodb.count" semantic conventions. It represents the value of the
  542. // `Count` response parameter.
  543. //
  544. // Type: int
  545. // RequirementLevel: Recommended
  546. // Stability: Development
  547. //
  548. // Examples: 10
  549. AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
  550. // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
  551. // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
  552. // value of the `ExclusiveStartTableName` request parameter.
  553. //
  554. // Type: string
  555. // RequirementLevel: Recommended
  556. // Stability: Development
  557. //
  558. // Examples: "Users", "CatsTable"
  559. AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
  560. // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
  561. // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
  562. // represents the JSON-serialized value of each item in the
  563. // `GlobalSecondaryIndexUpdates` request field.
  564. //
  565. // Type: string[]
  566. // RequirementLevel: Recommended
  567. // Stability: Development
  568. //
  569. // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
  570. // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
  571. // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
  572. // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
  573. // number } }"
  574. AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
  575. // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
  576. // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
  577. // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
  578. // request field.
  579. //
  580. // Type: string[]
  581. // RequirementLevel: Recommended
  582. // Stability: Development
  583. //
  584. // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
  585. // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
  586. // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
  587. // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
  588. AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
  589. // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
  590. // "aws.dynamodb.index_name" semantic conventions. It represents the value of
  591. // the `IndexName` request parameter.
  592. //
  593. // Type: string
  594. // RequirementLevel: Recommended
  595. // Stability: Development
  596. //
  597. // Examples: "name_to_group"
  598. AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
  599. // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
  600. // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
  601. // the JSON-serialized value of the `ItemCollectionMetrics` response field.
  602. //
  603. // Type: string
  604. // RequirementLevel: Recommended
  605. // Stability: Development
  606. //
  607. // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
  608. // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
  609. // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
  610. // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
  611. AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
  612. // AWSDynamoDBLimitKey is the attribute Key conforming to the
  613. // "aws.dynamodb.limit" semantic conventions. It represents the value of the
  614. // `Limit` request parameter.
  615. //
  616. // Type: int
  617. // RequirementLevel: Recommended
  618. // Stability: Development
  619. //
  620. // Examples: 10
  621. AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
  622. // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
  623. // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
  624. // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
  625. // field.
  626. //
  627. // Type: string[]
  628. // RequirementLevel: Recommended
  629. // Stability: Development
  630. //
  631. // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
  632. // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
  633. // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
  634. // "ProjectionType": "string" } }"
  635. AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
  636. // AWSDynamoDBProjectionKey is the attribute Key conforming to the
  637. // "aws.dynamodb.projection" semantic conventions. It represents the value of
  638. // the `ProjectionExpression` request parameter.
  639. //
  640. // Type: string
  641. // RequirementLevel: Recommended
  642. // Stability: Development
  643. //
  644. // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
  645. // ProductReviews"
  646. AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
  647. // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
  648. // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
  649. // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
  650. //
  651. // Type: double
  652. // RequirementLevel: Recommended
  653. // Stability: Development
  654. //
  655. // Examples: 1.0, 2.0
  656. AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
  657. // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
  658. // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
  659. // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
  660. // parameter.
  661. //
  662. // Type: double
  663. // RequirementLevel: Recommended
  664. // Stability: Development
  665. //
  666. // Examples: 1.0, 2.0
  667. AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
  668. // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
  669. // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
  670. // the `ScanIndexForward` request parameter.
  671. //
  672. // Type: boolean
  673. // RequirementLevel: Recommended
  674. // Stability: Development
  675. //
  676. // Examples:
  677. AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
  678. // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
  679. // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
  680. // the `ScannedCount` response parameter.
  681. //
  682. // Type: int
  683. // RequirementLevel: Recommended
  684. // Stability: Development
  685. //
  686. // Examples: 50
  687. AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
  688. // AWSDynamoDBSegmentKey is the attribute Key conforming to the
  689. // "aws.dynamodb.segment" semantic conventions. It represents the value of the
  690. // `Segment` request parameter.
  691. //
  692. // Type: int
  693. // RequirementLevel: Recommended
  694. // Stability: Development
  695. //
  696. // Examples: 10
  697. AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
  698. // AWSDynamoDBSelectKey is the attribute Key conforming to the
  699. // "aws.dynamodb.select" semantic conventions. It represents the value of the
  700. // `Select` request parameter.
  701. //
  702. // Type: string
  703. // RequirementLevel: Recommended
  704. // Stability: Development
  705. //
  706. // Examples: "ALL_ATTRIBUTES", "COUNT"
  707. AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
  708. // AWSDynamoDBTableCountKey is the attribute Key conforming to the
  709. // "aws.dynamodb.table_count" semantic conventions. It represents the number of
  710. // items in the `TableNames` response parameter.
  711. //
  712. // Type: int
  713. // RequirementLevel: Recommended
  714. // Stability: Development
  715. //
  716. // Examples: 20
  717. AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
  718. // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
  719. // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
  720. // the `RequestItems` object field.
  721. //
  722. // Type: string[]
  723. // RequirementLevel: Recommended
  724. // Stability: Development
  725. //
  726. // Examples: "Users", "Cats"
  727. AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
  728. // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
  729. // "aws.dynamodb.total_segments" semantic conventions. It represents the value
  730. // of the `TotalSegments` request parameter.
  731. //
  732. // Type: int
  733. // RequirementLevel: Recommended
  734. // Stability: Development
  735. //
  736. // Examples: 100
  737. AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
  738. // AWSECSClusterARNKey is the attribute Key conforming to the
  739. // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
  740. // [ECS cluster].
  741. //
  742. // Type: string
  743. // RequirementLevel: Recommended
  744. // Stability: Development
  745. //
  746. // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
  747. //
  748. // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
  749. AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
  750. // AWSECSContainerARNKey is the attribute Key conforming to the
  751. // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
  752. // Resource Name (ARN) of an [ECS container instance].
  753. //
  754. // Type: string
  755. // RequirementLevel: Recommended
  756. // Stability: Development
  757. //
  758. // Examples:
  759. // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
  760. //
  761. // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
  762. AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
  763. // AWSECSLaunchtypeKey is the attribute Key conforming to the
  764. // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
  765. // for an ECS task.
  766. //
  767. // Type: Enum
  768. // RequirementLevel: Recommended
  769. // Stability: Development
  770. //
  771. // Examples:
  772. //
  773. // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
  774. AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
  775. // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
  776. // semantic conventions. It represents the ARN of a running [ECS task].
  777. //
  778. // Type: string
  779. // RequirementLevel: Recommended
  780. // Stability: Development
  781. //
  782. // Examples:
  783. // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
  784. // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
  785. //
  786. // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
  787. AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
  788. // AWSECSTaskFamilyKey is the attribute Key conforming to the
  789. // "aws.ecs.task.family" semantic conventions. It represents the family name of
  790. // the [ECS task definition] used to create the ECS task.
  791. //
  792. // Type: string
  793. // RequirementLevel: Recommended
  794. // Stability: Development
  795. //
  796. // Examples: "opentelemetry-family"
  797. //
  798. // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
  799. AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
  800. // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
  801. // semantic conventions. It represents the ID of a running ECS task. The ID MUST
  802. // be extracted from `task.arn`.
  803. //
  804. // Type: string
  805. // RequirementLevel: Recommended
  806. // Stability: Development
  807. //
  808. // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
  809. // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
  810. AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
  811. // AWSECSTaskRevisionKey is the attribute Key conforming to the
  812. // "aws.ecs.task.revision" semantic conventions. It represents the revision for
  813. // the task definition used to create the ECS task.
  814. //
  815. // Type: string
  816. // RequirementLevel: Recommended
  817. // Stability: Development
  818. //
  819. // Examples: "8", "26"
  820. AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
  821. // AWSEKSClusterARNKey is the attribute Key conforming to the
  822. // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
  823. // cluster.
  824. //
  825. // Type: string
  826. // RequirementLevel: Recommended
  827. // Stability: Development
  828. //
  829. // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
  830. AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
  831. // AWSExtendedRequestIDKey is the attribute Key conforming to the
  832. // "aws.extended_request_id" semantic conventions. It represents the AWS
  833. // extended request ID as returned in the response header `x-amz-id-2`.
  834. //
  835. // Type: string
  836. // RequirementLevel: Recommended
  837. // Stability: Development
  838. //
  839. // Examples:
  840. // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
  841. AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
  842. // AWSKinesisStreamNameKey is the attribute Key conforming to the
  843. // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
  844. // AWS Kinesis [stream] the request refers to. Corresponds to the
  845. // `--stream-name` parameter of the Kinesis [describe-stream] operation.
  846. //
  847. // Type: string
  848. // RequirementLevel: Recommended
  849. // Stability: Development
  850. //
  851. // Examples: "some-stream-name"
  852. //
  853. // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
  854. // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
  855. AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
  856. // AWSLambdaInvokedARNKey is the attribute Key conforming to the
  857. // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
  858. // ARN as provided on the `Context` passed to the function (
  859. // `Lambda-Runtime-Invoked-Function-Arn` header on the
  860. // `/runtime/invocation/next` applicable).
  861. //
  862. // Type: string
  863. // RequirementLevel: Recommended
  864. // Stability: Development
  865. //
  866. // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
  867. // Note: This may be different from `cloud.resource_id` if an alias is involved.
  868. AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
  869. // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
  870. // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
  871. // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
  872. // function. It's contents are read by Lambda and used to trigger a function.
  873. // This isn't available in the lambda execution context or the lambda runtime
  874. // environtment. This is going to be populated by the AWS SDK for each language
  875. // when that UUID is present. Some of these operations are
  876. // Create/Delete/Get/List/Update EventSourceMapping.
  877. //
  878. // Type: string
  879. // RequirementLevel: Recommended
  880. // Stability: Development
  881. //
  882. // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
  883. //
  884. // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
  885. AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
  886. // AWSLogGroupARNsKey is the attribute Key conforming to the
  887. // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
  888. // Name(s) (ARN) of the AWS log group(s).
  889. //
  890. // Type: string[]
  891. // RequirementLevel: Recommended
  892. // Stability: Development
  893. //
  894. // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
  895. // Note: See the [log group ARN format documentation].
  896. //
  897. // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
  898. AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
  899. // AWSLogGroupNamesKey is the attribute Key conforming to the
  900. // "aws.log.group.names" semantic conventions. It represents the name(s) of the
  901. // AWS log group(s) an application is writing to.
  902. //
  903. // Type: string[]
  904. // RequirementLevel: Recommended
  905. // Stability: Development
  906. //
  907. // Examples: "/aws/lambda/my-function", "opentelemetry-service"
  908. // Note: Multiple log groups must be supported for cases like multi-container
  909. // applications, where a single application has sidecar containers, and each
  910. // write to their own log group.
  911. AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
  912. // AWSLogStreamARNsKey is the attribute Key conforming to the
  913. // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
  914. // AWS log stream(s).
  915. //
  916. // Type: string[]
  917. // RequirementLevel: Recommended
  918. // Stability: Development
  919. //
  920. // Examples:
  921. // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  922. // Note: See the [log stream ARN format documentation]. One log group can
  923. // contain several log streams, so these ARNs necessarily identify both a log
  924. // group and a log stream.
  925. //
  926. // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
  927. AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
  928. // AWSLogStreamNamesKey is the attribute Key conforming to the
  929. // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
  930. // AWS log stream(s) an application is writing to.
  931. //
  932. // Type: string[]
  933. // RequirementLevel: Recommended
  934. // Stability: Development
  935. //
  936. // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  937. AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
  938. // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
  939. // semantic conventions. It represents the AWS request ID as returned in the
  940. // response headers `x-amzn-requestid`, `x-amzn-request-id` or
  941. // `x-amz-request-id`.
  942. //
  943. // Type: string
  944. // RequirementLevel: Recommended
  945. // Stability: Development
  946. //
  947. // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
  948. AWSRequestIDKey = attribute.Key("aws.request_id")
  949. // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
  950. // semantic conventions. It represents the S3 bucket name the request refers to.
  951. // Corresponds to the `--bucket` parameter of the [S3 API] operations.
  952. //
  953. // Type: string
  954. // RequirementLevel: Recommended
  955. // Stability: Development
  956. //
  957. // Examples: "some-bucket-name"
  958. // Note: The `bucket` attribute is applicable to all S3 operations that
  959. // reference a bucket, i.e. that require the bucket name as a mandatory
  960. // parameter.
  961. // This applies to almost all S3 operations except `list-buckets`.
  962. //
  963. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  964. AWSS3BucketKey = attribute.Key("aws.s3.bucket")
  965. // AWSS3CopySourceKey is the attribute Key conforming to the
  966. // "aws.s3.copy_source" semantic conventions. It represents the source object
  967. // (in the form `bucket`/`key`) for the copy operation.
  968. //
  969. // Type: string
  970. // RequirementLevel: Recommended
  971. // Stability: Development
  972. //
  973. // Examples: "someFile.yml"
  974. // Note: The `copy_source` attribute applies to S3 copy operations and
  975. // corresponds to the `--copy-source` parameter
  976. // of the [copy-object operation within the S3 API].
  977. // This applies in particular to the following operations:
  978. //
  979. // - [copy-object]
  980. // - [upload-part-copy]
  981. //
  982. //
  983. // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  984. // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  985. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  986. AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
  987. // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
  988. // semantic conventions. It represents the delete request container that
  989. // specifies the objects to be deleted.
  990. //
  991. // Type: string
  992. // RequirementLevel: Recommended
  993. // Stability: Development
  994. //
  995. // Examples:
  996. // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
  997. // Note: The `delete` attribute is only applicable to the [delete-object]
  998. // operation.
  999. // The `delete` attribute corresponds to the `--delete` parameter of the
  1000. // [delete-objects operation within the S3 API].
  1001. //
  1002. // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
  1003. // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
  1004. AWSS3DeleteKey = attribute.Key("aws.s3.delete")
  1005. // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
  1006. // conventions. It represents the S3 object key the request refers to.
  1007. // Corresponds to the `--key` parameter of the [S3 API] operations.
  1008. //
  1009. // Type: string
  1010. // RequirementLevel: Recommended
  1011. // Stability: Development
  1012. //
  1013. // Examples: "someFile.yml"
  1014. // Note: The `key` attribute is applicable to all object-related S3 operations,
  1015. // i.e. that require the object key as a mandatory parameter.
  1016. // This applies in particular to the following operations:
  1017. //
  1018. // - [copy-object]
  1019. // - [delete-object]
  1020. // - [get-object]
  1021. // - [head-object]
  1022. // - [put-object]
  1023. // - [restore-object]
  1024. // - [select-object-content]
  1025. // - [abort-multipart-upload]
  1026. // - [complete-multipart-upload]
  1027. // - [create-multipart-upload]
  1028. // - [list-parts]
  1029. // - [upload-part]
  1030. // - [upload-part-copy]
  1031. //
  1032. //
  1033. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1034. // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  1035. // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
  1036. // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
  1037. // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
  1038. // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
  1039. // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
  1040. // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
  1041. // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
  1042. // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
  1043. // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
  1044. // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
  1045. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1046. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  1047. AWSS3KeyKey = attribute.Key("aws.s3.key")
  1048. // AWSS3PartNumberKey is the attribute Key conforming to the
  1049. // "aws.s3.part_number" semantic conventions. It represents the part number of
  1050. // the part being uploaded in a multipart-upload operation. This is a positive
  1051. // integer between 1 and 10,000.
  1052. //
  1053. // Type: int
  1054. // RequirementLevel: Recommended
  1055. // Stability: Development
  1056. //
  1057. // Examples: 3456
  1058. // Note: The `part_number` attribute is only applicable to the [upload-part]
  1059. // and [upload-part-copy] operations.
  1060. // The `part_number` attribute corresponds to the `--part-number` parameter of
  1061. // the
  1062. // [upload-part operation within the S3 API].
  1063. //
  1064. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1065. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  1066. // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1067. AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
  1068. // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
  1069. // semantic conventions. It represents the upload ID that identifies the
  1070. // multipart upload.
  1071. //
  1072. // Type: string
  1073. // RequirementLevel: Recommended
  1074. // Stability: Development
  1075. //
  1076. // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
  1077. // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
  1078. // corresponds to the `--upload-id` parameter
  1079. // of the [S3 API] multipart operations.
  1080. // This applies in particular to the following operations:
  1081. //
  1082. // - [abort-multipart-upload]
  1083. // - [complete-multipart-upload]
  1084. // - [list-parts]
  1085. // - [upload-part]
  1086. // - [upload-part-copy]
  1087. //
  1088. //
  1089. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1090. // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
  1091. // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
  1092. // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
  1093. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1094. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  1095. AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
  1096. // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
  1097. // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
  1098. // of the Secret stored in the Secrets Mangger.
  1099. //
  1100. // Type: string
  1101. // RequirementLevel: Recommended
  1102. // Stability: Development
  1103. //
  1104. // Examples:
  1105. // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
  1106. AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
  1107. // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
  1108. // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
  1109. // SNS [topic] is a logical access point that acts as a communication channel.
  1110. //
  1111. // Type: string
  1112. // RequirementLevel: Recommended
  1113. // Stability: Development
  1114. //
  1115. // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
  1116. //
  1117. // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
  1118. AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
  1119. // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
  1120. // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
  1121. // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
  1122. // used to access the queue and perform actions on it.
  1123. //
  1124. // Type: string
  1125. // RequirementLevel: Recommended
  1126. // Stability: Development
  1127. //
  1128. // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
  1129. AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
  1130. // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
  1131. // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
  1132. // of the AWS Step Functions Activity.
  1133. //
  1134. // Type: string
  1135. // RequirementLevel: Recommended
  1136. // Stability: Development
  1137. //
  1138. // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
  1139. AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
  1140. // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
  1141. // "aws.step_functions.state_machine.arn" semantic conventions. It represents
  1142. // the ARN of the AWS Step Functions State Machine.
  1143. //
  1144. // Type: string
  1145. // RequirementLevel: Recommended
  1146. // Stability: Development
  1147. //
  1148. // Examples:
  1149. // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
  1150. AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
  1151. )
  1152. // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
  1153. // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
  1154. // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
  1155. // prevent unwanted behavior from model responses or user messages.
  1156. //
  1157. // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
  1158. func AWSBedrockGuardrailID(val string) attribute.KeyValue {
  1159. return AWSBedrockGuardrailIDKey.String(val)
  1160. }
  1161. // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
  1162. // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
  1163. // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
  1164. // information that can be queried by models to generate more relevant responses
  1165. // and augment prompts.
  1166. //
  1167. // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  1168. func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
  1169. return AWSBedrockKnowledgeBaseIDKey.String(val)
  1170. }
  1171. // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
  1172. // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
  1173. // the JSON-serialized value of each item in the `AttributeDefinitions` request
  1174. // field.
  1175. func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
  1176. return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
  1177. }
  1178. // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
  1179. // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
  1180. // of the `AttributesToGet` request parameter.
  1181. func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
  1182. return AWSDynamoDBAttributesToGetKey.StringSlice(val)
  1183. }
  1184. // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
  1185. // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
  1186. // of the `ConsistentRead` request parameter.
  1187. func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
  1188. return AWSDynamoDBConsistentReadKey.Bool(val)
  1189. }
  1190. // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
  1191. // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
  1192. // JSON-serialized value of each item in the `ConsumedCapacity` response field.
  1193. func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
  1194. return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
  1195. }
  1196. // AWSDynamoDBCount returns an attribute KeyValue conforming to the
  1197. // "aws.dynamodb.count" semantic conventions. It represents the value of the
  1198. // `Count` response parameter.
  1199. func AWSDynamoDBCount(val int) attribute.KeyValue {
  1200. return AWSDynamoDBCountKey.Int(val)
  1201. }
  1202. // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
  1203. // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
  1204. // value of the `ExclusiveStartTableName` request parameter.
  1205. func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
  1206. return AWSDynamoDBExclusiveStartTableKey.String(val)
  1207. }
  1208. // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
  1209. // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
  1210. // conventions. It represents the JSON-serialized value of each item in the
  1211. // `GlobalSecondaryIndexUpdates` request field.
  1212. func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
  1213. return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
  1214. }
  1215. // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
  1216. // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
  1217. // represents the JSON-serialized value of each item of the
  1218. // `GlobalSecondaryIndexes` request field.
  1219. func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
  1220. return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
  1221. }
  1222. // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
  1223. // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
  1224. // `IndexName` request parameter.
  1225. func AWSDynamoDBIndexName(val string) attribute.KeyValue {
  1226. return AWSDynamoDBIndexNameKey.String(val)
  1227. }
  1228. // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
  1229. // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
  1230. // the JSON-serialized value of the `ItemCollectionMetrics` response field.
  1231. func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
  1232. return AWSDynamoDBItemCollectionMetricsKey.String(val)
  1233. }
  1234. // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
  1235. // "aws.dynamodb.limit" semantic conventions. It represents the value of the
  1236. // `Limit` request parameter.
  1237. func AWSDynamoDBLimit(val int) attribute.KeyValue {
  1238. return AWSDynamoDBLimitKey.Int(val)
  1239. }
  1240. // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
  1241. // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
  1242. // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
  1243. // field.
  1244. func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
  1245. return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
  1246. }
  1247. // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
  1248. // "aws.dynamodb.projection" semantic conventions. It represents the value of the
  1249. // `ProjectionExpression` request parameter.
  1250. func AWSDynamoDBProjection(val string) attribute.KeyValue {
  1251. return AWSDynamoDBProjectionKey.String(val)
  1252. }
  1253. // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
  1254. // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
  1255. // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
  1256. // parameter.
  1257. func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
  1258. return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
  1259. }
  1260. // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
  1261. // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
  1262. // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
  1263. // parameter.
  1264. func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
  1265. return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
  1266. }
  1267. // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
  1268. // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
  1269. // the `ScanIndexForward` request parameter.
  1270. func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
  1271. return AWSDynamoDBScanForwardKey.Bool(val)
  1272. }
  1273. // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
  1274. // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
  1275. // the `ScannedCount` response parameter.
  1276. func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
  1277. return AWSDynamoDBScannedCountKey.Int(val)
  1278. }
  1279. // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
  1280. // "aws.dynamodb.segment" semantic conventions. It represents the value of the
  1281. // `Segment` request parameter.
  1282. func AWSDynamoDBSegment(val int) attribute.KeyValue {
  1283. return AWSDynamoDBSegmentKey.Int(val)
  1284. }
  1285. // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
  1286. // "aws.dynamodb.select" semantic conventions. It represents the value of the
  1287. // `Select` request parameter.
  1288. func AWSDynamoDBSelect(val string) attribute.KeyValue {
  1289. return AWSDynamoDBSelectKey.String(val)
  1290. }
  1291. // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
  1292. // "aws.dynamodb.table_count" semantic conventions. It represents the number of
  1293. // items in the `TableNames` response parameter.
  1294. func AWSDynamoDBTableCount(val int) attribute.KeyValue {
  1295. return AWSDynamoDBTableCountKey.Int(val)
  1296. }
  1297. // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
  1298. // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
  1299. // `RequestItems` object field.
  1300. func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
  1301. return AWSDynamoDBTableNamesKey.StringSlice(val)
  1302. }
  1303. // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
  1304. // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
  1305. // the `TotalSegments` request parameter.
  1306. func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
  1307. return AWSDynamoDBTotalSegmentsKey.Int(val)
  1308. }
  1309. // AWSECSClusterARN returns an attribute KeyValue conforming to the
  1310. // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
  1311. // [ECS cluster].
  1312. //
  1313. // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
  1314. func AWSECSClusterARN(val string) attribute.KeyValue {
  1315. return AWSECSClusterARNKey.String(val)
  1316. }
  1317. // AWSECSContainerARN returns an attribute KeyValue conforming to the
  1318. // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
  1319. // Resource Name (ARN) of an [ECS container instance].
  1320. //
  1321. // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
  1322. func AWSECSContainerARN(val string) attribute.KeyValue {
  1323. return AWSECSContainerARNKey.String(val)
  1324. }
  1325. // AWSECSTaskARN returns an attribute KeyValue conforming to the
  1326. // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
  1327. // [ECS task].
  1328. //
  1329. // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
  1330. func AWSECSTaskARN(val string) attribute.KeyValue {
  1331. return AWSECSTaskARNKey.String(val)
  1332. }
  1333. // AWSECSTaskFamily returns an attribute KeyValue conforming to the
  1334. // "aws.ecs.task.family" semantic conventions. It represents the family name of
  1335. // the [ECS task definition] used to create the ECS task.
  1336. //
  1337. // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
  1338. func AWSECSTaskFamily(val string) attribute.KeyValue {
  1339. return AWSECSTaskFamilyKey.String(val)
  1340. }
  1341. // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
  1342. // semantic conventions. It represents the ID of a running ECS task. The ID MUST
  1343. // be extracted from `task.arn`.
  1344. func AWSECSTaskID(val string) attribute.KeyValue {
  1345. return AWSECSTaskIDKey.String(val)
  1346. }
  1347. // AWSECSTaskRevision returns an attribute KeyValue conforming to the
  1348. // "aws.ecs.task.revision" semantic conventions. It represents the revision for
  1349. // the task definition used to create the ECS task.
  1350. func AWSECSTaskRevision(val string) attribute.KeyValue {
  1351. return AWSECSTaskRevisionKey.String(val)
  1352. }
  1353. // AWSEKSClusterARN returns an attribute KeyValue conforming to the
  1354. // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
  1355. // cluster.
  1356. func AWSEKSClusterARN(val string) attribute.KeyValue {
  1357. return AWSEKSClusterARNKey.String(val)
  1358. }
  1359. // AWSExtendedRequestID returns an attribute KeyValue conforming to the
  1360. // "aws.extended_request_id" semantic conventions. It represents the AWS extended
  1361. // request ID as returned in the response header `x-amz-id-2`.
  1362. func AWSExtendedRequestID(val string) attribute.KeyValue {
  1363. return AWSExtendedRequestIDKey.String(val)
  1364. }
  1365. // AWSKinesisStreamName returns an attribute KeyValue conforming to the
  1366. // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
  1367. // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
  1368. // parameter of the Kinesis [describe-stream] operation.
  1369. //
  1370. // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
  1371. // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
  1372. func AWSKinesisStreamName(val string) attribute.KeyValue {
  1373. return AWSKinesisStreamNameKey.String(val)
  1374. }
  1375. // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
  1376. // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
  1377. // ARN as provided on the `Context` passed to the function (
  1378. // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
  1379. // applicable).
  1380. func AWSLambdaInvokedARN(val string) attribute.KeyValue {
  1381. return AWSLambdaInvokedARNKey.String(val)
  1382. }
  1383. // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
  1384. // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
  1385. // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
  1386. // function. It's contents are read by Lambda and used to trigger a function.
  1387. // This isn't available in the lambda execution context or the lambda runtime
  1388. // environtment. This is going to be populated by the AWS SDK for each language
  1389. // when that UUID is present. Some of these operations are
  1390. // Create/Delete/Get/List/Update EventSourceMapping.
  1391. //
  1392. // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
  1393. func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
  1394. return AWSLambdaResourceMappingIDKey.String(val)
  1395. }
  1396. // AWSLogGroupARNs returns an attribute KeyValue conforming to the
  1397. // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
  1398. // Name(s) (ARN) of the AWS log group(s).
  1399. func AWSLogGroupARNs(val ...string) attribute.KeyValue {
  1400. return AWSLogGroupARNsKey.StringSlice(val)
  1401. }
  1402. // AWSLogGroupNames returns an attribute KeyValue conforming to the
  1403. // "aws.log.group.names" semantic conventions. It represents the name(s) of the
  1404. // AWS log group(s) an application is writing to.
  1405. func AWSLogGroupNames(val ...string) attribute.KeyValue {
  1406. return AWSLogGroupNamesKey.StringSlice(val)
  1407. }
  1408. // AWSLogStreamARNs returns an attribute KeyValue conforming to the
  1409. // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
  1410. // AWS log stream(s).
  1411. func AWSLogStreamARNs(val ...string) attribute.KeyValue {
  1412. return AWSLogStreamARNsKey.StringSlice(val)
  1413. }
  1414. // AWSLogStreamNames returns an attribute KeyValue conforming to the
  1415. // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
  1416. // AWS log stream(s) an application is writing to.
  1417. func AWSLogStreamNames(val ...string) attribute.KeyValue {
  1418. return AWSLogStreamNamesKey.StringSlice(val)
  1419. }
  1420. // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
  1421. // semantic conventions. It represents the AWS request ID as returned in the
  1422. // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
  1423. // .
  1424. func AWSRequestID(val string) attribute.KeyValue {
  1425. return AWSRequestIDKey.String(val)
  1426. }
  1427. // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
  1428. // semantic conventions. It represents the S3 bucket name the request refers to.
  1429. // Corresponds to the `--bucket` parameter of the [S3 API] operations.
  1430. //
  1431. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1432. func AWSS3Bucket(val string) attribute.KeyValue {
  1433. return AWSS3BucketKey.String(val)
  1434. }
  1435. // AWSS3CopySource returns an attribute KeyValue conforming to the
  1436. // "aws.s3.copy_source" semantic conventions. It represents the source object (in
  1437. // the form `bucket`/`key`) for the copy operation.
  1438. func AWSS3CopySource(val string) attribute.KeyValue {
  1439. return AWSS3CopySourceKey.String(val)
  1440. }
  1441. // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
  1442. // semantic conventions. It represents the delete request container that
  1443. // specifies the objects to be deleted.
  1444. func AWSS3Delete(val string) attribute.KeyValue {
  1445. return AWSS3DeleteKey.String(val)
  1446. }
  1447. // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
  1448. // conventions. It represents the S3 object key the request refers to.
  1449. // Corresponds to the `--key` parameter of the [S3 API] operations.
  1450. //
  1451. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1452. func AWSS3Key(val string) attribute.KeyValue {
  1453. return AWSS3KeyKey.String(val)
  1454. }
  1455. // AWSS3PartNumber returns an attribute KeyValue conforming to the
  1456. // "aws.s3.part_number" semantic conventions. It represents the part number of
  1457. // the part being uploaded in a multipart-upload operation. This is a positive
  1458. // integer between 1 and 10,000.
  1459. func AWSS3PartNumber(val int) attribute.KeyValue {
  1460. return AWSS3PartNumberKey.Int(val)
  1461. }
  1462. // AWSS3UploadID returns an attribute KeyValue conforming to the
  1463. // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
  1464. // identifies the multipart upload.
  1465. func AWSS3UploadID(val string) attribute.KeyValue {
  1466. return AWSS3UploadIDKey.String(val)
  1467. }
  1468. // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
  1469. // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
  1470. // the Secret stored in the Secrets Mangger.
  1471. func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
  1472. return AWSSecretsmanagerSecretARNKey.String(val)
  1473. }
  1474. // AWSSNSTopicARN returns an attribute KeyValue conforming to the
  1475. // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
  1476. // Topic. An Amazon SNS [topic] is a logical access point that acts as a
  1477. // communication channel.
  1478. //
  1479. // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
  1480. func AWSSNSTopicARN(val string) attribute.KeyValue {
  1481. return AWSSNSTopicARNKey.String(val)
  1482. }
  1483. // AWSSQSQueueURL returns an attribute KeyValue conforming to the
  1484. // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
  1485. // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
  1486. // (SQS) and is used to access the queue and perform actions on it.
  1487. func AWSSQSQueueURL(val string) attribute.KeyValue {
  1488. return AWSSQSQueueURLKey.String(val)
  1489. }
  1490. // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
  1491. // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
  1492. // of the AWS Step Functions Activity.
  1493. func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
  1494. return AWSStepFunctionsActivityARNKey.String(val)
  1495. }
  1496. // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
  1497. // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
  1498. // the ARN of the AWS Step Functions State Machine.
  1499. func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
  1500. return AWSStepFunctionsStateMachineARNKey.String(val)
  1501. }
  1502. // Enum values for aws.ecs.launchtype
  1503. var (
  1504. // Amazon EC2
  1505. // Stability: development
  1506. AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
  1507. // Amazon Fargate
  1508. // Stability: development
  1509. AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
  1510. )
  1511. // Namespace: azure
  1512. const (
  1513. // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
  1514. // semantic conventions. It represents the unique identifier of the client
  1515. // instance.
  1516. //
  1517. // Type: string
  1518. // RequirementLevel: Recommended
  1519. // Stability: Development
  1520. //
  1521. // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
  1522. AzureClientIDKey = attribute.Key("azure.client.id")
  1523. // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
  1524. // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
  1525. // cosmos client connection mode.
  1526. //
  1527. // Type: Enum
  1528. // RequirementLevel: Recommended
  1529. // Stability: Development
  1530. //
  1531. // Examples:
  1532. AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
  1533. // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
  1534. // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
  1535. // account or request [consistency level].
  1536. //
  1537. // Type: Enum
  1538. // RequirementLevel: Recommended
  1539. // Stability: Development
  1540. //
  1541. // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
  1542. // "Session"
  1543. //
  1544. // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
  1545. AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
  1546. // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
  1547. // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
  1548. // represents the list of regions contacted during operation in the order that
  1549. // they were contacted. If there is more than one region listed, it indicates
  1550. // that the operation was performed on multiple regions i.e. cross-regional
  1551. // call.
  1552. //
  1553. // Type: string[]
  1554. // RequirementLevel: Recommended
  1555. // Stability: Development
  1556. //
  1557. // Examples: "North Central US", "Australia East", "Australia Southeast"
  1558. // Note: Region name matches the format of `displayName` in [Azure Location API]
  1559. //
  1560. // [Azure Location API]: https://learn.microsoft.com/rest/api/resources/subscriptions/list-locations
  1561. AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
  1562. // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
  1563. // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
  1564. // the number of request units consumed by the operation.
  1565. //
  1566. // Type: double
  1567. // RequirementLevel: Recommended
  1568. // Stability: Development
  1569. //
  1570. // Examples: 46.18, 1.0
  1571. AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
  1572. // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
  1573. // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
  1574. // request payload size in bytes.
  1575. //
  1576. // Type: int
  1577. // RequirementLevel: Recommended
  1578. // Stability: Development
  1579. //
  1580. // Examples:
  1581. AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
  1582. // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
  1583. // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
  1584. // the cosmos DB sub status code.
  1585. //
  1586. // Type: int
  1587. // RequirementLevel: Recommended
  1588. // Stability: Development
  1589. //
  1590. // Examples: 1000, 1002
  1591. AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
  1592. // AzureResourceProviderNamespaceKey is the attribute Key conforming to the
  1593. // "azure.resource_provider.namespace" semantic conventions. It represents the
  1594. // [Azure Resource Provider Namespace] as recognized by the client.
  1595. //
  1596. // Type: string
  1597. // RequirementLevel: Recommended
  1598. // Stability: Development
  1599. //
  1600. // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
  1601. //
  1602. // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
  1603. AzureResourceProviderNamespaceKey = attribute.Key("azure.resource_provider.namespace")
  1604. // AzureServiceRequestIDKey is the attribute Key conforming to the
  1605. // "azure.service.request.id" semantic conventions. It represents the unique
  1606. // identifier of the service request. It's generated by the Azure service and
  1607. // returned with the response.
  1608. //
  1609. // Type: string
  1610. // RequirementLevel: Recommended
  1611. // Stability: Development
  1612. //
  1613. // Examples: "00000000-0000-0000-0000-000000000000"
  1614. AzureServiceRequestIDKey = attribute.Key("azure.service.request.id")
  1615. )
  1616. // AzureClientID returns an attribute KeyValue conforming to the
  1617. // "azure.client.id" semantic conventions. It represents the unique identifier of
  1618. // the client instance.
  1619. func AzureClientID(val string) attribute.KeyValue {
  1620. return AzureClientIDKey.String(val)
  1621. }
  1622. // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
  1623. // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
  1624. // conventions. It represents the list of regions contacted during operation in
  1625. // the order that they were contacted. If there is more than one region listed,
  1626. // it indicates that the operation was performed on multiple regions i.e.
  1627. // cross-regional call.
  1628. func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
  1629. return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
  1630. }
  1631. // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
  1632. // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
  1633. // represents the number of request units consumed by the operation.
  1634. func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
  1635. return AzureCosmosDBOperationRequestChargeKey.Float64(val)
  1636. }
  1637. // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
  1638. // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
  1639. // request payload size in bytes.
  1640. func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
  1641. return AzureCosmosDBRequestBodySizeKey.Int(val)
  1642. }
  1643. // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
  1644. // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
  1645. // represents the cosmos DB sub status code.
  1646. func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
  1647. return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
  1648. }
  1649. // AzureResourceProviderNamespace returns an attribute KeyValue conforming to the
  1650. // "azure.resource_provider.namespace" semantic conventions. It represents the
  1651. // [Azure Resource Provider Namespace] as recognized by the client.
  1652. //
  1653. // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
  1654. func AzureResourceProviderNamespace(val string) attribute.KeyValue {
  1655. return AzureResourceProviderNamespaceKey.String(val)
  1656. }
  1657. // AzureServiceRequestID returns an attribute KeyValue conforming to the
  1658. // "azure.service.request.id" semantic conventions. It represents the unique
  1659. // identifier of the service request. It's generated by the Azure service and
  1660. // returned with the response.
  1661. func AzureServiceRequestID(val string) attribute.KeyValue {
  1662. return AzureServiceRequestIDKey.String(val)
  1663. }
  1664. // Enum values for azure.cosmosdb.connection.mode
  1665. var (
  1666. // Gateway (HTTP) connection.
  1667. // Stability: development
  1668. AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
  1669. // Direct connection.
  1670. // Stability: development
  1671. AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
  1672. )
  1673. // Enum values for azure.cosmosdb.consistency.level
  1674. var (
  1675. // Strong
  1676. // Stability: development
  1677. AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
  1678. // Bounded Staleness
  1679. // Stability: development
  1680. AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
  1681. // Session
  1682. // Stability: development
  1683. AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
  1684. // Eventual
  1685. // Stability: development
  1686. AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
  1687. // Consistent Prefix
  1688. // Stability: development
  1689. AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
  1690. )
  1691. // Namespace: browser
  1692. const (
  1693. // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
  1694. // semantic conventions. It represents the array of brand name and version
  1695. // separated by a space.
  1696. //
  1697. // Type: string[]
  1698. // RequirementLevel: Recommended
  1699. // Stability: Development
  1700. //
  1701. // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
  1702. // Note: This value is intended to be taken from the [UA client hints API] (
  1703. // `navigator.userAgentData.brands`).
  1704. //
  1705. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1706. BrowserBrandsKey = attribute.Key("browser.brands")
  1707. // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
  1708. // semantic conventions. It represents the preferred language of the user using
  1709. // the browser.
  1710. //
  1711. // Type: string
  1712. // RequirementLevel: Recommended
  1713. // Stability: Development
  1714. //
  1715. // Examples: "en", "en-US", "fr", "fr-FR"
  1716. // Note: This value is intended to be taken from the Navigator API
  1717. // `navigator.language`.
  1718. BrowserLanguageKey = attribute.Key("browser.language")
  1719. // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
  1720. // semantic conventions. It represents a boolean that is true if the browser is
  1721. // running on a mobile device.
  1722. //
  1723. // Type: boolean
  1724. // RequirementLevel: Recommended
  1725. // Stability: Development
  1726. //
  1727. // Examples:
  1728. // Note: This value is intended to be taken from the [UA client hints API] (
  1729. // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
  1730. // left unset.
  1731. //
  1732. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1733. BrowserMobileKey = attribute.Key("browser.mobile")
  1734. // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
  1735. // semantic conventions. It represents the platform on which the browser is
  1736. // running.
  1737. //
  1738. // Type: string
  1739. // RequirementLevel: Recommended
  1740. // Stability: Development
  1741. //
  1742. // Examples: "Windows", "macOS", "Android"
  1743. // Note: This value is intended to be taken from the [UA client hints API] (
  1744. // `navigator.userAgentData.platform`). If unavailable, the legacy
  1745. // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
  1746. // be left unset in order for the values to be consistent.
  1747. // The list of possible values is defined in the
  1748. // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
  1749. // these values can overlap with values in the
  1750. // [`os.type` and `os.name` attributes]. However, for consistency, the values in
  1751. // the `browser.platform` attribute should capture the exact value that the user
  1752. // agent provides.
  1753. //
  1754. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1755. // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
  1756. // [`os.type` and `os.name` attributes]: ./os.md
  1757. BrowserPlatformKey = attribute.Key("browser.platform")
  1758. )
  1759. // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
  1760. // semantic conventions. It represents the array of brand name and version
  1761. // separated by a space.
  1762. func BrowserBrands(val ...string) attribute.KeyValue {
  1763. return BrowserBrandsKey.StringSlice(val)
  1764. }
  1765. // BrowserLanguage returns an attribute KeyValue conforming to the
  1766. // "browser.language" semantic conventions. It represents the preferred language
  1767. // of the user using the browser.
  1768. func BrowserLanguage(val string) attribute.KeyValue {
  1769. return BrowserLanguageKey.String(val)
  1770. }
  1771. // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
  1772. // semantic conventions. It represents a boolean that is true if the browser is
  1773. // running on a mobile device.
  1774. func BrowserMobile(val bool) attribute.KeyValue {
  1775. return BrowserMobileKey.Bool(val)
  1776. }
  1777. // BrowserPlatform returns an attribute KeyValue conforming to the
  1778. // "browser.platform" semantic conventions. It represents the platform on which
  1779. // the browser is running.
  1780. func BrowserPlatform(val string) attribute.KeyValue {
  1781. return BrowserPlatformKey.String(val)
  1782. }
  1783. // Namespace: cassandra
  1784. const (
  1785. // CassandraConsistencyLevelKey is the attribute Key conforming to the
  1786. // "cassandra.consistency.level" semantic conventions. It represents the
  1787. // consistency level of the query. Based on consistency values from [CQL].
  1788. //
  1789. // Type: Enum
  1790. // RequirementLevel: Recommended
  1791. // Stability: Development
  1792. //
  1793. // Examples:
  1794. //
  1795. // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
  1796. CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
  1797. // CassandraCoordinatorDCKey is the attribute Key conforming to the
  1798. // "cassandra.coordinator.dc" semantic conventions. It represents the data
  1799. // center of the coordinating node for a query.
  1800. //
  1801. // Type: string
  1802. // RequirementLevel: Recommended
  1803. // Stability: Development
  1804. //
  1805. // Examples: us-west-2
  1806. CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
  1807. // CassandraCoordinatorIDKey is the attribute Key conforming to the
  1808. // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
  1809. // coordinating node for a query.
  1810. //
  1811. // Type: string
  1812. // RequirementLevel: Recommended
  1813. // Stability: Development
  1814. //
  1815. // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
  1816. CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
  1817. // CassandraPageSizeKey is the attribute Key conforming to the
  1818. // "cassandra.page.size" semantic conventions. It represents the fetch size used
  1819. // for paging, i.e. how many rows will be returned at once.
  1820. //
  1821. // Type: int
  1822. // RequirementLevel: Recommended
  1823. // Stability: Development
  1824. //
  1825. // Examples: 5000
  1826. CassandraPageSizeKey = attribute.Key("cassandra.page.size")
  1827. // CassandraQueryIdempotentKey is the attribute Key conforming to the
  1828. // "cassandra.query.idempotent" semantic conventions. It represents the whether
  1829. // or not the query is idempotent.
  1830. //
  1831. // Type: boolean
  1832. // RequirementLevel: Recommended
  1833. // Stability: Development
  1834. //
  1835. // Examples:
  1836. CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
  1837. // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
  1838. // "cassandra.speculative_execution.count" semantic conventions. It represents
  1839. // the number of times a query was speculatively executed. Not set or `0` if the
  1840. // query was not executed speculatively.
  1841. //
  1842. // Type: int
  1843. // RequirementLevel: Recommended
  1844. // Stability: Development
  1845. //
  1846. // Examples: 0, 2
  1847. CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
  1848. )
  1849. // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
  1850. // "cassandra.coordinator.dc" semantic conventions. It represents the data center
  1851. // of the coordinating node for a query.
  1852. func CassandraCoordinatorDC(val string) attribute.KeyValue {
  1853. return CassandraCoordinatorDCKey.String(val)
  1854. }
  1855. // CassandraCoordinatorID returns an attribute KeyValue conforming to the
  1856. // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
  1857. // coordinating node for a query.
  1858. func CassandraCoordinatorID(val string) attribute.KeyValue {
  1859. return CassandraCoordinatorIDKey.String(val)
  1860. }
  1861. // CassandraPageSize returns an attribute KeyValue conforming to the
  1862. // "cassandra.page.size" semantic conventions. It represents the fetch size used
  1863. // for paging, i.e. how many rows will be returned at once.
  1864. func CassandraPageSize(val int) attribute.KeyValue {
  1865. return CassandraPageSizeKey.Int(val)
  1866. }
  1867. // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
  1868. // "cassandra.query.idempotent" semantic conventions. It represents the whether
  1869. // or not the query is idempotent.
  1870. func CassandraQueryIdempotent(val bool) attribute.KeyValue {
  1871. return CassandraQueryIdempotentKey.Bool(val)
  1872. }
  1873. // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
  1874. // the "cassandra.speculative_execution.count" semantic conventions. It
  1875. // represents the number of times a query was speculatively executed. Not set or
  1876. // `0` if the query was not executed speculatively.
  1877. func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
  1878. return CassandraSpeculativeExecutionCountKey.Int(val)
  1879. }
  1880. // Enum values for cassandra.consistency.level
  1881. var (
  1882. // All
  1883. // Stability: development
  1884. CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
  1885. // Each Quorum
  1886. // Stability: development
  1887. CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
  1888. // Quorum
  1889. // Stability: development
  1890. CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
  1891. // Local Quorum
  1892. // Stability: development
  1893. CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
  1894. // One
  1895. // Stability: development
  1896. CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
  1897. // Two
  1898. // Stability: development
  1899. CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
  1900. // Three
  1901. // Stability: development
  1902. CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
  1903. // Local One
  1904. // Stability: development
  1905. CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
  1906. // Any
  1907. // Stability: development
  1908. CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
  1909. // Serial
  1910. // Stability: development
  1911. CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
  1912. // Local Serial
  1913. // Stability: development
  1914. CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
  1915. )
  1916. // Namespace: cicd
  1917. const (
  1918. // CICDPipelineActionNameKey is the attribute Key conforming to the
  1919. // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
  1920. // action a pipeline run is performing.
  1921. //
  1922. // Type: Enum
  1923. // RequirementLevel: Recommended
  1924. // Stability: Development
  1925. //
  1926. // Examples: "BUILD", "RUN", "SYNC"
  1927. CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
  1928. // CICDPipelineNameKey is the attribute Key conforming to the
  1929. // "cicd.pipeline.name" semantic conventions. It represents the human readable
  1930. // name of the pipeline within a CI/CD system.
  1931. //
  1932. // Type: string
  1933. // RequirementLevel: Recommended
  1934. // Stability: Development
  1935. //
  1936. // Examples: "Build and Test", "Lint", "Deploy Go Project",
  1937. // "deploy_to_environment"
  1938. CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
  1939. // CICDPipelineResultKey is the attribute Key conforming to the
  1940. // "cicd.pipeline.result" semantic conventions. It represents the result of a
  1941. // pipeline run.
  1942. //
  1943. // Type: Enum
  1944. // RequirementLevel: Recommended
  1945. // Stability: Development
  1946. //
  1947. // Examples: "success", "failure", "timeout", "skipped"
  1948. CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
  1949. // CICDPipelineRunIDKey is the attribute Key conforming to the
  1950. // "cicd.pipeline.run.id" semantic conventions. It represents the unique
  1951. // identifier of a pipeline run within a CI/CD system.
  1952. //
  1953. // Type: string
  1954. // RequirementLevel: Recommended
  1955. // Stability: Development
  1956. //
  1957. // Examples: "120912"
  1958. CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
  1959. // CICDPipelineRunStateKey is the attribute Key conforming to the
  1960. // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
  1961. // run goes through these states during its lifecycle.
  1962. //
  1963. // Type: Enum
  1964. // RequirementLevel: Recommended
  1965. // Stability: Development
  1966. //
  1967. // Examples: "pending", "executing", "finalizing"
  1968. CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
  1969. // CICDPipelineRunURLFullKey is the attribute Key conforming to the
  1970. // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
  1971. // the pipeline run, providing the complete address in order to locate and
  1972. // identify the pipeline run.
  1973. //
  1974. // Type: string
  1975. // RequirementLevel: Recommended
  1976. // Stability: Development
  1977. //
  1978. // Examples:
  1979. // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
  1980. //
  1981. // [URL]: https://wikipedia.org/wiki/URL
  1982. CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
  1983. // CICDPipelineTaskNameKey is the attribute Key conforming to the
  1984. // "cicd.pipeline.task.name" semantic conventions. It represents the human
  1985. // readable name of a task within a pipeline. Task here most closely aligns with
  1986. // a [computing process] in a pipeline. Other terms for tasks include commands,
  1987. // steps, and procedures.
  1988. //
  1989. // Type: string
  1990. // RequirementLevel: Recommended
  1991. // Stability: Development
  1992. //
  1993. // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
  1994. //
  1995. // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
  1996. CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
  1997. // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
  1998. // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
  1999. // identifier of a task run within a pipeline.
  2000. //
  2001. // Type: string
  2002. // RequirementLevel: Recommended
  2003. // Stability: Development
  2004. //
  2005. // Examples: "12097"
  2006. CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
  2007. // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
  2008. // "cicd.pipeline.task.run.result" semantic conventions. It represents the
  2009. // result of a task run.
  2010. //
  2011. // Type: Enum
  2012. // RequirementLevel: Recommended
  2013. // Stability: Development
  2014. //
  2015. // Examples: "success", "failure", "timeout", "skipped"
  2016. CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
  2017. // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
  2018. // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
  2019. // [URL] of the pipeline task run, providing the complete address in order to
  2020. // locate and identify the pipeline task run.
  2021. //
  2022. // Type: string
  2023. // RequirementLevel: Recommended
  2024. // Stability: Development
  2025. //
  2026. // Examples:
  2027. // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
  2028. //
  2029. // [URL]: https://wikipedia.org/wiki/URL
  2030. CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
  2031. // CICDPipelineTaskTypeKey is the attribute Key conforming to the
  2032. // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
  2033. // task within a pipeline.
  2034. //
  2035. // Type: Enum
  2036. // RequirementLevel: Recommended
  2037. // Stability: Development
  2038. //
  2039. // Examples: "build", "test", "deploy"
  2040. CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
  2041. // CICDSystemComponentKey is the attribute Key conforming to the
  2042. // "cicd.system.component" semantic conventions. It represents the name of a
  2043. // component of the CICD system.
  2044. //
  2045. // Type: string
  2046. // RequirementLevel: Recommended
  2047. // Stability: Development
  2048. //
  2049. // Examples: "controller", "scheduler", "agent"
  2050. CICDSystemComponentKey = attribute.Key("cicd.system.component")
  2051. // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
  2052. // semantic conventions. It represents the unique identifier of a worker within
  2053. // a CICD system.
  2054. //
  2055. // Type: string
  2056. // RequirementLevel: Recommended
  2057. // Stability: Development
  2058. //
  2059. // Examples: "abc123", "10.0.1.2", "controller"
  2060. CICDWorkerIDKey = attribute.Key("cicd.worker.id")
  2061. // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
  2062. // semantic conventions. It represents the name of a worker within a CICD
  2063. // system.
  2064. //
  2065. // Type: string
  2066. // RequirementLevel: Recommended
  2067. // Stability: Development
  2068. //
  2069. // Examples: "agent-abc", "controller", "Ubuntu LTS"
  2070. CICDWorkerNameKey = attribute.Key("cicd.worker.name")
  2071. // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
  2072. // semantic conventions. It represents the state of a CICD worker / agent.
  2073. //
  2074. // Type: Enum
  2075. // RequirementLevel: Recommended
  2076. // Stability: Development
  2077. //
  2078. // Examples: "idle", "busy", "down"
  2079. CICDWorkerStateKey = attribute.Key("cicd.worker.state")
  2080. // CICDWorkerURLFullKey is the attribute Key conforming to the
  2081. // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
  2082. // worker, providing the complete address in order to locate and identify the
  2083. // worker.
  2084. //
  2085. // Type: string
  2086. // RequirementLevel: Recommended
  2087. // Stability: Development
  2088. //
  2089. // Examples: "https://cicd.example.org/worker/abc123"
  2090. //
  2091. // [URL]: https://wikipedia.org/wiki/URL
  2092. CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
  2093. )
  2094. // CICDPipelineName returns an attribute KeyValue conforming to the
  2095. // "cicd.pipeline.name" semantic conventions. It represents the human readable
  2096. // name of the pipeline within a CI/CD system.
  2097. func CICDPipelineName(val string) attribute.KeyValue {
  2098. return CICDPipelineNameKey.String(val)
  2099. }
  2100. // CICDPipelineRunID returns an attribute KeyValue conforming to the
  2101. // "cicd.pipeline.run.id" semantic conventions. It represents the unique
  2102. // identifier of a pipeline run within a CI/CD system.
  2103. func CICDPipelineRunID(val string) attribute.KeyValue {
  2104. return CICDPipelineRunIDKey.String(val)
  2105. }
  2106. // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
  2107. // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
  2108. // the pipeline run, providing the complete address in order to locate and
  2109. // identify the pipeline run.
  2110. //
  2111. // [URL]: https://wikipedia.org/wiki/URL
  2112. func CICDPipelineRunURLFull(val string) attribute.KeyValue {
  2113. return CICDPipelineRunURLFullKey.String(val)
  2114. }
  2115. // CICDPipelineTaskName returns an attribute KeyValue conforming to the
  2116. // "cicd.pipeline.task.name" semantic conventions. It represents the human
  2117. // readable name of a task within a pipeline. Task here most closely aligns with
  2118. // a [computing process] in a pipeline. Other terms for tasks include commands,
  2119. // steps, and procedures.
  2120. //
  2121. // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
  2122. func CICDPipelineTaskName(val string) attribute.KeyValue {
  2123. return CICDPipelineTaskNameKey.String(val)
  2124. }
  2125. // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
  2126. // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
  2127. // identifier of a task run within a pipeline.
  2128. func CICDPipelineTaskRunID(val string) attribute.KeyValue {
  2129. return CICDPipelineTaskRunIDKey.String(val)
  2130. }
  2131. // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
  2132. // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
  2133. // [URL] of the pipeline task run, providing the complete address in order to
  2134. // locate and identify the pipeline task run.
  2135. //
  2136. // [URL]: https://wikipedia.org/wiki/URL
  2137. func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
  2138. return CICDPipelineTaskRunURLFullKey.String(val)
  2139. }
  2140. // CICDSystemComponent returns an attribute KeyValue conforming to the
  2141. // "cicd.system.component" semantic conventions. It represents the name of a
  2142. // component of the CICD system.
  2143. func CICDSystemComponent(val string) attribute.KeyValue {
  2144. return CICDSystemComponentKey.String(val)
  2145. }
  2146. // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
  2147. // semantic conventions. It represents the unique identifier of a worker within a
  2148. // CICD system.
  2149. func CICDWorkerID(val string) attribute.KeyValue {
  2150. return CICDWorkerIDKey.String(val)
  2151. }
  2152. // CICDWorkerName returns an attribute KeyValue conforming to the
  2153. // "cicd.worker.name" semantic conventions. It represents the name of a worker
  2154. // within a CICD system.
  2155. func CICDWorkerName(val string) attribute.KeyValue {
  2156. return CICDWorkerNameKey.String(val)
  2157. }
  2158. // CICDWorkerURLFull returns an attribute KeyValue conforming to the
  2159. // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
  2160. // worker, providing the complete address in order to locate and identify the
  2161. // worker.
  2162. //
  2163. // [URL]: https://wikipedia.org/wiki/URL
  2164. func CICDWorkerURLFull(val string) attribute.KeyValue {
  2165. return CICDWorkerURLFullKey.String(val)
  2166. }
  2167. // Enum values for cicd.pipeline.action.name
  2168. var (
  2169. // The pipeline run is executing a build.
  2170. // Stability: development
  2171. CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
  2172. // The pipeline run is executing.
  2173. // Stability: development
  2174. CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
  2175. // The pipeline run is executing a sync.
  2176. // Stability: development
  2177. CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
  2178. )
  2179. // Enum values for cicd.pipeline.result
  2180. var (
  2181. // The pipeline run finished successfully.
  2182. // Stability: development
  2183. CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
  2184. // The pipeline run did not finish successfully, eg. due to a compile error or a
  2185. // failing test. Such failures are usually detected by non-zero exit codes of
  2186. // the tools executed in the pipeline run.
  2187. // Stability: development
  2188. CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
  2189. // The pipeline run failed due to an error in the CICD system, eg. due to the
  2190. // worker being killed.
  2191. // Stability: development
  2192. CICDPipelineResultError = CICDPipelineResultKey.String("error")
  2193. // A timeout caused the pipeline run to be interrupted.
  2194. // Stability: development
  2195. CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
  2196. // The pipeline run was cancelled, eg. by a user manually cancelling the
  2197. // pipeline run.
  2198. // Stability: development
  2199. CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
  2200. // The pipeline run was skipped, eg. due to a precondition not being met.
  2201. // Stability: development
  2202. CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
  2203. )
  2204. // Enum values for cicd.pipeline.run.state
  2205. var (
  2206. // The run pending state spans from the event triggering the pipeline run until
  2207. // the execution of the run starts (eg. time spent in a queue, provisioning
  2208. // agents, creating run resources).
  2209. //
  2210. // Stability: development
  2211. CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
  2212. // The executing state spans the execution of any run tasks (eg. build, test).
  2213. // Stability: development
  2214. CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
  2215. // The finalizing state spans from when the run has finished executing (eg.
  2216. // cleanup of run resources).
  2217. // Stability: development
  2218. CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
  2219. )
  2220. // Enum values for cicd.pipeline.task.run.result
  2221. var (
  2222. // The task run finished successfully.
  2223. // Stability: development
  2224. CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
  2225. // The task run did not finish successfully, eg. due to a compile error or a
  2226. // failing test. Such failures are usually detected by non-zero exit codes of
  2227. // the tools executed in the task run.
  2228. // Stability: development
  2229. CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
  2230. // The task run failed due to an error in the CICD system, eg. due to the worker
  2231. // being killed.
  2232. // Stability: development
  2233. CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
  2234. // A timeout caused the task run to be interrupted.
  2235. // Stability: development
  2236. CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
  2237. // The task run was cancelled, eg. by a user manually cancelling the task run.
  2238. // Stability: development
  2239. CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
  2240. // The task run was skipped, eg. due to a precondition not being met.
  2241. // Stability: development
  2242. CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
  2243. )
  2244. // Enum values for cicd.pipeline.task.type
  2245. var (
  2246. // build
  2247. // Stability: development
  2248. CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
  2249. // test
  2250. // Stability: development
  2251. CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
  2252. // deploy
  2253. // Stability: development
  2254. CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
  2255. )
  2256. // Enum values for cicd.worker.state
  2257. var (
  2258. // The worker is not performing work for the CICD system. It is available to the
  2259. // CICD system to perform work on (online / idle).
  2260. // Stability: development
  2261. CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
  2262. // The worker is performing work for the CICD system.
  2263. // Stability: development
  2264. CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
  2265. // The worker is not available to the CICD system (disconnected / down).
  2266. // Stability: development
  2267. CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
  2268. )
  2269. // Namespace: client
  2270. const (
  2271. // ClientAddressKey is the attribute Key conforming to the "client.address"
  2272. // semantic conventions. It represents the client address - domain name if
  2273. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  2274. // socket name.
  2275. //
  2276. // Type: string
  2277. // RequirementLevel: Recommended
  2278. // Stability: Stable
  2279. //
  2280. // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
  2281. // Note: When observed from the server side, and when communicating through an
  2282. // intermediary, `client.address` SHOULD represent the client address behind any
  2283. // intermediaries, for example proxies, if it's available.
  2284. ClientAddressKey = attribute.Key("client.address")
  2285. // ClientPortKey is the attribute Key conforming to the "client.port" semantic
  2286. // conventions. It represents the client port number.
  2287. //
  2288. // Type: int
  2289. // RequirementLevel: Recommended
  2290. // Stability: Stable
  2291. //
  2292. // Examples: 65123
  2293. // Note: When observed from the server side, and when communicating through an
  2294. // intermediary, `client.port` SHOULD represent the client port behind any
  2295. // intermediaries, for example proxies, if it's available.
  2296. ClientPortKey = attribute.Key("client.port")
  2297. )
  2298. // ClientAddress returns an attribute KeyValue conforming to the "client.address"
  2299. // semantic conventions. It represents the client address - domain name if
  2300. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  2301. // socket name.
  2302. func ClientAddress(val string) attribute.KeyValue {
  2303. return ClientAddressKey.String(val)
  2304. }
  2305. // ClientPort returns an attribute KeyValue conforming to the "client.port"
  2306. // semantic conventions. It represents the client port number.
  2307. func ClientPort(val int) attribute.KeyValue {
  2308. return ClientPortKey.Int(val)
  2309. }
  2310. // Namespace: cloud
  2311. const (
  2312. // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
  2313. // semantic conventions. It represents the cloud account ID the resource is
  2314. // assigned to.
  2315. //
  2316. // Type: string
  2317. // RequirementLevel: Recommended
  2318. // Stability: Development
  2319. //
  2320. // Examples: "111111111111", "opentelemetry"
  2321. CloudAccountIDKey = attribute.Key("cloud.account.id")
  2322. // CloudAvailabilityZoneKey is the attribute Key conforming to the
  2323. // "cloud.availability_zone" semantic conventions. It represents the cloud
  2324. // regions often have multiple, isolated locations known as zones to increase
  2325. // availability. Availability zone represents the zone where the resource is
  2326. // running.
  2327. //
  2328. // Type: string
  2329. // RequirementLevel: Recommended
  2330. // Stability: Development
  2331. //
  2332. // Examples: "us-east-1c"
  2333. // Note: Availability zones are called "zones" on Alibaba Cloud and Google
  2334. // Cloud.
  2335. CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
  2336. // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
  2337. // semantic conventions. It represents the cloud platform in use.
  2338. //
  2339. // Type: Enum
  2340. // RequirementLevel: Recommended
  2341. // Stability: Development
  2342. //
  2343. // Examples:
  2344. // Note: The prefix of the service SHOULD match the one specified in
  2345. // `cloud.provider`.
  2346. CloudPlatformKey = attribute.Key("cloud.platform")
  2347. // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
  2348. // semantic conventions. It represents the name of the cloud provider.
  2349. //
  2350. // Type: Enum
  2351. // RequirementLevel: Recommended
  2352. // Stability: Development
  2353. //
  2354. // Examples:
  2355. CloudProviderKey = attribute.Key("cloud.provider")
  2356. // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
  2357. // conventions. It represents the geographical region within a cloud provider.
  2358. // When associated with a resource, this attribute specifies the region where
  2359. // the resource operates. When calling services or APIs deployed on a cloud,
  2360. // this attribute identifies the region where the called destination is
  2361. // deployed.
  2362. //
  2363. // Type: string
  2364. // RequirementLevel: Recommended
  2365. // Stability: Development
  2366. //
  2367. // Examples: "us-central1", "us-east-1"
  2368. // Note: Refer to your provider's docs to see the available regions, for example
  2369. // [Alibaba Cloud regions], [AWS regions], [Azure regions],
  2370. // [Google Cloud regions], or [Tencent Cloud regions].
  2371. //
  2372. // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
  2373. // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
  2374. // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
  2375. // [Google Cloud regions]: https://cloud.google.com/about/locations
  2376. // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
  2377. CloudRegionKey = attribute.Key("cloud.region")
  2378. // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
  2379. // semantic conventions. It represents the cloud provider-specific native
  2380. // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
  2381. // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
  2382. //
  2383. // Type: string
  2384. // RequirementLevel: Recommended
  2385. // Stability: Development
  2386. //
  2387. // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
  2388. // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
  2389. // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
  2390. // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
  2391. // Note: On some cloud providers, it may not be possible to determine the full
  2392. // ID at startup,
  2393. // so it may be necessary to set `cloud.resource_id` as a span attribute
  2394. // instead.
  2395. //
  2396. // The exact value to use for `cloud.resource_id` depends on the cloud provider.
  2397. // The following well-known definitions MUST be used if you set this attribute
  2398. // and they apply:
  2399. //
  2400. // - **AWS Lambda:** The function [ARN].
  2401. // Take care not to use the "invoked ARN" directly but replace any
  2402. // [alias suffix]
  2403. // with the resolved function version, as the same runtime instance may be
  2404. // invocable with
  2405. // multiple different aliases.
  2406. // - **GCP:** The [URI of the resource]
  2407. // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
  2408. // *not* the function app, having the form
  2409. //
  2410. // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
  2411. // .
  2412. // This means that a span attribute MUST be used, as an Azure function app
  2413. // can host multiple functions that would usually share
  2414. // a TracerProvider.
  2415. //
  2416. //
  2417. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2418. // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2419. // [full resource name]: https://google.aip.dev/122#full-resource-names
  2420. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2421. // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
  2422. // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
  2423. // [Fully Qualified Resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2424. CloudResourceIDKey = attribute.Key("cloud.resource_id")
  2425. )
  2426. // CloudAccountID returns an attribute KeyValue conforming to the
  2427. // "cloud.account.id" semantic conventions. It represents the cloud account ID
  2428. // the resource is assigned to.
  2429. func CloudAccountID(val string) attribute.KeyValue {
  2430. return CloudAccountIDKey.String(val)
  2431. }
  2432. // CloudAvailabilityZone returns an attribute KeyValue conforming to the
  2433. // "cloud.availability_zone" semantic conventions. It represents the cloud
  2434. // regions often have multiple, isolated locations known as zones to increase
  2435. // availability. Availability zone represents the zone where the resource is
  2436. // running.
  2437. func CloudAvailabilityZone(val string) attribute.KeyValue {
  2438. return CloudAvailabilityZoneKey.String(val)
  2439. }
  2440. // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
  2441. // semantic conventions. It represents the geographical region within a cloud
  2442. // provider. When associated with a resource, this attribute specifies the region
  2443. // where the resource operates. When calling services or APIs deployed on a
  2444. // cloud, this attribute identifies the region where the called destination is
  2445. // deployed.
  2446. func CloudRegion(val string) attribute.KeyValue {
  2447. return CloudRegionKey.String(val)
  2448. }
  2449. // CloudResourceID returns an attribute KeyValue conforming to the
  2450. // "cloud.resource_id" semantic conventions. It represents the cloud
  2451. // provider-specific native identifier of the monitored cloud resource (e.g. an
  2452. // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
  2453. // on GCP).
  2454. //
  2455. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2456. // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2457. // [full resource name]: https://google.aip.dev/122#full-resource-names
  2458. func CloudResourceID(val string) attribute.KeyValue {
  2459. return CloudResourceIDKey.String(val)
  2460. }
  2461. // Enum values for cloud.platform
  2462. var (
  2463. // Akamai Cloud Compute
  2464. // Stability: development
  2465. CloudPlatformAkamaiCloudCompute = CloudPlatformKey.String("akamai_cloud.compute")
  2466. // Alibaba Cloud Elastic Compute Service
  2467. // Stability: development
  2468. CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
  2469. // Alibaba Cloud Function Compute
  2470. // Stability: development
  2471. CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
  2472. // Red Hat OpenShift on Alibaba Cloud
  2473. // Stability: development
  2474. CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
  2475. // AWS Elastic Compute Cloud
  2476. // Stability: development
  2477. CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
  2478. // AWS Elastic Container Service
  2479. // Stability: development
  2480. CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
  2481. // AWS Elastic Kubernetes Service
  2482. // Stability: development
  2483. CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
  2484. // AWS Lambda
  2485. // Stability: development
  2486. CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
  2487. // AWS Elastic Beanstalk
  2488. // Stability: development
  2489. CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
  2490. // AWS App Runner
  2491. // Stability: development
  2492. CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
  2493. // Red Hat OpenShift on AWS (ROSA)
  2494. // Stability: development
  2495. CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
  2496. // Azure Virtual Machines
  2497. // Stability: development
  2498. CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
  2499. // Azure Container Apps
  2500. // Stability: development
  2501. CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
  2502. // Azure Container Instances
  2503. // Stability: development
  2504. CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
  2505. // Azure Kubernetes Service
  2506. // Stability: development
  2507. CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
  2508. // Azure Functions
  2509. // Stability: development
  2510. CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
  2511. // Azure App Service
  2512. // Stability: development
  2513. CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
  2514. // Azure Red Hat OpenShift
  2515. // Stability: development
  2516. CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
  2517. // Google Vertex AI Agent Engine
  2518. // Stability: development
  2519. CloudPlatformGCPAgentEngine = CloudPlatformKey.String("gcp.agent_engine")
  2520. // Google Bare Metal Solution (BMS)
  2521. // Stability: development
  2522. CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
  2523. // Google Cloud Compute Engine (GCE)
  2524. // Stability: development
  2525. CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
  2526. // Google Cloud Run
  2527. // Stability: development
  2528. CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
  2529. // Google Cloud Kubernetes Engine (GKE)
  2530. // Stability: development
  2531. CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
  2532. // Google Cloud Functions (GCF)
  2533. // Stability: development
  2534. CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
  2535. // Google Cloud App Engine (GAE)
  2536. // Stability: development
  2537. CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
  2538. // Red Hat OpenShift on Google Cloud
  2539. // Stability: development
  2540. CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
  2541. // Server on Hetzner Cloud
  2542. // Stability: development
  2543. CloudPlatformHetznerCloudServer = CloudPlatformKey.String("hetzner.cloud_server")
  2544. // Red Hat OpenShift on IBM Cloud
  2545. // Stability: development
  2546. CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
  2547. // Compute on Oracle Cloud Infrastructure (OCI)
  2548. // Stability: development
  2549. CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
  2550. // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
  2551. // Stability: development
  2552. CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
  2553. // Tencent Cloud Cloud Virtual Machine (CVM)
  2554. // Stability: development
  2555. CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
  2556. // Tencent Cloud Elastic Kubernetes Service (EKS)
  2557. // Stability: development
  2558. CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
  2559. // Tencent Cloud Serverless Cloud Function (SCF)
  2560. // Stability: development
  2561. CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
  2562. // Vultr Cloud Compute
  2563. // Stability: development
  2564. CloudPlatformVultrCloudCompute = CloudPlatformKey.String("vultr.cloud_compute")
  2565. )
  2566. // Enum values for cloud.provider
  2567. var (
  2568. // Akamai Cloud
  2569. // Stability: development
  2570. CloudProviderAkamaiCloud = CloudProviderKey.String("akamai_cloud")
  2571. // Alibaba Cloud
  2572. // Stability: development
  2573. CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
  2574. // Amazon Web Services
  2575. // Stability: development
  2576. CloudProviderAWS = CloudProviderKey.String("aws")
  2577. // Microsoft Azure
  2578. // Stability: development
  2579. CloudProviderAzure = CloudProviderKey.String("azure")
  2580. // Google Cloud Platform
  2581. // Stability: development
  2582. CloudProviderGCP = CloudProviderKey.String("gcp")
  2583. // Heroku Platform as a Service
  2584. // Stability: development
  2585. CloudProviderHeroku = CloudProviderKey.String("heroku")
  2586. // Hetzner
  2587. // Stability: development
  2588. CloudProviderHetzner = CloudProviderKey.String("hetzner")
  2589. // IBM Cloud
  2590. // Stability: development
  2591. CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
  2592. // Oracle Cloud Infrastructure (OCI)
  2593. // Stability: development
  2594. CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
  2595. // Tencent Cloud
  2596. // Stability: development
  2597. CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
  2598. // Vultr
  2599. // Stability: development
  2600. CloudProviderVultr = CloudProviderKey.String("vultr")
  2601. )
  2602. // Namespace: cloudevents
  2603. const (
  2604. // CloudEventsEventIDKey is the attribute Key conforming to the
  2605. // "cloudevents.event_id" semantic conventions. It represents the [event_id]
  2606. // uniquely identifies the event.
  2607. //
  2608. // Type: string
  2609. // RequirementLevel: Recommended
  2610. // Stability: Development
  2611. //
  2612. // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
  2613. //
  2614. // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
  2615. CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
  2616. // CloudEventsEventSourceKey is the attribute Key conforming to the
  2617. // "cloudevents.event_source" semantic conventions. It represents the [source]
  2618. // identifies the context in which an event happened.
  2619. //
  2620. // Type: string
  2621. // RequirementLevel: Recommended
  2622. // Stability: Development
  2623. //
  2624. // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
  2625. // "my-service"
  2626. //
  2627. // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
  2628. CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
  2629. // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
  2630. // "cloudevents.event_spec_version" semantic conventions. It represents the
  2631. // [version of the CloudEvents specification] which the event uses.
  2632. //
  2633. // Type: string
  2634. // RequirementLevel: Recommended
  2635. // Stability: Development
  2636. //
  2637. // Examples: 1.0
  2638. //
  2639. // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
  2640. CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
  2641. // CloudEventsEventSubjectKey is the attribute Key conforming to the
  2642. // "cloudevents.event_subject" semantic conventions. It represents the [subject]
  2643. // of the event in the context of the event producer (identified by source).
  2644. //
  2645. // Type: string
  2646. // RequirementLevel: Recommended
  2647. // Stability: Development
  2648. //
  2649. // Examples: mynewfile.jpg
  2650. //
  2651. // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
  2652. CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
  2653. // CloudEventsEventTypeKey is the attribute Key conforming to the
  2654. // "cloudevents.event_type" semantic conventions. It represents the [event_type]
  2655. // contains a value describing the type of event related to the originating
  2656. // occurrence.
  2657. //
  2658. // Type: string
  2659. // RequirementLevel: Recommended
  2660. // Stability: Development
  2661. //
  2662. // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
  2663. //
  2664. // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
  2665. CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
  2666. )
  2667. // CloudEventsEventID returns an attribute KeyValue conforming to the
  2668. // "cloudevents.event_id" semantic conventions. It represents the [event_id]
  2669. // uniquely identifies the event.
  2670. //
  2671. // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
  2672. func CloudEventsEventID(val string) attribute.KeyValue {
  2673. return CloudEventsEventIDKey.String(val)
  2674. }
  2675. // CloudEventsEventSource returns an attribute KeyValue conforming to the
  2676. // "cloudevents.event_source" semantic conventions. It represents the [source]
  2677. // identifies the context in which an event happened.
  2678. //
  2679. // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
  2680. func CloudEventsEventSource(val string) attribute.KeyValue {
  2681. return CloudEventsEventSourceKey.String(val)
  2682. }
  2683. // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
  2684. // "cloudevents.event_spec_version" semantic conventions. It represents the
  2685. // [version of the CloudEvents specification] which the event uses.
  2686. //
  2687. // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
  2688. func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
  2689. return CloudEventsEventSpecVersionKey.String(val)
  2690. }
  2691. // CloudEventsEventSubject returns an attribute KeyValue conforming to the
  2692. // "cloudevents.event_subject" semantic conventions. It represents the [subject]
  2693. // of the event in the context of the event producer (identified by source).
  2694. //
  2695. // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
  2696. func CloudEventsEventSubject(val string) attribute.KeyValue {
  2697. return CloudEventsEventSubjectKey.String(val)
  2698. }
  2699. // CloudEventsEventType returns an attribute KeyValue conforming to the
  2700. // "cloudevents.event_type" semantic conventions. It represents the [event_type]
  2701. // contains a value describing the type of event related to the originating
  2702. // occurrence.
  2703. //
  2704. // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
  2705. func CloudEventsEventType(val string) attribute.KeyValue {
  2706. return CloudEventsEventTypeKey.String(val)
  2707. }
  2708. // Namespace: cloudfoundry
  2709. const (
  2710. // CloudFoundryAppIDKey is the attribute Key conforming to the
  2711. // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
  2712. // application.
  2713. //
  2714. // Type: string
  2715. // RequirementLevel: Recommended
  2716. // Stability: Development
  2717. //
  2718. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2719. // Note: Application instrumentation should use the value from environment
  2720. // variable `VCAP_APPLICATION.application_id`. This is the same value as
  2721. // reported by `cf app <app-name> --guid`.
  2722. CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
  2723. // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
  2724. // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
  2725. // of the application instance. 0 when just one instance is active.
  2726. //
  2727. // Type: string
  2728. // RequirementLevel: Recommended
  2729. // Stability: Development
  2730. //
  2731. // Examples: "0", "1"
  2732. // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
  2733. // .
  2734. // It is used for logs and metrics emitted by CloudFoundry. It is
  2735. // supposed to contain the application instance index for applications
  2736. // deployed on the runtime.
  2737. //
  2738. // Application instrumentation should use the value from environment
  2739. // variable `CF_INSTANCE_INDEX`.
  2740. //
  2741. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2742. CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
  2743. // CloudFoundryAppNameKey is the attribute Key conforming to the
  2744. // "cloudfoundry.app.name" semantic conventions. It represents the name of the
  2745. // application.
  2746. //
  2747. // Type: string
  2748. // RequirementLevel: Recommended
  2749. // Stability: Development
  2750. //
  2751. // Examples: "my-app-name"
  2752. // Note: Application instrumentation should use the value from environment
  2753. // variable `VCAP_APPLICATION.application_name`. This is the same value
  2754. // as reported by `cf apps`.
  2755. CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
  2756. // CloudFoundryOrgIDKey is the attribute Key conforming to the
  2757. // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
  2758. // CloudFoundry org the application is running in.
  2759. //
  2760. // Type: string
  2761. // RequirementLevel: Recommended
  2762. // Stability: Development
  2763. //
  2764. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2765. // Note: Application instrumentation should use the value from environment
  2766. // variable `VCAP_APPLICATION.org_id`. This is the same value as
  2767. // reported by `cf org <org-name> --guid`.
  2768. CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
  2769. // CloudFoundryOrgNameKey is the attribute Key conforming to the
  2770. // "cloudfoundry.org.name" semantic conventions. It represents the name of the
  2771. // CloudFoundry organization the app is running in.
  2772. //
  2773. // Type: string
  2774. // RequirementLevel: Recommended
  2775. // Stability: Development
  2776. //
  2777. // Examples: "my-org-name"
  2778. // Note: Application instrumentation should use the value from environment
  2779. // variable `VCAP_APPLICATION.org_name`. This is the same value as
  2780. // reported by `cf orgs`.
  2781. CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
  2782. // CloudFoundryProcessIDKey is the attribute Key conforming to the
  2783. // "cloudfoundry.process.id" semantic conventions. It represents the UID
  2784. // identifying the process.
  2785. //
  2786. // Type: string
  2787. // RequirementLevel: Recommended
  2788. // Stability: Development
  2789. //
  2790. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2791. // Note: Application instrumentation should use the value from environment
  2792. // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
  2793. // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
  2794. // For system components, this could be the actual PID.
  2795. CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
  2796. // CloudFoundryProcessTypeKey is the attribute Key conforming to the
  2797. // "cloudfoundry.process.type" semantic conventions. It represents the type of
  2798. // process.
  2799. //
  2800. // Type: string
  2801. // RequirementLevel: Recommended
  2802. // Stability: Development
  2803. //
  2804. // Examples: "web"
  2805. // Note: CloudFoundry applications can consist of multiple jobs. Usually the
  2806. // main process will be of type `web`. There can be additional background
  2807. // tasks or side-cars with different process types.
  2808. CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
  2809. // CloudFoundrySpaceIDKey is the attribute Key conforming to the
  2810. // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
  2811. // CloudFoundry space the application is running in.
  2812. //
  2813. // Type: string
  2814. // RequirementLevel: Recommended
  2815. // Stability: Development
  2816. //
  2817. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2818. // Note: Application instrumentation should use the value from environment
  2819. // variable `VCAP_APPLICATION.space_id`. This is the same value as
  2820. // reported by `cf space <space-name> --guid`.
  2821. CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
  2822. // CloudFoundrySpaceNameKey is the attribute Key conforming to the
  2823. // "cloudfoundry.space.name" semantic conventions. It represents the name of the
  2824. // CloudFoundry space the application is running in.
  2825. //
  2826. // Type: string
  2827. // RequirementLevel: Recommended
  2828. // Stability: Development
  2829. //
  2830. // Examples: "my-space-name"
  2831. // Note: Application instrumentation should use the value from environment
  2832. // variable `VCAP_APPLICATION.space_name`. This is the same value as
  2833. // reported by `cf spaces`.
  2834. CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
  2835. // CloudFoundrySystemIDKey is the attribute Key conforming to the
  2836. // "cloudfoundry.system.id" semantic conventions. It represents a guid or
  2837. // another name describing the event source.
  2838. //
  2839. // Type: string
  2840. // RequirementLevel: Recommended
  2841. // Stability: Development
  2842. //
  2843. // Examples: "cf/gorouter"
  2844. // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
  2845. // It is used for logs and metrics emitted by CloudFoundry. It is
  2846. // supposed to contain the component name, e.g. "gorouter", for
  2847. // CloudFoundry components.
  2848. //
  2849. // When system components are instrumented, values from the
  2850. // [Bosh spec]
  2851. // should be used. The `system.id` should be set to
  2852. // `spec.deployment/spec.name`.
  2853. //
  2854. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2855. // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
  2856. CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
  2857. // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
  2858. // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
  2859. // describing the concrete instance of the event source.
  2860. //
  2861. // Type: string
  2862. // RequirementLevel: Recommended
  2863. // Stability: Development
  2864. //
  2865. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2866. // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
  2867. // .
  2868. // It is used for logs and metrics emitted by CloudFoundry. It is
  2869. // supposed to contain the vm id for CloudFoundry components.
  2870. //
  2871. // When system components are instrumented, values from the
  2872. // [Bosh spec]
  2873. // should be used. The `system.instance.id` should be set to `spec.id`.
  2874. //
  2875. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2876. // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
  2877. CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
  2878. )
  2879. // CloudFoundryAppID returns an attribute KeyValue conforming to the
  2880. // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
  2881. // application.
  2882. func CloudFoundryAppID(val string) attribute.KeyValue {
  2883. return CloudFoundryAppIDKey.String(val)
  2884. }
  2885. // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
  2886. // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
  2887. // of the application instance. 0 when just one instance is active.
  2888. func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
  2889. return CloudFoundryAppInstanceIDKey.String(val)
  2890. }
  2891. // CloudFoundryAppName returns an attribute KeyValue conforming to the
  2892. // "cloudfoundry.app.name" semantic conventions. It represents the name of the
  2893. // application.
  2894. func CloudFoundryAppName(val string) attribute.KeyValue {
  2895. return CloudFoundryAppNameKey.String(val)
  2896. }
  2897. // CloudFoundryOrgID returns an attribute KeyValue conforming to the
  2898. // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
  2899. // CloudFoundry org the application is running in.
  2900. func CloudFoundryOrgID(val string) attribute.KeyValue {
  2901. return CloudFoundryOrgIDKey.String(val)
  2902. }
  2903. // CloudFoundryOrgName returns an attribute KeyValue conforming to the
  2904. // "cloudfoundry.org.name" semantic conventions. It represents the name of the
  2905. // CloudFoundry organization the app is running in.
  2906. func CloudFoundryOrgName(val string) attribute.KeyValue {
  2907. return CloudFoundryOrgNameKey.String(val)
  2908. }
  2909. // CloudFoundryProcessID returns an attribute KeyValue conforming to the
  2910. // "cloudfoundry.process.id" semantic conventions. It represents the UID
  2911. // identifying the process.
  2912. func CloudFoundryProcessID(val string) attribute.KeyValue {
  2913. return CloudFoundryProcessIDKey.String(val)
  2914. }
  2915. // CloudFoundryProcessType returns an attribute KeyValue conforming to the
  2916. // "cloudfoundry.process.type" semantic conventions. It represents the type of
  2917. // process.
  2918. func CloudFoundryProcessType(val string) attribute.KeyValue {
  2919. return CloudFoundryProcessTypeKey.String(val)
  2920. }
  2921. // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
  2922. // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
  2923. // CloudFoundry space the application is running in.
  2924. func CloudFoundrySpaceID(val string) attribute.KeyValue {
  2925. return CloudFoundrySpaceIDKey.String(val)
  2926. }
  2927. // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
  2928. // "cloudfoundry.space.name" semantic conventions. It represents the name of the
  2929. // CloudFoundry space the application is running in.
  2930. func CloudFoundrySpaceName(val string) attribute.KeyValue {
  2931. return CloudFoundrySpaceNameKey.String(val)
  2932. }
  2933. // CloudFoundrySystemID returns an attribute KeyValue conforming to the
  2934. // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
  2935. // name describing the event source.
  2936. func CloudFoundrySystemID(val string) attribute.KeyValue {
  2937. return CloudFoundrySystemIDKey.String(val)
  2938. }
  2939. // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
  2940. // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
  2941. // describing the concrete instance of the event source.
  2942. func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
  2943. return CloudFoundrySystemInstanceIDKey.String(val)
  2944. }
  2945. // Namespace: code
  2946. const (
  2947. // CodeColumnNumberKey is the attribute Key conforming to the
  2948. // "code.column.number" semantic conventions. It represents the column number in
  2949. // `code.file.path` best representing the operation. It SHOULD point within the
  2950. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  2951. // the Profile signal since the data is already captured in 'message Line'. This
  2952. // constraint is imposed to prevent redundancy and maintain data integrity.
  2953. //
  2954. // Type: int
  2955. // RequirementLevel: Recommended
  2956. // Stability: Stable
  2957. CodeColumnNumberKey = attribute.Key("code.column.number")
  2958. // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
  2959. // semantic conventions. It represents the source code file name that identifies
  2960. // the code unit as uniquely as possible (preferably an absolute file path).
  2961. // This attribute MUST NOT be used on the Profile signal since the data is
  2962. // already captured in 'message Function'. This constraint is imposed to prevent
  2963. // redundancy and maintain data integrity.
  2964. //
  2965. // Type: string
  2966. // RequirementLevel: Recommended
  2967. // Stability: Stable
  2968. //
  2969. // Examples: /usr/local/MyApplication/content_root/app/index.php
  2970. CodeFilePathKey = attribute.Key("code.file.path")
  2971. // CodeFunctionNameKey is the attribute Key conforming to the
  2972. // "code.function.name" semantic conventions. It represents the method or
  2973. // function fully-qualified name without arguments. The value should fit the
  2974. // natural representation of the language runtime, which is also likely the same
  2975. // used within `code.stacktrace` attribute value. This attribute MUST NOT be
  2976. // used on the Profile signal since the data is already captured in 'message
  2977. // Function'. This constraint is imposed to prevent redundancy and maintain data
  2978. // integrity.
  2979. //
  2980. // Type: string
  2981. // RequirementLevel: Recommended
  2982. // Stability: Stable
  2983. //
  2984. // Examples: "com.example.MyHttpService.serveRequest",
  2985. // "GuzzleHttp\Client::transfer", "fopen"
  2986. // Note: Values and format depends on each language runtime, thus it is
  2987. // impossible to provide an exhaustive list of examples.
  2988. // The values are usually the same (or prefixes of) the ones found in native
  2989. // stack trace representation stored in
  2990. // `code.stacktrace` without information on arguments.
  2991. //
  2992. // Examples:
  2993. //
  2994. // - Java method: `com.example.MyHttpService.serveRequest`
  2995. // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
  2996. // - Java lambda method:
  2997. // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
  2998. // - PHP function: `GuzzleHttp\Client::transfer`
  2999. // - Go function: `github.com/my/repo/pkg.foo.func5`
  3000. // - Elixir: `OpenTelemetry.Ctx.new`
  3001. // - Erlang: `opentelemetry_ctx:new`
  3002. // - Rust: `playground::my_module::my_cool_func`
  3003. // - C function: `fopen`
  3004. CodeFunctionNameKey = attribute.Key("code.function.name")
  3005. // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
  3006. // semantic conventions. It represents the line number in `code.file.path` best
  3007. // representing the operation. It SHOULD point within the code unit named in
  3008. // `code.function.name`. This attribute MUST NOT be used on the Profile signal
  3009. // since the data is already captured in 'message Line'. This constraint is
  3010. // imposed to prevent redundancy and maintain data integrity.
  3011. //
  3012. // Type: int
  3013. // RequirementLevel: Recommended
  3014. // Stability: Stable
  3015. CodeLineNumberKey = attribute.Key("code.line.number")
  3016. // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
  3017. // semantic conventions. It represents a stacktrace as a string in the natural
  3018. // representation for the language runtime. The representation is identical to
  3019. // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
  3020. // signal since the data is already captured in 'message Location'. This
  3021. // constraint is imposed to prevent redundancy and maintain data integrity.
  3022. //
  3023. // Type: string
  3024. // RequirementLevel: Recommended
  3025. // Stability: Stable
  3026. //
  3027. // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
  3028. // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
  3029. // com.example.GenerateTrace.main(GenerateTrace.java:5)
  3030. //
  3031. // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
  3032. CodeStacktraceKey = attribute.Key("code.stacktrace")
  3033. )
  3034. // CodeColumnNumber returns an attribute KeyValue conforming to the
  3035. // "code.column.number" semantic conventions. It represents the column number in
  3036. // `code.file.path` best representing the operation. It SHOULD point within the
  3037. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  3038. // the Profile signal since the data is already captured in 'message Line'. This
  3039. // constraint is imposed to prevent redundancy and maintain data integrity.
  3040. func CodeColumnNumber(val int) attribute.KeyValue {
  3041. return CodeColumnNumberKey.Int(val)
  3042. }
  3043. // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
  3044. // semantic conventions. It represents the source code file name that identifies
  3045. // the code unit as uniquely as possible (preferably an absolute file path). This
  3046. // attribute MUST NOT be used on the Profile signal since the data is already
  3047. // captured in 'message Function'. This constraint is imposed to prevent
  3048. // redundancy and maintain data integrity.
  3049. func CodeFilePath(val string) attribute.KeyValue {
  3050. return CodeFilePathKey.String(val)
  3051. }
  3052. // CodeFunctionName returns an attribute KeyValue conforming to the
  3053. // "code.function.name" semantic conventions. It represents the method or
  3054. // function fully-qualified name without arguments. The value should fit the
  3055. // natural representation of the language runtime, which is also likely the same
  3056. // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
  3057. // on the Profile signal since the data is already captured in 'message
  3058. // Function'. This constraint is imposed to prevent redundancy and maintain data
  3059. // integrity.
  3060. func CodeFunctionName(val string) attribute.KeyValue {
  3061. return CodeFunctionNameKey.String(val)
  3062. }
  3063. // CodeLineNumber returns an attribute KeyValue conforming to the
  3064. // "code.line.number" semantic conventions. It represents the line number in
  3065. // `code.file.path` best representing the operation. It SHOULD point within the
  3066. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  3067. // the Profile signal since the data is already captured in 'message Line'. This
  3068. // constraint is imposed to prevent redundancy and maintain data integrity.
  3069. func CodeLineNumber(val int) attribute.KeyValue {
  3070. return CodeLineNumberKey.Int(val)
  3071. }
  3072. // CodeStacktrace returns an attribute KeyValue conforming to the
  3073. // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
  3074. // in the natural representation for the language runtime. The representation is
  3075. // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
  3076. // Profile signal since the data is already captured in 'message Location'. This
  3077. // constraint is imposed to prevent redundancy and maintain data integrity.
  3078. //
  3079. // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
  3080. func CodeStacktrace(val string) attribute.KeyValue {
  3081. return CodeStacktraceKey.String(val)
  3082. }
  3083. // Namespace: container
  3084. const (
  3085. // ContainerCommandKey is the attribute Key conforming to the
  3086. // "container.command" semantic conventions. It represents the command used to
  3087. // run the container (i.e. the command name).
  3088. //
  3089. // Type: string
  3090. // RequirementLevel: Recommended
  3091. // Stability: Development
  3092. //
  3093. // Examples: "otelcontribcol"
  3094. // Note: If using embedded credentials or sensitive data, it is recommended to
  3095. // remove them to prevent potential leakage.
  3096. ContainerCommandKey = attribute.Key("container.command")
  3097. // ContainerCommandArgsKey is the attribute Key conforming to the
  3098. // "container.command_args" semantic conventions. It represents the all the
  3099. // command arguments (including the command/executable itself) run by the
  3100. // container.
  3101. //
  3102. // Type: string[]
  3103. // RequirementLevel: Recommended
  3104. // Stability: Development
  3105. //
  3106. // Examples: "otelcontribcol", "--config", "config.yaml"
  3107. ContainerCommandArgsKey = attribute.Key("container.command_args")
  3108. // ContainerCommandLineKey is the attribute Key conforming to the
  3109. // "container.command_line" semantic conventions. It represents the full command
  3110. // run by the container as a single string representing the full command.
  3111. //
  3112. // Type: string
  3113. // RequirementLevel: Recommended
  3114. // Stability: Development
  3115. //
  3116. // Examples: "otelcontribcol --config config.yaml"
  3117. ContainerCommandLineKey = attribute.Key("container.command_line")
  3118. // ContainerCSIPluginNameKey is the attribute Key conforming to the
  3119. // "container.csi.plugin.name" semantic conventions. It represents the name of
  3120. // the CSI ([Container Storage Interface]) plugin used by the volume.
  3121. //
  3122. // Type: string
  3123. // RequirementLevel: Recommended
  3124. // Stability: Development
  3125. //
  3126. // Examples: "pd.csi.storage.gke.io"
  3127. // Note: This can sometimes be referred to as a "driver" in CSI implementations.
  3128. // This should represent the `name` field of the GetPluginInfo RPC.
  3129. //
  3130. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3131. ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
  3132. // ContainerCSIVolumeIDKey is the attribute Key conforming to the
  3133. // "container.csi.volume.id" semantic conventions. It represents the unique
  3134. // volume ID returned by the CSI ([Container Storage Interface]) plugin.
  3135. //
  3136. // Type: string
  3137. // RequirementLevel: Recommended
  3138. // Stability: Development
  3139. //
  3140. // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
  3141. // Note: This can sometimes be referred to as a "volume handle" in CSI
  3142. // implementations. This should represent the `Volume.volume_id` field in CSI
  3143. // spec.
  3144. //
  3145. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3146. ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
  3147. // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
  3148. // conventions. It represents the container ID. Usually a UUID, as for example
  3149. // used to [identify Docker containers]. The UUID might be abbreviated.
  3150. //
  3151. // Type: string
  3152. // RequirementLevel: Recommended
  3153. // Stability: Beta
  3154. //
  3155. // Examples: "a3bf90e006b2"
  3156. //
  3157. // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
  3158. ContainerIDKey = attribute.Key("container.id")
  3159. // ContainerImageIDKey is the attribute Key conforming to the
  3160. // "container.image.id" semantic conventions. It represents the runtime specific
  3161. // image identifier. Usually a hash algorithm followed by a UUID.
  3162. //
  3163. // Type: string
  3164. // RequirementLevel: Recommended
  3165. // Stability: Development
  3166. //
  3167. // Examples:
  3168. // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
  3169. // Note: Docker defines a sha256 of the image id; `container.image.id`
  3170. // corresponds to the `Image` field from the Docker container inspect [API]
  3171. // endpoint.
  3172. // K8s defines a link to the container registry repository with digest
  3173. // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
  3174. // .
  3175. // The ID is assigned by the container runtime and can vary in different
  3176. // environments. Consider using `oci.manifest.digest` if it is important to
  3177. // identify the same image in different environments/runtimes.
  3178. //
  3179. // [API]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Container/operation/ContainerInspect
  3180. ContainerImageIDKey = attribute.Key("container.image.id")
  3181. // ContainerImageNameKey is the attribute Key conforming to the
  3182. // "container.image.name" semantic conventions. It represents the name of the
  3183. // image the container was built on.
  3184. //
  3185. // Type: string
  3186. // RequirementLevel: Recommended
  3187. // Stability: Beta
  3188. //
  3189. // Examples: "gcr.io/opentelemetry/operator"
  3190. ContainerImageNameKey = attribute.Key("container.image.name")
  3191. // ContainerImageRepoDigestsKey is the attribute Key conforming to the
  3192. // "container.image.repo_digests" semantic conventions. It represents the repo
  3193. // digests of the container image as provided by the container runtime.
  3194. //
  3195. // Type: string[]
  3196. // RequirementLevel: Recommended
  3197. // Stability: Beta
  3198. //
  3199. // Examples:
  3200. // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
  3201. // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  3202. // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
  3203. //
  3204. // [Docker]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
  3205. // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
  3206. ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
  3207. // ContainerImageTagsKey is the attribute Key conforming to the
  3208. // "container.image.tags" semantic conventions. It represents the container
  3209. // image tags. An example can be found in [Docker Image Inspect]. Should be only
  3210. // the `<tag>` section of the full name for example from
  3211. // `registry.example.com/my-org/my-image:<tag>`.
  3212. //
  3213. // Type: string[]
  3214. // RequirementLevel: Recommended
  3215. // Stability: Beta
  3216. //
  3217. // Examples: "v1.27.1", "3.5.7-0"
  3218. //
  3219. // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
  3220. ContainerImageTagsKey = attribute.Key("container.image.tags")
  3221. // ContainerNameKey is the attribute Key conforming to the "container.name"
  3222. // semantic conventions. It represents the container name used by container
  3223. // runtime.
  3224. //
  3225. // Type: string
  3226. // RequirementLevel: Recommended
  3227. // Stability: Development
  3228. //
  3229. // Examples: "opentelemetry-autoconf"
  3230. ContainerNameKey = attribute.Key("container.name")
  3231. // ContainerRuntimeDescriptionKey is the attribute Key conforming to the
  3232. // "container.runtime.description" semantic conventions. It represents a
  3233. // description about the runtime which could include, for example details about
  3234. // the CRI/API version being used or other customisations.
  3235. //
  3236. // Type: string
  3237. // RequirementLevel: Recommended
  3238. // Stability: Development
  3239. //
  3240. // Examples: "docker://19.3.1 - CRI: 1.22.0"
  3241. ContainerRuntimeDescriptionKey = attribute.Key("container.runtime.description")
  3242. // ContainerRuntimeNameKey is the attribute Key conforming to the
  3243. // "container.runtime.name" semantic conventions. It represents the container
  3244. // runtime managing this container.
  3245. //
  3246. // Type: string
  3247. // RequirementLevel: Recommended
  3248. // Stability: Development
  3249. //
  3250. // Examples: "docker", "containerd", "rkt"
  3251. ContainerRuntimeNameKey = attribute.Key("container.runtime.name")
  3252. // ContainerRuntimeVersionKey is the attribute Key conforming to the
  3253. // "container.runtime.version" semantic conventions. It represents the version
  3254. // of the runtime of this process, as returned by the runtime without
  3255. // modification.
  3256. //
  3257. // Type: string
  3258. // RequirementLevel: Recommended
  3259. // Stability: Development
  3260. //
  3261. // Examples: 1.0.0
  3262. ContainerRuntimeVersionKey = attribute.Key("container.runtime.version")
  3263. )
  3264. // ContainerCommand returns an attribute KeyValue conforming to the
  3265. // "container.command" semantic conventions. It represents the command used to
  3266. // run the container (i.e. the command name).
  3267. func ContainerCommand(val string) attribute.KeyValue {
  3268. return ContainerCommandKey.String(val)
  3269. }
  3270. // ContainerCommandArgs returns an attribute KeyValue conforming to the
  3271. // "container.command_args" semantic conventions. It represents the all the
  3272. // command arguments (including the command/executable itself) run by the
  3273. // container.
  3274. func ContainerCommandArgs(val ...string) attribute.KeyValue {
  3275. return ContainerCommandArgsKey.StringSlice(val)
  3276. }
  3277. // ContainerCommandLine returns an attribute KeyValue conforming to the
  3278. // "container.command_line" semantic conventions. It represents the full command
  3279. // run by the container as a single string representing the full command.
  3280. func ContainerCommandLine(val string) attribute.KeyValue {
  3281. return ContainerCommandLineKey.String(val)
  3282. }
  3283. // ContainerCSIPluginName returns an attribute KeyValue conforming to the
  3284. // "container.csi.plugin.name" semantic conventions. It represents the name of
  3285. // the CSI ([Container Storage Interface]) plugin used by the volume.
  3286. //
  3287. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3288. func ContainerCSIPluginName(val string) attribute.KeyValue {
  3289. return ContainerCSIPluginNameKey.String(val)
  3290. }
  3291. // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
  3292. // "container.csi.volume.id" semantic conventions. It represents the unique
  3293. // volume ID returned by the CSI ([Container Storage Interface]) plugin.
  3294. //
  3295. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3296. func ContainerCSIVolumeID(val string) attribute.KeyValue {
  3297. return ContainerCSIVolumeIDKey.String(val)
  3298. }
  3299. // ContainerID returns an attribute KeyValue conforming to the "container.id"
  3300. // semantic conventions. It represents the container ID. Usually a UUID, as for
  3301. // example used to [identify Docker containers]. The UUID might be abbreviated.
  3302. //
  3303. // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
  3304. func ContainerID(val string) attribute.KeyValue {
  3305. return ContainerIDKey.String(val)
  3306. }
  3307. // ContainerImageID returns an attribute KeyValue conforming to the
  3308. // "container.image.id" semantic conventions. It represents the runtime specific
  3309. // image identifier. Usually a hash algorithm followed by a UUID.
  3310. func ContainerImageID(val string) attribute.KeyValue {
  3311. return ContainerImageIDKey.String(val)
  3312. }
  3313. // ContainerImageName returns an attribute KeyValue conforming to the
  3314. // "container.image.name" semantic conventions. It represents the name of the
  3315. // image the container was built on.
  3316. func ContainerImageName(val string) attribute.KeyValue {
  3317. return ContainerImageNameKey.String(val)
  3318. }
  3319. // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
  3320. // "container.image.repo_digests" semantic conventions. It represents the repo
  3321. // digests of the container image as provided by the container runtime.
  3322. func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
  3323. return ContainerImageRepoDigestsKey.StringSlice(val)
  3324. }
  3325. // ContainerImageTags returns an attribute KeyValue conforming to the
  3326. // "container.image.tags" semantic conventions. It represents the container image
  3327. // tags. An example can be found in [Docker Image Inspect]. Should be only the
  3328. // `<tag>` section of the full name for example from
  3329. // `registry.example.com/my-org/my-image:<tag>`.
  3330. //
  3331. // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
  3332. func ContainerImageTags(val ...string) attribute.KeyValue {
  3333. return ContainerImageTagsKey.StringSlice(val)
  3334. }
  3335. // ContainerLabel returns an attribute KeyValue conforming to the
  3336. // "container.label" semantic conventions. It represents the container labels,
  3337. // `<key>` being the label name, the value being the label value.
  3338. func ContainerLabel(key string, val string) attribute.KeyValue {
  3339. return attribute.String("container.label."+key, val)
  3340. }
  3341. // ContainerName returns an attribute KeyValue conforming to the "container.name"
  3342. // semantic conventions. It represents the container name used by container
  3343. // runtime.
  3344. func ContainerName(val string) attribute.KeyValue {
  3345. return ContainerNameKey.String(val)
  3346. }
  3347. // ContainerRuntimeDescription returns an attribute KeyValue conforming to the
  3348. // "container.runtime.description" semantic conventions. It represents a
  3349. // description about the runtime which could include, for example details about
  3350. // the CRI/API version being used or other customisations.
  3351. func ContainerRuntimeDescription(val string) attribute.KeyValue {
  3352. return ContainerRuntimeDescriptionKey.String(val)
  3353. }
  3354. // ContainerRuntimeName returns an attribute KeyValue conforming to the
  3355. // "container.runtime.name" semantic conventions. It represents the container
  3356. // runtime managing this container.
  3357. func ContainerRuntimeName(val string) attribute.KeyValue {
  3358. return ContainerRuntimeNameKey.String(val)
  3359. }
  3360. // ContainerRuntimeVersion returns an attribute KeyValue conforming to the
  3361. // "container.runtime.version" semantic conventions. It represents the version of
  3362. // the runtime of this process, as returned by the runtime without modification.
  3363. func ContainerRuntimeVersion(val string) attribute.KeyValue {
  3364. return ContainerRuntimeVersionKey.String(val)
  3365. }
  3366. // Namespace: cpu
  3367. const (
  3368. // CPULogicalNumberKey is the attribute Key conforming to the
  3369. // "cpu.logical_number" semantic conventions. It represents the logical CPU
  3370. // number [0..n-1].
  3371. //
  3372. // Type: int
  3373. // RequirementLevel: Recommended
  3374. // Stability: Development
  3375. //
  3376. // Examples: 1
  3377. CPULogicalNumberKey = attribute.Key("cpu.logical_number")
  3378. // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
  3379. // conventions. It represents the mode of the CPU.
  3380. //
  3381. // Type: Enum
  3382. // RequirementLevel: Recommended
  3383. // Stability: Development
  3384. //
  3385. // Examples: "user", "system"
  3386. CPUModeKey = attribute.Key("cpu.mode")
  3387. )
  3388. // CPULogicalNumber returns an attribute KeyValue conforming to the
  3389. // "cpu.logical_number" semantic conventions. It represents the logical CPU
  3390. // number [0..n-1].
  3391. func CPULogicalNumber(val int) attribute.KeyValue {
  3392. return CPULogicalNumberKey.Int(val)
  3393. }
  3394. // Enum values for cpu.mode
  3395. var (
  3396. // User
  3397. // Stability: development
  3398. CPUModeUser = CPUModeKey.String("user")
  3399. // System
  3400. // Stability: development
  3401. CPUModeSystem = CPUModeKey.String("system")
  3402. // Nice
  3403. // Stability: development
  3404. CPUModeNice = CPUModeKey.String("nice")
  3405. // Idle
  3406. // Stability: development
  3407. CPUModeIdle = CPUModeKey.String("idle")
  3408. // IO Wait
  3409. // Stability: development
  3410. CPUModeIOWait = CPUModeKey.String("iowait")
  3411. // Interrupt
  3412. // Stability: development
  3413. CPUModeInterrupt = CPUModeKey.String("interrupt")
  3414. // Steal
  3415. // Stability: development
  3416. CPUModeSteal = CPUModeKey.String("steal")
  3417. // Kernel
  3418. // Stability: development
  3419. CPUModeKernel = CPUModeKey.String("kernel")
  3420. )
  3421. // Namespace: db
  3422. const (
  3423. // DBClientConnectionPoolNameKey is the attribute Key conforming to the
  3424. // "db.client.connection.pool.name" semantic conventions. It represents the name
  3425. // of the connection pool; unique within the instrumented application. In case
  3426. // the connection pool implementation doesn't provide a name, instrumentation
  3427. // SHOULD use a combination of parameters that would make the name unique, for
  3428. // example, combining attributes `server.address`, `server.port`, and
  3429. // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
  3430. // Instrumentations that generate connection pool name following different
  3431. // patterns SHOULD document it.
  3432. //
  3433. // Type: string
  3434. // RequirementLevel: Recommended
  3435. // Stability: Development
  3436. //
  3437. // Examples: "myDataSource"
  3438. DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
  3439. // DBClientConnectionStateKey is the attribute Key conforming to the
  3440. // "db.client.connection.state" semantic conventions. It represents the state of
  3441. // a connection in the pool.
  3442. //
  3443. // Type: Enum
  3444. // RequirementLevel: Recommended
  3445. // Stability: Development
  3446. //
  3447. // Examples: "idle"
  3448. DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
  3449. // DBCollectionNameKey is the attribute Key conforming to the
  3450. // "db.collection.name" semantic conventions. It represents the name of a
  3451. // collection (table, container) within the database.
  3452. //
  3453. // Type: string
  3454. // RequirementLevel: Recommended
  3455. // Stability: Stable
  3456. //
  3457. // Examples: "public.users", "customers"
  3458. // Note: It is RECOMMENDED to capture the value as provided by the application
  3459. // without attempting to do any case normalization.
  3460. //
  3461. // The collection name SHOULD NOT be extracted from `db.query.text`,
  3462. // when the database system supports query text with multiple collections
  3463. // in non-batch operations.
  3464. //
  3465. // For batch operations, if the individual operations are known to have the same
  3466. // collection name then that collection name SHOULD be used.
  3467. DBCollectionNameKey = attribute.Key("db.collection.name")
  3468. // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
  3469. // conventions. It represents the name of the database, fully qualified within
  3470. // the server address and port.
  3471. //
  3472. // Type: string
  3473. // RequirementLevel: Recommended
  3474. // Stability: Stable
  3475. //
  3476. // Examples: "customers", "test.users"
  3477. // Note: If a database system has multiple namespace components, they SHOULD be
  3478. // concatenated from the most general to the most specific namespace component,
  3479. // using `|` as a separator between the components. Any missing components (and
  3480. // their associated separators) SHOULD be omitted.
  3481. // Semantic conventions for individual database systems SHOULD document what
  3482. // `db.namespace` means in the context of that system.
  3483. // It is RECOMMENDED to capture the value as provided by the application without
  3484. // attempting to do any case normalization.
  3485. DBNamespaceKey = attribute.Key("db.namespace")
  3486. // DBOperationBatchSizeKey is the attribute Key conforming to the
  3487. // "db.operation.batch.size" semantic conventions. It represents the number of
  3488. // queries included in a batch operation.
  3489. //
  3490. // Type: int
  3491. // RequirementLevel: Recommended
  3492. // Stability: Stable
  3493. //
  3494. // Examples: 2, 3, 4
  3495. // Note: Operations are only considered batches when they contain two or more
  3496. // operations, and so `db.operation.batch.size` SHOULD never be `1`.
  3497. DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
  3498. // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
  3499. // semantic conventions. It represents the name of the operation or command
  3500. // being executed.
  3501. //
  3502. // Type: string
  3503. // RequirementLevel: Recommended
  3504. // Stability: Stable
  3505. //
  3506. // Examples: "findAndModify", "HMSET", "SELECT"
  3507. // Note: It is RECOMMENDED to capture the value as provided by the application
  3508. // without attempting to do any case normalization.
  3509. //
  3510. // The operation name SHOULD NOT be extracted from `db.query.text`,
  3511. // when the database system supports query text with multiple operations
  3512. // in non-batch operations.
  3513. //
  3514. // If spaces can occur in the operation name, multiple consecutive spaces
  3515. // SHOULD be normalized to a single space.
  3516. //
  3517. // For batch operations, if the individual operations are known to have the same
  3518. // operation name
  3519. // then that operation name SHOULD be used prepended by `BATCH `,
  3520. // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
  3521. // system specific term if more applicable.
  3522. DBOperationNameKey = attribute.Key("db.operation.name")
  3523. // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
  3524. // semantic conventions. It represents the low cardinality summary of a database
  3525. // query.
  3526. //
  3527. // Type: string
  3528. // RequirementLevel: Recommended
  3529. // Stability: Stable
  3530. //
  3531. // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
  3532. // user by id"
  3533. // Note: The query summary describes a class of database queries and is useful
  3534. // as a grouping key, especially when analyzing telemetry for database
  3535. // calls involving complex queries.
  3536. //
  3537. // Summary may be available to the instrumentation through
  3538. // instrumentation hooks or other means. If it is not available,
  3539. // instrumentations
  3540. // that support query parsing SHOULD generate a summary following
  3541. // [Generating query summary]
  3542. // section.
  3543. //
  3544. // For batch operations, if the individual operations are known to have the same
  3545. // query summary
  3546. // then that query summary SHOULD be used prepended by `BATCH `,
  3547. // otherwise `db.query.summary` SHOULD be `BATCH` or some other database
  3548. // system specific term if more applicable.
  3549. //
  3550. // [Generating query summary]: /docs/db/database-spans.md#generating-a-summary-of-the-query
  3551. DBQuerySummaryKey = attribute.Key("db.query.summary")
  3552. // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
  3553. // semantic conventions. It represents the database query being executed.
  3554. //
  3555. // Type: string
  3556. // RequirementLevel: Recommended
  3557. // Stability: Stable
  3558. //
  3559. // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
  3560. // Note: For sanitization see [Sanitization of `db.query.text`].
  3561. // For batch operations, if the individual operations are known to have the same
  3562. // query text then that query text SHOULD be used, otherwise all of the
  3563. // individual query texts SHOULD be concatenated with separator `; ` or some
  3564. // other database system specific separator if more applicable.
  3565. // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
  3566. // query text can potentially have sensitive data, by using a parameterized
  3567. // query the user is giving a strong signal that any sensitive data will be
  3568. // passed as parameter values, and the benefit to observability of capturing the
  3569. // static part of the query text by default outweighs the risk.
  3570. //
  3571. // [Sanitization of `db.query.text`]: /docs/db/database-spans.md#sanitization-of-dbquerytext
  3572. DBQueryTextKey = attribute.Key("db.query.text")
  3573. // DBResponseReturnedRowsKey is the attribute Key conforming to the
  3574. // "db.response.returned_rows" semantic conventions. It represents the number of
  3575. // rows returned by the operation.
  3576. //
  3577. // Type: int
  3578. // RequirementLevel: Recommended
  3579. // Stability: Development
  3580. //
  3581. // Examples: 10, 30, 1000
  3582. DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
  3583. // DBResponseStatusCodeKey is the attribute Key conforming to the
  3584. // "db.response.status_code" semantic conventions. It represents the database
  3585. // response status code.
  3586. //
  3587. // Type: string
  3588. // RequirementLevel: Recommended
  3589. // Stability: Stable
  3590. //
  3591. // Examples: "102", "ORA-17002", "08P01", "404"
  3592. // Note: The status code returned by the database. Usually it represents an
  3593. // error code, but may also represent partial success, warning, or differentiate
  3594. // between various types of successful outcomes.
  3595. // Semantic conventions for individual database systems SHOULD document what
  3596. // `db.response.status_code` means in the context of that system.
  3597. DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
  3598. // DBStoredProcedureNameKey is the attribute Key conforming to the
  3599. // "db.stored_procedure.name" semantic conventions. It represents the name of a
  3600. // stored procedure within the database.
  3601. //
  3602. // Type: string
  3603. // RequirementLevel: Recommended
  3604. // Stability: Stable
  3605. //
  3606. // Examples: "GetCustomer"
  3607. // Note: It is RECOMMENDED to capture the value as provided by the application
  3608. // without attempting to do any case normalization.
  3609. //
  3610. // For batch operations, if the individual operations are known to have the same
  3611. // stored procedure name then that stored procedure name SHOULD be used.
  3612. DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
  3613. // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
  3614. // semantic conventions. It represents the database management system (DBMS)
  3615. // product as identified by the client instrumentation.
  3616. //
  3617. // Type: Enum
  3618. // RequirementLevel: Recommended
  3619. // Stability: Stable
  3620. //
  3621. // Examples:
  3622. // Note: The actual DBMS may differ from the one identified by the client. For
  3623. // example, when using PostgreSQL client libraries to connect to a CockroachDB,
  3624. // the `db.system.name` is set to `postgresql` based on the instrumentation's
  3625. // best knowledge.
  3626. DBSystemNameKey = attribute.Key("db.system.name")
  3627. )
  3628. // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
  3629. // "db.client.connection.pool.name" semantic conventions. It represents the name
  3630. // of the connection pool; unique within the instrumented application. In case
  3631. // the connection pool implementation doesn't provide a name, instrumentation
  3632. // SHOULD use a combination of parameters that would make the name unique, for
  3633. // example, combining attributes `server.address`, `server.port`, and
  3634. // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
  3635. // Instrumentations that generate connection pool name following different
  3636. // patterns SHOULD document it.
  3637. func DBClientConnectionPoolName(val string) attribute.KeyValue {
  3638. return DBClientConnectionPoolNameKey.String(val)
  3639. }
  3640. // DBCollectionName returns an attribute KeyValue conforming to the
  3641. // "db.collection.name" semantic conventions. It represents the name of a
  3642. // collection (table, container) within the database.
  3643. func DBCollectionName(val string) attribute.KeyValue {
  3644. return DBCollectionNameKey.String(val)
  3645. }
  3646. // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
  3647. // semantic conventions. It represents the name of the database, fully qualified
  3648. // within the server address and port.
  3649. func DBNamespace(val string) attribute.KeyValue {
  3650. return DBNamespaceKey.String(val)
  3651. }
  3652. // DBOperationBatchSize returns an attribute KeyValue conforming to the
  3653. // "db.operation.batch.size" semantic conventions. It represents the number of
  3654. // queries included in a batch operation.
  3655. func DBOperationBatchSize(val int) attribute.KeyValue {
  3656. return DBOperationBatchSizeKey.Int(val)
  3657. }
  3658. // DBOperationName returns an attribute KeyValue conforming to the
  3659. // "db.operation.name" semantic conventions. It represents the name of the
  3660. // operation or command being executed.
  3661. func DBOperationName(val string) attribute.KeyValue {
  3662. return DBOperationNameKey.String(val)
  3663. }
  3664. // DBOperationParameter returns an attribute KeyValue conforming to the
  3665. // "db.operation.parameter" semantic conventions. It represents a database
  3666. // operation parameter, with `<key>` being the parameter name, and the attribute
  3667. // value being a string representation of the parameter value.
  3668. func DBOperationParameter(key string, val string) attribute.KeyValue {
  3669. return attribute.String("db.operation.parameter."+key, val)
  3670. }
  3671. // DBQueryParameter returns an attribute KeyValue conforming to the
  3672. // "db.query.parameter" semantic conventions. It represents a database query
  3673. // parameter, with `<key>` being the parameter name, and the attribute value
  3674. // being a string representation of the parameter value.
  3675. func DBQueryParameter(key string, val string) attribute.KeyValue {
  3676. return attribute.String("db.query.parameter."+key, val)
  3677. }
  3678. // DBQuerySummary returns an attribute KeyValue conforming to the
  3679. // "db.query.summary" semantic conventions. It represents the low cardinality
  3680. // summary of a database query.
  3681. func DBQuerySummary(val string) attribute.KeyValue {
  3682. return DBQuerySummaryKey.String(val)
  3683. }
  3684. // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
  3685. // semantic conventions. It represents the database query being executed.
  3686. func DBQueryText(val string) attribute.KeyValue {
  3687. return DBQueryTextKey.String(val)
  3688. }
  3689. // DBResponseReturnedRows returns an attribute KeyValue conforming to the
  3690. // "db.response.returned_rows" semantic conventions. It represents the number of
  3691. // rows returned by the operation.
  3692. func DBResponseReturnedRows(val int) attribute.KeyValue {
  3693. return DBResponseReturnedRowsKey.Int(val)
  3694. }
  3695. // DBResponseStatusCode returns an attribute KeyValue conforming to the
  3696. // "db.response.status_code" semantic conventions. It represents the database
  3697. // response status code.
  3698. func DBResponseStatusCode(val string) attribute.KeyValue {
  3699. return DBResponseStatusCodeKey.String(val)
  3700. }
  3701. // DBStoredProcedureName returns an attribute KeyValue conforming to the
  3702. // "db.stored_procedure.name" semantic conventions. It represents the name of a
  3703. // stored procedure within the database.
  3704. func DBStoredProcedureName(val string) attribute.KeyValue {
  3705. return DBStoredProcedureNameKey.String(val)
  3706. }
  3707. // Enum values for db.client.connection.state
  3708. var (
  3709. // idle
  3710. // Stability: development
  3711. DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
  3712. // used
  3713. // Stability: development
  3714. DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
  3715. )
  3716. // Enum values for db.system.name
  3717. var (
  3718. // Some other SQL database. Fallback only.
  3719. // Stability: development
  3720. DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
  3721. // [Adabas (Adaptable Database System)]
  3722. // Stability: development
  3723. //
  3724. // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
  3725. DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
  3726. // [Actian Ingres]
  3727. // Stability: development
  3728. //
  3729. // [Actian Ingres]: https://www.actian.com/databases/ingres/
  3730. DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
  3731. // [Amazon DynamoDB]
  3732. // Stability: development
  3733. //
  3734. // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
  3735. DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
  3736. // [Amazon Redshift]
  3737. // Stability: development
  3738. //
  3739. // [Amazon Redshift]: https://aws.amazon.com/redshift/
  3740. DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
  3741. // [Azure Cosmos DB]
  3742. // Stability: development
  3743. //
  3744. // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
  3745. DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
  3746. // [InterSystems Caché]
  3747. // Stability: development
  3748. //
  3749. // [InterSystems Caché]: https://www.intersystems.com/products/cache/
  3750. DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
  3751. // [Apache Cassandra]
  3752. // Stability: development
  3753. //
  3754. // [Apache Cassandra]: https://cassandra.apache.org/
  3755. DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
  3756. // [ClickHouse]
  3757. // Stability: development
  3758. //
  3759. // [ClickHouse]: https://clickhouse.com/
  3760. DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
  3761. // [CockroachDB]
  3762. // Stability: development
  3763. //
  3764. // [CockroachDB]: https://www.cockroachlabs.com/
  3765. DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
  3766. // [Couchbase]
  3767. // Stability: development
  3768. //
  3769. // [Couchbase]: https://www.couchbase.com/
  3770. DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
  3771. // [Apache CouchDB]
  3772. // Stability: development
  3773. //
  3774. // [Apache CouchDB]: https://couchdb.apache.org/
  3775. DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
  3776. // [Apache Derby]
  3777. // Stability: development
  3778. //
  3779. // [Apache Derby]: https://db.apache.org/derby/
  3780. DBSystemNameDerby = DBSystemNameKey.String("derby")
  3781. // [Elasticsearch]
  3782. // Stability: development
  3783. //
  3784. // [Elasticsearch]: https://www.elastic.co/elasticsearch
  3785. DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
  3786. // [Firebird]
  3787. // Stability: development
  3788. //
  3789. // [Firebird]: https://www.firebirdsql.org/
  3790. DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
  3791. // [Google Cloud Spanner]
  3792. // Stability: development
  3793. //
  3794. // [Google Cloud Spanner]: https://cloud.google.com/spanner
  3795. DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
  3796. // [Apache Geode]
  3797. // Stability: development
  3798. //
  3799. // [Apache Geode]: https://geode.apache.org/
  3800. DBSystemNameGeode = DBSystemNameKey.String("geode")
  3801. // [H2 Database]
  3802. // Stability: development
  3803. //
  3804. // [H2 Database]: https://h2database.com/
  3805. DBSystemNameH2database = DBSystemNameKey.String("h2database")
  3806. // [Apache HBase]
  3807. // Stability: development
  3808. //
  3809. // [Apache HBase]: https://hbase.apache.org/
  3810. DBSystemNameHBase = DBSystemNameKey.String("hbase")
  3811. // [Apache Hive]
  3812. // Stability: development
  3813. //
  3814. // [Apache Hive]: https://hive.apache.org/
  3815. DBSystemNameHive = DBSystemNameKey.String("hive")
  3816. // [HyperSQL Database]
  3817. // Stability: development
  3818. //
  3819. // [HyperSQL Database]: https://hsqldb.org/
  3820. DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
  3821. // [IBM Db2]
  3822. // Stability: development
  3823. //
  3824. // [IBM Db2]: https://www.ibm.com/db2
  3825. DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
  3826. // [IBM Informix]
  3827. // Stability: development
  3828. //
  3829. // [IBM Informix]: https://www.ibm.com/products/informix
  3830. DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
  3831. // [IBM Netezza]
  3832. // Stability: development
  3833. //
  3834. // [IBM Netezza]: https://www.ibm.com/products/netezza
  3835. DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
  3836. // [InfluxDB]
  3837. // Stability: development
  3838. //
  3839. // [InfluxDB]: https://www.influxdata.com/
  3840. DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
  3841. // [Instant]
  3842. // Stability: development
  3843. //
  3844. // [Instant]: https://www.instantdb.com/
  3845. DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
  3846. // [MariaDB]
  3847. // Stability: stable
  3848. //
  3849. // [MariaDB]: https://mariadb.org/
  3850. DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
  3851. // [Memcached]
  3852. // Stability: development
  3853. //
  3854. // [Memcached]: https://memcached.org/
  3855. DBSystemNameMemcached = DBSystemNameKey.String("memcached")
  3856. // [MongoDB]
  3857. // Stability: development
  3858. //
  3859. // [MongoDB]: https://www.mongodb.com/
  3860. DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
  3861. // [Microsoft SQL Server]
  3862. // Stability: stable
  3863. //
  3864. // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
  3865. DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
  3866. // [MySQL]
  3867. // Stability: stable
  3868. //
  3869. // [MySQL]: https://www.mysql.com/
  3870. DBSystemNameMySQL = DBSystemNameKey.String("mysql")
  3871. // [Neo4j]
  3872. // Stability: development
  3873. //
  3874. // [Neo4j]: https://neo4j.com/
  3875. DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
  3876. // [OpenSearch]
  3877. // Stability: development
  3878. //
  3879. // [OpenSearch]: https://opensearch.org/
  3880. DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
  3881. // [Oracle Database]
  3882. // Stability: development
  3883. //
  3884. // [Oracle Database]: https://www.oracle.com/database/
  3885. DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
  3886. // [PostgreSQL]
  3887. // Stability: stable
  3888. //
  3889. // [PostgreSQL]: https://www.postgresql.org/
  3890. DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
  3891. // [Redis]
  3892. // Stability: development
  3893. //
  3894. // [Redis]: https://redis.io/
  3895. DBSystemNameRedis = DBSystemNameKey.String("redis")
  3896. // [SAP HANA]
  3897. // Stability: development
  3898. //
  3899. // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
  3900. DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
  3901. // [SAP MaxDB]
  3902. // Stability: development
  3903. //
  3904. // [SAP MaxDB]: https://maxdb.sap.com/
  3905. DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
  3906. // [SQLite]
  3907. // Stability: development
  3908. //
  3909. // [SQLite]: https://www.sqlite.org/
  3910. DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
  3911. // [Teradata]
  3912. // Stability: development
  3913. //
  3914. // [Teradata]: https://www.teradata.com/
  3915. DBSystemNameTeradata = DBSystemNameKey.String("teradata")
  3916. // [Trino]
  3917. // Stability: development
  3918. //
  3919. // [Trino]: https://trino.io/
  3920. DBSystemNameTrino = DBSystemNameKey.String("trino")
  3921. )
  3922. // Namespace: deployment
  3923. const (
  3924. // DeploymentEnvironmentNameKey is the attribute Key conforming to the
  3925. // "deployment.environment.name" semantic conventions. It represents the name of
  3926. // the [deployment environment] (aka deployment tier).
  3927. //
  3928. // Type: string
  3929. // RequirementLevel: Recommended
  3930. // Stability: Development
  3931. //
  3932. // Examples: "staging", "production"
  3933. // Note: `deployment.environment.name` does not affect the uniqueness
  3934. // constraints defined through
  3935. // the `service.namespace`, `service.name` and `service.instance.id` resource
  3936. // attributes.
  3937. // This implies that resources carrying the following attribute combinations
  3938. // MUST be
  3939. // considered to be identifying the same service:
  3940. //
  3941. // - `service.name=frontend`, `deployment.environment.name=production`
  3942. // - `service.name=frontend`, `deployment.environment.name=staging`.
  3943. //
  3944. //
  3945. // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
  3946. DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
  3947. // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
  3948. // semantic conventions. It represents the id of the deployment.
  3949. //
  3950. // Type: string
  3951. // RequirementLevel: Recommended
  3952. // Stability: Development
  3953. //
  3954. // Examples: "1208"
  3955. DeploymentIDKey = attribute.Key("deployment.id")
  3956. // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
  3957. // semantic conventions. It represents the name of the deployment.
  3958. //
  3959. // Type: string
  3960. // RequirementLevel: Recommended
  3961. // Stability: Development
  3962. //
  3963. // Examples: "deploy my app", "deploy-frontend"
  3964. DeploymentNameKey = attribute.Key("deployment.name")
  3965. // DeploymentStatusKey is the attribute Key conforming to the
  3966. // "deployment.status" semantic conventions. It represents the status of the
  3967. // deployment.
  3968. //
  3969. // Type: Enum
  3970. // RequirementLevel: Recommended
  3971. // Stability: Development
  3972. //
  3973. // Examples:
  3974. DeploymentStatusKey = attribute.Key("deployment.status")
  3975. )
  3976. // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
  3977. // "deployment.environment.name" semantic conventions. It represents the name of
  3978. // the [deployment environment] (aka deployment tier).
  3979. //
  3980. // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
  3981. func DeploymentEnvironmentName(val string) attribute.KeyValue {
  3982. return DeploymentEnvironmentNameKey.String(val)
  3983. }
  3984. // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
  3985. // semantic conventions. It represents the id of the deployment.
  3986. func DeploymentID(val string) attribute.KeyValue {
  3987. return DeploymentIDKey.String(val)
  3988. }
  3989. // DeploymentName returns an attribute KeyValue conforming to the
  3990. // "deployment.name" semantic conventions. It represents the name of the
  3991. // deployment.
  3992. func DeploymentName(val string) attribute.KeyValue {
  3993. return DeploymentNameKey.String(val)
  3994. }
  3995. // Enum values for deployment.status
  3996. var (
  3997. // failed
  3998. // Stability: development
  3999. DeploymentStatusFailed = DeploymentStatusKey.String("failed")
  4000. // succeeded
  4001. // Stability: development
  4002. DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
  4003. )
  4004. // Namespace: destination
  4005. const (
  4006. // DestinationAddressKey is the attribute Key conforming to the
  4007. // "destination.address" semantic conventions. It represents the destination
  4008. // address - domain name if available without reverse DNS lookup; otherwise, IP
  4009. // address or Unix domain socket name.
  4010. //
  4011. // Type: string
  4012. // RequirementLevel: Recommended
  4013. // Stability: Development
  4014. //
  4015. // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
  4016. // Note: When observed from the source side, and when communicating through an
  4017. // intermediary, `destination.address` SHOULD represent the destination address
  4018. // behind any intermediaries, for example proxies, if it's available.
  4019. DestinationAddressKey = attribute.Key("destination.address")
  4020. // DestinationPortKey is the attribute Key conforming to the "destination.port"
  4021. // semantic conventions. It represents the destination port number.
  4022. //
  4023. // Type: int
  4024. // RequirementLevel: Recommended
  4025. // Stability: Development
  4026. //
  4027. // Examples: 3389, 2888
  4028. DestinationPortKey = attribute.Key("destination.port")
  4029. )
  4030. // DestinationAddress returns an attribute KeyValue conforming to the
  4031. // "destination.address" semantic conventions. It represents the destination
  4032. // address - domain name if available without reverse DNS lookup; otherwise, IP
  4033. // address or Unix domain socket name.
  4034. func DestinationAddress(val string) attribute.KeyValue {
  4035. return DestinationAddressKey.String(val)
  4036. }
  4037. // DestinationPort returns an attribute KeyValue conforming to the
  4038. // "destination.port" semantic conventions. It represents the destination port
  4039. // number.
  4040. func DestinationPort(val int) attribute.KeyValue {
  4041. return DestinationPortKey.Int(val)
  4042. }
  4043. // Namespace: device
  4044. const (
  4045. // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
  4046. // conventions. It represents a unique identifier representing the device.
  4047. //
  4048. // Type: string
  4049. // RequirementLevel: Recommended
  4050. // Stability: Development
  4051. //
  4052. // Examples: "123456789012345", "01:23:45:67:89:AB"
  4053. // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
  4054. // NOT change if an app is uninstalled and re-installed.
  4055. // However, it might be resettable by the user for all apps on a device.
  4056. // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
  4057. // used as values.
  4058. //
  4059. // More information about Android identifier best practices can be found in the
  4060. // [Android user data IDs guide].
  4061. //
  4062. // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
  4063. // > should be taken when storing personal data or anything which can identify a
  4064. // > user. GDPR and data protection laws may apply,
  4065. // > ensure you do your own due diligence.> Due to these reasons, this
  4066. // > identifier is not recommended for consumer applications and will likely
  4067. // > result in rejection from both Google Play and App Store.
  4068. // > However, it may be appropriate for specific enterprise scenarios, such as
  4069. // > kiosk devices or enterprise-managed devices, with appropriate compliance
  4070. // > clearance.
  4071. // > Any instrumentation providing this identifier MUST implement it as an
  4072. // > opt-in feature.> See [`app.installation.id`]> for a more
  4073. // > privacy-preserving alternative.
  4074. //
  4075. // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
  4076. // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
  4077. DeviceIDKey = attribute.Key("device.id")
  4078. // DeviceManufacturerKey is the attribute Key conforming to the
  4079. // "device.manufacturer" semantic conventions. It represents the name of the
  4080. // device manufacturer.
  4081. //
  4082. // Type: string
  4083. // RequirementLevel: Recommended
  4084. // Stability: Development
  4085. //
  4086. // Examples: "Apple", "Samsung"
  4087. // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
  4088. // hardcode the value `Apple`.
  4089. //
  4090. // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
  4091. DeviceManufacturerKey = attribute.Key("device.manufacturer")
  4092. // DeviceModelIdentifierKey is the attribute Key conforming to the
  4093. // "device.model.identifier" semantic conventions. It represents the model
  4094. // identifier for the device.
  4095. //
  4096. // Type: string
  4097. // RequirementLevel: Recommended
  4098. // Stability: Development
  4099. //
  4100. // Examples: "iPhone3,4", "SM-G920F"
  4101. // Note: It's recommended this value represents a machine-readable version of
  4102. // the model identifier rather than the market or consumer-friendly name of the
  4103. // device.
  4104. DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
  4105. // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
  4106. // semantic conventions. It represents the marketing name for the device model.
  4107. //
  4108. // Type: string
  4109. // RequirementLevel: Recommended
  4110. // Stability: Development
  4111. //
  4112. // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
  4113. // Note: It's recommended this value represents a human-readable version of the
  4114. // device model rather than a machine-readable alternative.
  4115. DeviceModelNameKey = attribute.Key("device.model.name")
  4116. )
  4117. // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
  4118. // conventions. It represents a unique identifier representing the device.
  4119. func DeviceID(val string) attribute.KeyValue {
  4120. return DeviceIDKey.String(val)
  4121. }
  4122. // DeviceManufacturer returns an attribute KeyValue conforming to the
  4123. // "device.manufacturer" semantic conventions. It represents the name of the
  4124. // device manufacturer.
  4125. func DeviceManufacturer(val string) attribute.KeyValue {
  4126. return DeviceManufacturerKey.String(val)
  4127. }
  4128. // DeviceModelIdentifier returns an attribute KeyValue conforming to the
  4129. // "device.model.identifier" semantic conventions. It represents the model
  4130. // identifier for the device.
  4131. func DeviceModelIdentifier(val string) attribute.KeyValue {
  4132. return DeviceModelIdentifierKey.String(val)
  4133. }
  4134. // DeviceModelName returns an attribute KeyValue conforming to the
  4135. // "device.model.name" semantic conventions. It represents the marketing name for
  4136. // the device model.
  4137. func DeviceModelName(val string) attribute.KeyValue {
  4138. return DeviceModelNameKey.String(val)
  4139. }
  4140. // Namespace: disk
  4141. const (
  4142. // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
  4143. // semantic conventions. It represents the disk IO operation direction.
  4144. //
  4145. // Type: Enum
  4146. // RequirementLevel: Recommended
  4147. // Stability: Development
  4148. //
  4149. // Examples: "read"
  4150. DiskIODirectionKey = attribute.Key("disk.io.direction")
  4151. )
  4152. // Enum values for disk.io.direction
  4153. var (
  4154. // read
  4155. // Stability: development
  4156. DiskIODirectionRead = DiskIODirectionKey.String("read")
  4157. // write
  4158. // Stability: development
  4159. DiskIODirectionWrite = DiskIODirectionKey.String("write")
  4160. )
  4161. // Namespace: dns
  4162. const (
  4163. // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
  4164. // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
  4165. // DNS lookup.
  4166. //
  4167. // Type: string[]
  4168. // RequirementLevel: Recommended
  4169. // Stability: Development
  4170. //
  4171. // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
  4172. DNSAnswersKey = attribute.Key("dns.answers")
  4173. // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
  4174. // semantic conventions. It represents the name being queried.
  4175. //
  4176. // Type: string
  4177. // RequirementLevel: Recommended
  4178. // Stability: Development
  4179. //
  4180. // Examples: "www.example.com", "opentelemetry.io"
  4181. // Note: The name represents the queried domain name as it appears in the DNS
  4182. // query without any additional normalization.
  4183. DNSQuestionNameKey = attribute.Key("dns.question.name")
  4184. )
  4185. // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
  4186. // semantic conventions. It represents the list of IPv4 or IPv6 addresses
  4187. // resolved during DNS lookup.
  4188. func DNSAnswers(val ...string) attribute.KeyValue {
  4189. return DNSAnswersKey.StringSlice(val)
  4190. }
  4191. // DNSQuestionName returns an attribute KeyValue conforming to the
  4192. // "dns.question.name" semantic conventions. It represents the name being
  4193. // queried.
  4194. func DNSQuestionName(val string) attribute.KeyValue {
  4195. return DNSQuestionNameKey.String(val)
  4196. }
  4197. // Namespace: elasticsearch
  4198. const (
  4199. // ElasticsearchNodeNameKey is the attribute Key conforming to the
  4200. // "elasticsearch.node.name" semantic conventions. It represents the represents
  4201. // the human-readable identifier of the node/instance to which a request was
  4202. // routed.
  4203. //
  4204. // Type: string
  4205. // RequirementLevel: Recommended
  4206. // Stability: Development
  4207. //
  4208. // Examples: "instance-0000000001"
  4209. ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
  4210. )
  4211. // ElasticsearchNodeName returns an attribute KeyValue conforming to the
  4212. // "elasticsearch.node.name" semantic conventions. It represents the represents
  4213. // the human-readable identifier of the node/instance to which a request was
  4214. // routed.
  4215. func ElasticsearchNodeName(val string) attribute.KeyValue {
  4216. return ElasticsearchNodeNameKey.String(val)
  4217. }
  4218. // Namespace: enduser
  4219. const (
  4220. // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
  4221. // conventions. It represents the unique identifier of an end user in the
  4222. // system. It maybe a username, email address, or other identifier.
  4223. //
  4224. // Type: string
  4225. // RequirementLevel: Recommended
  4226. // Stability: Development
  4227. //
  4228. // Examples: "username"
  4229. // Note: Unique identifier of an end user in the system.
  4230. //
  4231. // > [!Warning]
  4232. // > This field contains sensitive (PII) information.
  4233. EnduserIDKey = attribute.Key("enduser.id")
  4234. // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
  4235. // semantic conventions. It represents the pseudonymous identifier of an end
  4236. // user. This identifier should be a random value that is not directly linked or
  4237. // associated with the end user's actual identity.
  4238. //
  4239. // Type: string
  4240. // RequirementLevel: Recommended
  4241. // Stability: Development
  4242. //
  4243. // Examples: "QdH5CAWJgqVT4rOr0qtumf"
  4244. // Note: Pseudonymous identifier of an end user.
  4245. //
  4246. // > [!Warning]
  4247. // > This field contains sensitive (linkable PII) information.
  4248. EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
  4249. )
  4250. // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
  4251. // semantic conventions. It represents the unique identifier of an end user in
  4252. // the system. It maybe a username, email address, or other identifier.
  4253. func EnduserID(val string) attribute.KeyValue {
  4254. return EnduserIDKey.String(val)
  4255. }
  4256. // EnduserPseudoID returns an attribute KeyValue conforming to the
  4257. // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
  4258. // identifier of an end user. This identifier should be a random value that is
  4259. // not directly linked or associated with the end user's actual identity.
  4260. func EnduserPseudoID(val string) attribute.KeyValue {
  4261. return EnduserPseudoIDKey.String(val)
  4262. }
  4263. // Namespace: error
  4264. const (
  4265. // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
  4266. // conventions. It represents the describes a class of error the operation ended
  4267. // with.
  4268. //
  4269. // Type: Enum
  4270. // RequirementLevel: Recommended
  4271. // Stability: Stable
  4272. //
  4273. // Examples: "timeout", "java.net.UnknownHostException",
  4274. // "server_certificate_invalid", "500"
  4275. // Note: The `error.type` SHOULD be predictable, and SHOULD have low
  4276. // cardinality.
  4277. //
  4278. // When `error.type` is set to a type (e.g., an exception type), its
  4279. // canonical class name identifying the type within the artifact SHOULD be used.
  4280. //
  4281. // Instrumentations SHOULD document the list of errors they report.
  4282. //
  4283. // The cardinality of `error.type` within one instrumentation library SHOULD be
  4284. // low.
  4285. // Telemetry consumers that aggregate data from multiple instrumentation
  4286. // libraries and applications
  4287. // should be prepared for `error.type` to have high cardinality at query time
  4288. // when no
  4289. // additional filters are applied.
  4290. //
  4291. // If the operation has completed successfully, instrumentations SHOULD NOT set
  4292. // `error.type`.
  4293. //
  4294. // If a specific domain defines its own set of error identifiers (such as HTTP
  4295. // or RPC status codes),
  4296. // it's RECOMMENDED to:
  4297. //
  4298. // - Use a domain-specific attribute
  4299. // - Set `error.type` to capture all errors, regardless of whether they are
  4300. // defined within the domain-specific set or not.
  4301. ErrorTypeKey = attribute.Key("error.type")
  4302. )
  4303. // Enum values for error.type
  4304. var (
  4305. // A fallback error value to be used when the instrumentation doesn't define a
  4306. // custom value.
  4307. //
  4308. // Stability: stable
  4309. ErrorTypeOther = ErrorTypeKey.String("_OTHER")
  4310. )
  4311. // Namespace: exception
  4312. const (
  4313. // ExceptionMessageKey is the attribute Key conforming to the
  4314. // "exception.message" semantic conventions. It represents the exception
  4315. // message.
  4316. //
  4317. // Type: string
  4318. // RequirementLevel: Recommended
  4319. // Stability: Stable
  4320. //
  4321. // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
  4322. // Note: > [!WARNING]
  4323. //
  4324. // > This attribute may contain sensitive information.
  4325. ExceptionMessageKey = attribute.Key("exception.message")
  4326. // ExceptionStacktraceKey is the attribute Key conforming to the
  4327. // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
  4328. // string in the natural representation for the language runtime. The
  4329. // representation is to be determined and documented by each language SIG.
  4330. //
  4331. // Type: string
  4332. // RequirementLevel: Recommended
  4333. // Stability: Stable
  4334. //
  4335. // Examples: Exception in thread "main" java.lang.RuntimeException: Test
  4336. // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
  4337. // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
  4338. // com.example.GenerateTrace.main(GenerateTrace.java:5)
  4339. ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
  4340. // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
  4341. // semantic conventions. It represents the type of the exception (its
  4342. // fully-qualified class name, if applicable). The dynamic type of the exception
  4343. // should be preferred over the static type in languages that support it.
  4344. //
  4345. // Type: string
  4346. // RequirementLevel: Recommended
  4347. // Stability: Stable
  4348. //
  4349. // Examples: "java.net.ConnectException", "OSError"
  4350. ExceptionTypeKey = attribute.Key("exception.type")
  4351. )
  4352. // ExceptionMessage returns an attribute KeyValue conforming to the
  4353. // "exception.message" semantic conventions. It represents the exception message.
  4354. func ExceptionMessage(val string) attribute.KeyValue {
  4355. return ExceptionMessageKey.String(val)
  4356. }
  4357. // ExceptionStacktrace returns an attribute KeyValue conforming to the
  4358. // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
  4359. // string in the natural representation for the language runtime. The
  4360. // representation is to be determined and documented by each language SIG.
  4361. func ExceptionStacktrace(val string) attribute.KeyValue {
  4362. return ExceptionStacktraceKey.String(val)
  4363. }
  4364. // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
  4365. // semantic conventions. It represents the type of the exception (its
  4366. // fully-qualified class name, if applicable). The dynamic type of the exception
  4367. // should be preferred over the static type in languages that support it.
  4368. func ExceptionType(val string) attribute.KeyValue {
  4369. return ExceptionTypeKey.String(val)
  4370. }
  4371. // Namespace: faas
  4372. const (
  4373. // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
  4374. // semantic conventions. It represents a boolean that is true if the serverless
  4375. // function is executed for the first time (aka cold-start).
  4376. //
  4377. // Type: boolean
  4378. // RequirementLevel: Recommended
  4379. // Stability: Development
  4380. //
  4381. // Examples:
  4382. FaaSColdstartKey = attribute.Key("faas.coldstart")
  4383. // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
  4384. // conventions. It represents a string containing the schedule period as
  4385. // [Cron Expression].
  4386. //
  4387. // Type: string
  4388. // RequirementLevel: Recommended
  4389. // Stability: Development
  4390. //
  4391. // Examples: 0/5 * * * ? *
  4392. //
  4393. // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
  4394. FaaSCronKey = attribute.Key("faas.cron")
  4395. // FaaSDocumentCollectionKey is the attribute Key conforming to the
  4396. // "faas.document.collection" semantic conventions. It represents the name of
  4397. // the source on which the triggering operation was performed. For example, in
  4398. // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
  4399. // database name.
  4400. //
  4401. // Type: string
  4402. // RequirementLevel: Recommended
  4403. // Stability: Development
  4404. //
  4405. // Examples: "myBucketName", "myDbName"
  4406. FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
  4407. // FaaSDocumentNameKey is the attribute Key conforming to the
  4408. // "faas.document.name" semantic conventions. It represents the document
  4409. // name/table subjected to the operation. For example, in Cloud Storage or S3 is
  4410. // the name of the file, and in Cosmos DB the table name.
  4411. //
  4412. // Type: string
  4413. // RequirementLevel: Recommended
  4414. // Stability: Development
  4415. //
  4416. // Examples: "myFile.txt", "myTableName"
  4417. FaaSDocumentNameKey = attribute.Key("faas.document.name")
  4418. // FaaSDocumentOperationKey is the attribute Key conforming to the
  4419. // "faas.document.operation" semantic conventions. It represents the describes
  4420. // the type of the operation that was performed on the data.
  4421. //
  4422. // Type: Enum
  4423. // RequirementLevel: Recommended
  4424. // Stability: Development
  4425. //
  4426. // Examples:
  4427. FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
  4428. // FaaSDocumentTimeKey is the attribute Key conforming to the
  4429. // "faas.document.time" semantic conventions. It represents a string containing
  4430. // the time when the data was accessed in the [ISO 8601] format expressed in
  4431. // [UTC].
  4432. //
  4433. // Type: string
  4434. // RequirementLevel: Recommended
  4435. // Stability: Development
  4436. //
  4437. // Examples: 2020-01-23T13:47:06Z
  4438. //
  4439. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4440. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4441. FaaSDocumentTimeKey = attribute.Key("faas.document.time")
  4442. // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
  4443. // semantic conventions. It represents the execution environment ID as a string,
  4444. // that will be potentially reused for other invocations to the same
  4445. // function/function version.
  4446. //
  4447. // Type: string
  4448. // RequirementLevel: Recommended
  4449. // Stability: Development
  4450. //
  4451. // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
  4452. // Note: - **AWS Lambda:** Use the (full) log stream name.
  4453. FaaSInstanceKey = attribute.Key("faas.instance")
  4454. // FaaSInvocationIDKey is the attribute Key conforming to the
  4455. // "faas.invocation_id" semantic conventions. It represents the invocation ID of
  4456. // the current function invocation.
  4457. //
  4458. // Type: string
  4459. // RequirementLevel: Recommended
  4460. // Stability: Development
  4461. //
  4462. // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
  4463. FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
  4464. // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
  4465. // semantic conventions. It represents the name of the invoked function.
  4466. //
  4467. // Type: string
  4468. // RequirementLevel: Recommended
  4469. // Stability: Development
  4470. //
  4471. // Examples: my-function
  4472. // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
  4473. // function.
  4474. FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
  4475. // FaaSInvokedProviderKey is the attribute Key conforming to the
  4476. // "faas.invoked_provider" semantic conventions. It represents the cloud
  4477. // provider of the invoked function.
  4478. //
  4479. // Type: Enum
  4480. // RequirementLevel: Recommended
  4481. // Stability: Development
  4482. //
  4483. // Examples:
  4484. // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
  4485. // invoked function.
  4486. FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
  4487. // FaaSInvokedRegionKey is the attribute Key conforming to the
  4488. // "faas.invoked_region" semantic conventions. It represents the cloud region of
  4489. // the invoked function.
  4490. //
  4491. // Type: string
  4492. // RequirementLevel: Recommended
  4493. // Stability: Development
  4494. //
  4495. // Examples: eu-central-1
  4496. // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
  4497. // function.
  4498. FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
  4499. // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
  4500. // semantic conventions. It represents the amount of memory available to the
  4501. // serverless function converted to Bytes.
  4502. //
  4503. // Type: int
  4504. // RequirementLevel: Recommended
  4505. // Stability: Development
  4506. //
  4507. // Note: It's recommended to set this attribute since e.g. too little memory can
  4508. // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
  4509. // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
  4510. // information (which must be multiplied by 1,048,576).
  4511. FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
  4512. // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
  4513. // conventions. It represents the name of the single function that this runtime
  4514. // instance executes.
  4515. //
  4516. // Type: string
  4517. // RequirementLevel: Recommended
  4518. // Stability: Development
  4519. //
  4520. // Examples: "my-function", "myazurefunctionapp/some-function-name"
  4521. // Note: This is the name of the function as configured/deployed on the FaaS
  4522. // platform and is usually different from the name of the callback
  4523. // function (which may be stored in the
  4524. // [`code.namespace`/`code.function.name`]
  4525. // span attributes).
  4526. //
  4527. // For some cloud providers, the above definition is ambiguous. The following
  4528. // definition of function name MUST be used for this attribute
  4529. // (and consequently the span name) for the listed cloud providers/products:
  4530. //
  4531. // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
  4532. // followed by a forward slash followed by the function name (this form
  4533. // can also be seen in the resource JSON for the function).
  4534. // This means that a span attribute MUST be used, as an Azure function
  4535. // app can host multiple functions that would usually share
  4536. // a TracerProvider (see also the `cloud.resource_id` attribute).
  4537. //
  4538. //
  4539. // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
  4540. FaaSNameKey = attribute.Key("faas.name")
  4541. // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
  4542. // conventions. It represents a string containing the function invocation time
  4543. // in the [ISO 8601] format expressed in [UTC].
  4544. //
  4545. // Type: string
  4546. // RequirementLevel: Recommended
  4547. // Stability: Development
  4548. //
  4549. // Examples: 2020-01-23T13:47:06Z
  4550. //
  4551. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4552. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4553. FaaSTimeKey = attribute.Key("faas.time")
  4554. // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
  4555. // conventions. It represents the type of the trigger which caused this function
  4556. // invocation.
  4557. //
  4558. // Type: Enum
  4559. // RequirementLevel: Recommended
  4560. // Stability: Development
  4561. //
  4562. // Examples:
  4563. FaaSTriggerKey = attribute.Key("faas.trigger")
  4564. // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
  4565. // conventions. It represents the immutable version of the function being
  4566. // executed.
  4567. //
  4568. // Type: string
  4569. // RequirementLevel: Recommended
  4570. // Stability: Development
  4571. //
  4572. // Examples: "26", "pinkfroid-00002"
  4573. // Note: Depending on the cloud provider and platform, use:
  4574. //
  4575. // - **AWS Lambda:** The [function version]
  4576. // (an integer represented as a decimal string).
  4577. // - **Google Cloud Run (Services):** The [revision]
  4578. // (i.e., the function name plus the revision suffix).
  4579. // - **Google Cloud Functions:** The value of the
  4580. // [`K_REVISION` environment variable].
  4581. // - **Azure Functions:** Not applicable. Do not set this attribute.
  4582. //
  4583. //
  4584. // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
  4585. // [revision]: https://cloud.google.com/run/docs/managing/revisions
  4586. // [`K_REVISION` environment variable]: https://cloud.google.com/run/docs/container-contract#services-env-vars
  4587. FaaSVersionKey = attribute.Key("faas.version")
  4588. )
  4589. // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
  4590. // semantic conventions. It represents a boolean that is true if the serverless
  4591. // function is executed for the first time (aka cold-start).
  4592. func FaaSColdstart(val bool) attribute.KeyValue {
  4593. return FaaSColdstartKey.Bool(val)
  4594. }
  4595. // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
  4596. // conventions. It represents a string containing the schedule period as
  4597. // [Cron Expression].
  4598. //
  4599. // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
  4600. func FaaSCron(val string) attribute.KeyValue {
  4601. return FaaSCronKey.String(val)
  4602. }
  4603. // FaaSDocumentCollection returns an attribute KeyValue conforming to the
  4604. // "faas.document.collection" semantic conventions. It represents the name of the
  4605. // source on which the triggering operation was performed. For example, in Cloud
  4606. // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
  4607. // name.
  4608. func FaaSDocumentCollection(val string) attribute.KeyValue {
  4609. return FaaSDocumentCollectionKey.String(val)
  4610. }
  4611. // FaaSDocumentName returns an attribute KeyValue conforming to the
  4612. // "faas.document.name" semantic conventions. It represents the document
  4613. // name/table subjected to the operation. For example, in Cloud Storage or S3 is
  4614. // the name of the file, and in Cosmos DB the table name.
  4615. func FaaSDocumentName(val string) attribute.KeyValue {
  4616. return FaaSDocumentNameKey.String(val)
  4617. }
  4618. // FaaSDocumentTime returns an attribute KeyValue conforming to the
  4619. // "faas.document.time" semantic conventions. It represents a string containing
  4620. // the time when the data was accessed in the [ISO 8601] format expressed in
  4621. // [UTC].
  4622. //
  4623. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4624. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4625. func FaaSDocumentTime(val string) attribute.KeyValue {
  4626. return FaaSDocumentTimeKey.String(val)
  4627. }
  4628. // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
  4629. // semantic conventions. It represents the execution environment ID as a string,
  4630. // that will be potentially reused for other invocations to the same
  4631. // function/function version.
  4632. func FaaSInstance(val string) attribute.KeyValue {
  4633. return FaaSInstanceKey.String(val)
  4634. }
  4635. // FaaSInvocationID returns an attribute KeyValue conforming to the
  4636. // "faas.invocation_id" semantic conventions. It represents the invocation ID of
  4637. // the current function invocation.
  4638. func FaaSInvocationID(val string) attribute.KeyValue {
  4639. return FaaSInvocationIDKey.String(val)
  4640. }
  4641. // FaaSInvokedName returns an attribute KeyValue conforming to the
  4642. // "faas.invoked_name" semantic conventions. It represents the name of the
  4643. // invoked function.
  4644. func FaaSInvokedName(val string) attribute.KeyValue {
  4645. return FaaSInvokedNameKey.String(val)
  4646. }
  4647. // FaaSInvokedRegion returns an attribute KeyValue conforming to the
  4648. // "faas.invoked_region" semantic conventions. It represents the cloud region of
  4649. // the invoked function.
  4650. func FaaSInvokedRegion(val string) attribute.KeyValue {
  4651. return FaaSInvokedRegionKey.String(val)
  4652. }
  4653. // FaaSMaxMemory returns an attribute KeyValue conforming to the
  4654. // "faas.max_memory" semantic conventions. It represents the amount of memory
  4655. // available to the serverless function converted to Bytes.
  4656. func FaaSMaxMemory(val int) attribute.KeyValue {
  4657. return FaaSMaxMemoryKey.Int(val)
  4658. }
  4659. // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
  4660. // conventions. It represents the name of the single function that this runtime
  4661. // instance executes.
  4662. func FaaSName(val string) attribute.KeyValue {
  4663. return FaaSNameKey.String(val)
  4664. }
  4665. // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
  4666. // conventions. It represents a string containing the function invocation time in
  4667. // the [ISO 8601] format expressed in [UTC].
  4668. //
  4669. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4670. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4671. func FaaSTime(val string) attribute.KeyValue {
  4672. return FaaSTimeKey.String(val)
  4673. }
  4674. // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
  4675. // semantic conventions. It represents the immutable version of the function
  4676. // being executed.
  4677. func FaaSVersion(val string) attribute.KeyValue {
  4678. return FaaSVersionKey.String(val)
  4679. }
  4680. // Enum values for faas.document.operation
  4681. var (
  4682. // When a new object is created.
  4683. // Stability: development
  4684. FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
  4685. // When an object is modified.
  4686. // Stability: development
  4687. FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
  4688. // When an object is deleted.
  4689. // Stability: development
  4690. FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
  4691. )
  4692. // Enum values for faas.invoked_provider
  4693. var (
  4694. // Alibaba Cloud
  4695. // Stability: development
  4696. FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
  4697. // Amazon Web Services
  4698. // Stability: development
  4699. FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
  4700. // Microsoft Azure
  4701. // Stability: development
  4702. FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
  4703. // Google Cloud Platform
  4704. // Stability: development
  4705. FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
  4706. // Tencent Cloud
  4707. // Stability: development
  4708. FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
  4709. )
  4710. // Enum values for faas.trigger
  4711. var (
  4712. // A response to some data source operation such as a database or filesystem
  4713. // read/write
  4714. // Stability: development
  4715. FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
  4716. // To provide an answer to an inbound HTTP request
  4717. // Stability: development
  4718. FaaSTriggerHTTP = FaaSTriggerKey.String("http")
  4719. // A function is set to be executed when messages are sent to a messaging system
  4720. // Stability: development
  4721. FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
  4722. // A function is scheduled to be executed regularly
  4723. // Stability: development
  4724. FaaSTriggerTimer = FaaSTriggerKey.String("timer")
  4725. // If none of the others apply
  4726. // Stability: development
  4727. FaaSTriggerOther = FaaSTriggerKey.String("other")
  4728. )
  4729. // Namespace: feature_flag
  4730. const (
  4731. // FeatureFlagContextIDKey is the attribute Key conforming to the
  4732. // "feature_flag.context.id" semantic conventions. It represents the unique
  4733. // identifier for the flag evaluation context. For example, the targeting key.
  4734. //
  4735. // Type: string
  4736. // RequirementLevel: Recommended
  4737. // Stability: Release_Candidate
  4738. //
  4739. // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
  4740. FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
  4741. // FeatureFlagErrorMessageKey is the attribute Key conforming to the
  4742. // "feature_flag.error.message" semantic conventions. It represents a message
  4743. // providing more detail about an error that occurred during feature flag
  4744. // evaluation in human-readable form.
  4745. //
  4746. // Type: string
  4747. // RequirementLevel: Recommended
  4748. // Stability: Release_Candidate
  4749. //
  4750. // Examples: "Unexpected input type: string", "The user has exceeded their
  4751. // storage quota"
  4752. FeatureFlagErrorMessageKey = attribute.Key("feature_flag.error.message")
  4753. // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
  4754. // semantic conventions. It represents the lookup key of the feature flag.
  4755. //
  4756. // Type: string
  4757. // RequirementLevel: Recommended
  4758. // Stability: Release_Candidate
  4759. //
  4760. // Examples: "logo-color"
  4761. FeatureFlagKeyKey = attribute.Key("feature_flag.key")
  4762. // FeatureFlagProviderNameKey is the attribute Key conforming to the
  4763. // "feature_flag.provider.name" semantic conventions. It represents the
  4764. // identifies the feature flag provider.
  4765. //
  4766. // Type: string
  4767. // RequirementLevel: Recommended
  4768. // Stability: Release_Candidate
  4769. //
  4770. // Examples: "Flag Manager"
  4771. FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
  4772. // FeatureFlagResultReasonKey is the attribute Key conforming to the
  4773. // "feature_flag.result.reason" semantic conventions. It represents the reason
  4774. // code which shows how a feature flag value was determined.
  4775. //
  4776. // Type: Enum
  4777. // RequirementLevel: Recommended
  4778. // Stability: Release_Candidate
  4779. //
  4780. // Examples: "static", "targeting_match", "error", "default"
  4781. FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
  4782. // FeatureFlagResultValueKey is the attribute Key conforming to the
  4783. // "feature_flag.result.value" semantic conventions. It represents the evaluated
  4784. // value of the feature flag.
  4785. //
  4786. // Type: any
  4787. // RequirementLevel: Recommended
  4788. // Stability: Release_Candidate
  4789. //
  4790. // Examples: "#ff0000", true, 3
  4791. // Note: With some feature flag providers, feature flag results can be quite
  4792. // large or contain private or sensitive details.
  4793. // Because of this, `feature_flag.result.variant` is often the preferred
  4794. // attribute if it is available.
  4795. //
  4796. // It may be desirable to redact or otherwise limit the size and scope of
  4797. // `feature_flag.result.value` if possible.
  4798. // Because the evaluated flag value is unstructured and may be any type, it is
  4799. // left to the instrumentation author to determine how best to achieve this.
  4800. FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
  4801. // FeatureFlagResultVariantKey is the attribute Key conforming to the
  4802. // "feature_flag.result.variant" semantic conventions. It represents a semantic
  4803. // identifier for an evaluated flag value.
  4804. //
  4805. // Type: string
  4806. // RequirementLevel: Recommended
  4807. // Stability: Release_Candidate
  4808. //
  4809. // Examples: "red", "true", "on"
  4810. // Note: A semantic identifier, commonly referred to as a variant, provides a
  4811. // means
  4812. // for referring to a value without including the value itself. This can
  4813. // provide additional context for understanding the meaning behind a value.
  4814. // For example, the variant `red` maybe be used for the value `#c05543`.
  4815. FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
  4816. // FeatureFlagSetIDKey is the attribute Key conforming to the
  4817. // "feature_flag.set.id" semantic conventions. It represents the identifier of
  4818. // the [flag set] to which the feature flag belongs.
  4819. //
  4820. // Type: string
  4821. // RequirementLevel: Recommended
  4822. // Stability: Release_Candidate
  4823. //
  4824. // Examples: "proj-1", "ab98sgs", "service1/dev"
  4825. //
  4826. // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
  4827. FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
  4828. // FeatureFlagVersionKey is the attribute Key conforming to the
  4829. // "feature_flag.version" semantic conventions. It represents the version of the
  4830. // ruleset used during the evaluation. This may be any stable value which
  4831. // uniquely identifies the ruleset.
  4832. //
  4833. // Type: string
  4834. // RequirementLevel: Recommended
  4835. // Stability: Release_Candidate
  4836. //
  4837. // Examples: "1", "01ABCDEF"
  4838. FeatureFlagVersionKey = attribute.Key("feature_flag.version")
  4839. )
  4840. // FeatureFlagContextID returns an attribute KeyValue conforming to the
  4841. // "feature_flag.context.id" semantic conventions. It represents the unique
  4842. // identifier for the flag evaluation context. For example, the targeting key.
  4843. func FeatureFlagContextID(val string) attribute.KeyValue {
  4844. return FeatureFlagContextIDKey.String(val)
  4845. }
  4846. // FeatureFlagErrorMessage returns an attribute KeyValue conforming to the
  4847. // "feature_flag.error.message" semantic conventions. It represents a message
  4848. // providing more detail about an error that occurred during feature flag
  4849. // evaluation in human-readable form.
  4850. func FeatureFlagErrorMessage(val string) attribute.KeyValue {
  4851. return FeatureFlagErrorMessageKey.String(val)
  4852. }
  4853. // FeatureFlagKey returns an attribute KeyValue conforming to the
  4854. // "feature_flag.key" semantic conventions. It represents the lookup key of the
  4855. // feature flag.
  4856. func FeatureFlagKey(val string) attribute.KeyValue {
  4857. return FeatureFlagKeyKey.String(val)
  4858. }
  4859. // FeatureFlagProviderName returns an attribute KeyValue conforming to the
  4860. // "feature_flag.provider.name" semantic conventions. It represents the
  4861. // identifies the feature flag provider.
  4862. func FeatureFlagProviderName(val string) attribute.KeyValue {
  4863. return FeatureFlagProviderNameKey.String(val)
  4864. }
  4865. // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
  4866. // "feature_flag.result.variant" semantic conventions. It represents a semantic
  4867. // identifier for an evaluated flag value.
  4868. func FeatureFlagResultVariant(val string) attribute.KeyValue {
  4869. return FeatureFlagResultVariantKey.String(val)
  4870. }
  4871. // FeatureFlagSetID returns an attribute KeyValue conforming to the
  4872. // "feature_flag.set.id" semantic conventions. It represents the identifier of
  4873. // the [flag set] to which the feature flag belongs.
  4874. //
  4875. // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
  4876. func FeatureFlagSetID(val string) attribute.KeyValue {
  4877. return FeatureFlagSetIDKey.String(val)
  4878. }
  4879. // FeatureFlagVersion returns an attribute KeyValue conforming to the
  4880. // "feature_flag.version" semantic conventions. It represents the version of the
  4881. // ruleset used during the evaluation. This may be any stable value which
  4882. // uniquely identifies the ruleset.
  4883. func FeatureFlagVersion(val string) attribute.KeyValue {
  4884. return FeatureFlagVersionKey.String(val)
  4885. }
  4886. // Enum values for feature_flag.result.reason
  4887. var (
  4888. // The resolved value is static (no dynamic evaluation).
  4889. // Stability: release_candidate
  4890. FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
  4891. // The resolved value fell back to a pre-configured value (no dynamic evaluation
  4892. // occurred or dynamic evaluation yielded no result).
  4893. // Stability: release_candidate
  4894. FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
  4895. // The resolved value was the result of a dynamic evaluation, such as a rule or
  4896. // specific user-targeting.
  4897. // Stability: release_candidate
  4898. FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
  4899. // The resolved value was the result of pseudorandom assignment.
  4900. // Stability: release_candidate
  4901. FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
  4902. // The resolved value was retrieved from cache.
  4903. // Stability: release_candidate
  4904. FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
  4905. // The resolved value was the result of the flag being disabled in the
  4906. // management system.
  4907. // Stability: release_candidate
  4908. FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
  4909. // The reason for the resolved value could not be determined.
  4910. // Stability: release_candidate
  4911. FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
  4912. // The resolved value is non-authoritative or possibly out of date
  4913. // Stability: release_candidate
  4914. FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
  4915. // The resolved value was the result of an error.
  4916. // Stability: release_candidate
  4917. FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
  4918. )
  4919. // Namespace: file
  4920. const (
  4921. // FileAccessedKey is the attribute Key conforming to the "file.accessed"
  4922. // semantic conventions. It represents the time when the file was last accessed,
  4923. // in ISO 8601 format.
  4924. //
  4925. // Type: string
  4926. // RequirementLevel: Recommended
  4927. // Stability: Development
  4928. //
  4929. // Examples: "2021-01-01T12:00:00Z"
  4930. // Note: This attribute might not be supported by some file systems — NFS,
  4931. // FAT32, in embedded OS, etc.
  4932. FileAccessedKey = attribute.Key("file.accessed")
  4933. // FileAttributesKey is the attribute Key conforming to the "file.attributes"
  4934. // semantic conventions. It represents the array of file attributes.
  4935. //
  4936. // Type: string[]
  4937. // RequirementLevel: Recommended
  4938. // Stability: Development
  4939. //
  4940. // Examples: "readonly", "hidden"
  4941. // Note: Attributes names depend on the OS or file system. Here’s a
  4942. // non-exhaustive list of values expected for this attribute: `archive`,
  4943. // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
  4944. // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
  4945. // `write`.
  4946. FileAttributesKey = attribute.Key("file.attributes")
  4947. // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
  4948. // conventions. It represents the time when the file attributes or metadata was
  4949. // last changed, in ISO 8601 format.
  4950. //
  4951. // Type: string
  4952. // RequirementLevel: Recommended
  4953. // Stability: Development
  4954. //
  4955. // Examples: "2021-01-01T12:00:00Z"
  4956. // Note: `file.changed` captures the time when any of the file's properties or
  4957. // attributes (including the content) are changed, while `file.modified`
  4958. // captures the timestamp when the file content is modified.
  4959. FileChangedKey = attribute.Key("file.changed")
  4960. // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
  4961. // conventions. It represents the time when the file was created, in ISO 8601
  4962. // format.
  4963. //
  4964. // Type: string
  4965. // RequirementLevel: Recommended
  4966. // Stability: Development
  4967. //
  4968. // Examples: "2021-01-01T12:00:00Z"
  4969. // Note: This attribute might not be supported by some file systems — NFS,
  4970. // FAT32, in embedded OS, etc.
  4971. FileCreatedKey = attribute.Key("file.created")
  4972. // FileDirectoryKey is the attribute Key conforming to the "file.directory"
  4973. // semantic conventions. It represents the directory where the file is located.
  4974. // It should include the drive letter, when appropriate.
  4975. //
  4976. // Type: string
  4977. // RequirementLevel: Recommended
  4978. // Stability: Development
  4979. //
  4980. // Examples: "/home/user", "C:\Program Files\MyApp"
  4981. FileDirectoryKey = attribute.Key("file.directory")
  4982. // FileExtensionKey is the attribute Key conforming to the "file.extension"
  4983. // semantic conventions. It represents the file extension, excluding the leading
  4984. // dot.
  4985. //
  4986. // Type: string
  4987. // RequirementLevel: Recommended
  4988. // Stability: Development
  4989. //
  4990. // Examples: "png", "gz"
  4991. // Note: When the file name has multiple extensions (example.tar.gz), only the
  4992. // last one should be captured ("gz", not "tar.gz").
  4993. FileExtensionKey = attribute.Key("file.extension")
  4994. // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
  4995. // semantic conventions. It represents the name of the fork. A fork is
  4996. // additional data associated with a filesystem object.
  4997. //
  4998. // Type: string
  4999. // RequirementLevel: Recommended
  5000. // Stability: Development
  5001. //
  5002. // Examples: "Zone.Identifier"
  5003. // Note: On Linux, a resource fork is used to store additional data with a
  5004. // filesystem object. A file always has at least one fork for the data portion,
  5005. // and additional forks may exist.
  5006. // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
  5007. // data stream for a file is just called $DATA. Zone.Identifier is commonly used
  5008. // by Windows to track contents downloaded from the Internet. An ADS is
  5009. // typically of the form: C:\path\to\filename.extension:some_fork_name, and
  5010. // some_fork_name is the value that should populate `fork_name`.
  5011. // `filename.extension` should populate `file.name`, and `extension` should
  5012. // populate `file.extension`. The full path, `file.path`, will include the fork
  5013. // name.
  5014. FileForkNameKey = attribute.Key("file.fork_name")
  5015. // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
  5016. // semantic conventions. It represents the primary Group ID (GID) of the file.
  5017. //
  5018. // Type: string
  5019. // RequirementLevel: Recommended
  5020. // Stability: Development
  5021. //
  5022. // Examples: "1000"
  5023. FileGroupIDKey = attribute.Key("file.group.id")
  5024. // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
  5025. // semantic conventions. It represents the primary group name of the file.
  5026. //
  5027. // Type: string
  5028. // RequirementLevel: Recommended
  5029. // Stability: Development
  5030. //
  5031. // Examples: "users"
  5032. FileGroupNameKey = attribute.Key("file.group.name")
  5033. // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
  5034. // conventions. It represents the inode representing the file in the filesystem.
  5035. //
  5036. // Type: string
  5037. // RequirementLevel: Recommended
  5038. // Stability: Development
  5039. //
  5040. // Examples: "256383"
  5041. FileInodeKey = attribute.Key("file.inode")
  5042. // FileModeKey is the attribute Key conforming to the "file.mode" semantic
  5043. // conventions. It represents the mode of the file in octal representation.
  5044. //
  5045. // Type: string
  5046. // RequirementLevel: Recommended
  5047. // Stability: Development
  5048. //
  5049. // Examples: "0640"
  5050. FileModeKey = attribute.Key("file.mode")
  5051. // FileModifiedKey is the attribute Key conforming to the "file.modified"
  5052. // semantic conventions. It represents the time when the file content was last
  5053. // modified, in ISO 8601 format.
  5054. //
  5055. // Type: string
  5056. // RequirementLevel: Recommended
  5057. // Stability: Development
  5058. //
  5059. // Examples: "2021-01-01T12:00:00Z"
  5060. FileModifiedKey = attribute.Key("file.modified")
  5061. // FileNameKey is the attribute Key conforming to the "file.name" semantic
  5062. // conventions. It represents the name of the file including the extension,
  5063. // without the directory.
  5064. //
  5065. // Type: string
  5066. // RequirementLevel: Recommended
  5067. // Stability: Development
  5068. //
  5069. // Examples: "example.png"
  5070. FileNameKey = attribute.Key("file.name")
  5071. // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
  5072. // semantic conventions. It represents the user ID (UID) or security identifier
  5073. // (SID) of the file owner.
  5074. //
  5075. // Type: string
  5076. // RequirementLevel: Recommended
  5077. // Stability: Development
  5078. //
  5079. // Examples: "1000"
  5080. FileOwnerIDKey = attribute.Key("file.owner.id")
  5081. // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
  5082. // semantic conventions. It represents the username of the file owner.
  5083. //
  5084. // Type: string
  5085. // RequirementLevel: Recommended
  5086. // Stability: Development
  5087. //
  5088. // Examples: "root"
  5089. FileOwnerNameKey = attribute.Key("file.owner.name")
  5090. // FilePathKey is the attribute Key conforming to the "file.path" semantic
  5091. // conventions. It represents the full path to the file, including the file
  5092. // name. It should include the drive letter, when appropriate.
  5093. //
  5094. // Type: string
  5095. // RequirementLevel: Recommended
  5096. // Stability: Development
  5097. //
  5098. // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
  5099. FilePathKey = attribute.Key("file.path")
  5100. // FileSizeKey is the attribute Key conforming to the "file.size" semantic
  5101. // conventions. It represents the file size in bytes.
  5102. //
  5103. // Type: int
  5104. // RequirementLevel: Recommended
  5105. // Stability: Development
  5106. //
  5107. // Examples:
  5108. FileSizeKey = attribute.Key("file.size")
  5109. // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
  5110. // "file.symbolic_link.target_path" semantic conventions. It represents the path
  5111. // to the target of a symbolic link.
  5112. //
  5113. // Type: string
  5114. // RequirementLevel: Recommended
  5115. // Stability: Development
  5116. //
  5117. // Examples: "/usr/bin/python3"
  5118. // Note: This attribute is only applicable to symbolic links.
  5119. FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
  5120. )
  5121. // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
  5122. // semantic conventions. It represents the time when the file was last accessed,
  5123. // in ISO 8601 format.
  5124. func FileAccessed(val string) attribute.KeyValue {
  5125. return FileAccessedKey.String(val)
  5126. }
  5127. // FileAttributes returns an attribute KeyValue conforming to the
  5128. // "file.attributes" semantic conventions. It represents the array of file
  5129. // attributes.
  5130. func FileAttributes(val ...string) attribute.KeyValue {
  5131. return FileAttributesKey.StringSlice(val)
  5132. }
  5133. // FileChanged returns an attribute KeyValue conforming to the "file.changed"
  5134. // semantic conventions. It represents the time when the file attributes or
  5135. // metadata was last changed, in ISO 8601 format.
  5136. func FileChanged(val string) attribute.KeyValue {
  5137. return FileChangedKey.String(val)
  5138. }
  5139. // FileCreated returns an attribute KeyValue conforming to the "file.created"
  5140. // semantic conventions. It represents the time when the file was created, in ISO
  5141. // 8601 format.
  5142. func FileCreated(val string) attribute.KeyValue {
  5143. return FileCreatedKey.String(val)
  5144. }
  5145. // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
  5146. // semantic conventions. It represents the directory where the file is located.
  5147. // It should include the drive letter, when appropriate.
  5148. func FileDirectory(val string) attribute.KeyValue {
  5149. return FileDirectoryKey.String(val)
  5150. }
  5151. // FileExtension returns an attribute KeyValue conforming to the "file.extension"
  5152. // semantic conventions. It represents the file extension, excluding the leading
  5153. // dot.
  5154. func FileExtension(val string) attribute.KeyValue {
  5155. return FileExtensionKey.String(val)
  5156. }
  5157. // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
  5158. // semantic conventions. It represents the name of the fork. A fork is additional
  5159. // data associated with a filesystem object.
  5160. func FileForkName(val string) attribute.KeyValue {
  5161. return FileForkNameKey.String(val)
  5162. }
  5163. // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
  5164. // semantic conventions. It represents the primary Group ID (GID) of the file.
  5165. func FileGroupID(val string) attribute.KeyValue {
  5166. return FileGroupIDKey.String(val)
  5167. }
  5168. // FileGroupName returns an attribute KeyValue conforming to the
  5169. // "file.group.name" semantic conventions. It represents the primary group name
  5170. // of the file.
  5171. func FileGroupName(val string) attribute.KeyValue {
  5172. return FileGroupNameKey.String(val)
  5173. }
  5174. // FileInode returns an attribute KeyValue conforming to the "file.inode"
  5175. // semantic conventions. It represents the inode representing the file in the
  5176. // filesystem.
  5177. func FileInode(val string) attribute.KeyValue {
  5178. return FileInodeKey.String(val)
  5179. }
  5180. // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
  5181. // conventions. It represents the mode of the file in octal representation.
  5182. func FileMode(val string) attribute.KeyValue {
  5183. return FileModeKey.String(val)
  5184. }
  5185. // FileModified returns an attribute KeyValue conforming to the "file.modified"
  5186. // semantic conventions. It represents the time when the file content was last
  5187. // modified, in ISO 8601 format.
  5188. func FileModified(val string) attribute.KeyValue {
  5189. return FileModifiedKey.String(val)
  5190. }
  5191. // FileName returns an attribute KeyValue conforming to the "file.name" semantic
  5192. // conventions. It represents the name of the file including the extension,
  5193. // without the directory.
  5194. func FileName(val string) attribute.KeyValue {
  5195. return FileNameKey.String(val)
  5196. }
  5197. // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
  5198. // semantic conventions. It represents the user ID (UID) or security identifier
  5199. // (SID) of the file owner.
  5200. func FileOwnerID(val string) attribute.KeyValue {
  5201. return FileOwnerIDKey.String(val)
  5202. }
  5203. // FileOwnerName returns an attribute KeyValue conforming to the
  5204. // "file.owner.name" semantic conventions. It represents the username of the file
  5205. // owner.
  5206. func FileOwnerName(val string) attribute.KeyValue {
  5207. return FileOwnerNameKey.String(val)
  5208. }
  5209. // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
  5210. // conventions. It represents the full path to the file, including the file name.
  5211. // It should include the drive letter, when appropriate.
  5212. func FilePath(val string) attribute.KeyValue {
  5213. return FilePathKey.String(val)
  5214. }
  5215. // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
  5216. // conventions. It represents the file size in bytes.
  5217. func FileSize(val int) attribute.KeyValue {
  5218. return FileSizeKey.Int(val)
  5219. }
  5220. // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
  5221. // "file.symbolic_link.target_path" semantic conventions. It represents the path
  5222. // to the target of a symbolic link.
  5223. func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
  5224. return FileSymbolicLinkTargetPathKey.String(val)
  5225. }
  5226. // Namespace: gcp
  5227. const (
  5228. // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
  5229. // "gcp.apphub.application.container" semantic conventions. It represents the
  5230. // container within GCP where the AppHub application is defined.
  5231. //
  5232. // Type: string
  5233. // RequirementLevel: Recommended
  5234. // Stability: Development
  5235. //
  5236. // Examples: "projects/my-container-project"
  5237. GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
  5238. // GCPAppHubApplicationIDKey is the attribute Key conforming to the
  5239. // "gcp.apphub.application.id" semantic conventions. It represents the name of
  5240. // the application as configured in AppHub.
  5241. //
  5242. // Type: string
  5243. // RequirementLevel: Recommended
  5244. // Stability: Development
  5245. //
  5246. // Examples: "my-application"
  5247. GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
  5248. // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
  5249. // "gcp.apphub.application.location" semantic conventions. It represents the GCP
  5250. // zone or region where the application is defined.
  5251. //
  5252. // Type: string
  5253. // RequirementLevel: Recommended
  5254. // Stability: Development
  5255. //
  5256. // Examples: "us-central1"
  5257. GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
  5258. // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
  5259. // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
  5260. // criticality of a service indicates its importance to the business.
  5261. //
  5262. // Type: Enum
  5263. // RequirementLevel: Recommended
  5264. // Stability: Development
  5265. //
  5266. // Examples:
  5267. // Note: [See AppHub type enum]
  5268. //
  5269. // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5270. GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
  5271. // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
  5272. // "gcp.apphub.service.environment_type" semantic conventions. It represents the
  5273. // environment of a service is the stage of a software lifecycle.
  5274. //
  5275. // Type: Enum
  5276. // RequirementLevel: Recommended
  5277. // Stability: Development
  5278. //
  5279. // Examples:
  5280. // Note: [See AppHub environment type]
  5281. //
  5282. // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5283. GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
  5284. // GCPAppHubServiceIDKey is the attribute Key conforming to the
  5285. // "gcp.apphub.service.id" semantic conventions. It represents the name of the
  5286. // service as configured in AppHub.
  5287. //
  5288. // Type: string
  5289. // RequirementLevel: Recommended
  5290. // Stability: Development
  5291. //
  5292. // Examples: "my-service"
  5293. GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
  5294. // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
  5295. // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
  5296. // the criticality of a workload indicates its importance to the business.
  5297. //
  5298. // Type: Enum
  5299. // RequirementLevel: Recommended
  5300. // Stability: Development
  5301. //
  5302. // Examples:
  5303. // Note: [See AppHub type enum]
  5304. //
  5305. // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5306. GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
  5307. // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
  5308. // "gcp.apphub.workload.environment_type" semantic conventions. It represents
  5309. // the environment of a workload is the stage of a software lifecycle.
  5310. //
  5311. // Type: Enum
  5312. // RequirementLevel: Recommended
  5313. // Stability: Development
  5314. //
  5315. // Examples:
  5316. // Note: [See AppHub environment type]
  5317. //
  5318. // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5319. GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
  5320. // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
  5321. // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
  5322. // workload as configured in AppHub.
  5323. //
  5324. // Type: string
  5325. // RequirementLevel: Recommended
  5326. // Stability: Development
  5327. //
  5328. // Examples: "my-workload"
  5329. GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
  5330. // GCPAppHubDestinationApplicationContainerKey is the attribute Key conforming
  5331. // to the "gcp.apphub_destination.application.container" semantic conventions.
  5332. // It represents the container within GCP where the AppHub destination
  5333. // application is defined.
  5334. //
  5335. // Type: string
  5336. // RequirementLevel: Recommended
  5337. // Stability: Development
  5338. //
  5339. // Examples: "projects/my-container-project"
  5340. GCPAppHubDestinationApplicationContainerKey = attribute.Key("gcp.apphub_destination.application.container")
  5341. // GCPAppHubDestinationApplicationIDKey is the attribute Key conforming to the
  5342. // "gcp.apphub_destination.application.id" semantic conventions. It represents
  5343. // the name of the destination application as configured in AppHub.
  5344. //
  5345. // Type: string
  5346. // RequirementLevel: Recommended
  5347. // Stability: Development
  5348. //
  5349. // Examples: "my-application"
  5350. GCPAppHubDestinationApplicationIDKey = attribute.Key("gcp.apphub_destination.application.id")
  5351. // GCPAppHubDestinationApplicationLocationKey is the attribute Key conforming to
  5352. // the "gcp.apphub_destination.application.location" semantic conventions. It
  5353. // represents the GCP zone or region where the destination application is
  5354. // defined.
  5355. //
  5356. // Type: string
  5357. // RequirementLevel: Recommended
  5358. // Stability: Development
  5359. //
  5360. // Examples: "us-central1"
  5361. GCPAppHubDestinationApplicationLocationKey = attribute.Key("gcp.apphub_destination.application.location")
  5362. // GCPAppHubDestinationServiceCriticalityTypeKey is the attribute Key conforming
  5363. // to the "gcp.apphub_destination.service.criticality_type" semantic
  5364. // conventions. It represents the criticality of a destination workload
  5365. // indicates its importance to the business as specified in [AppHub type enum].
  5366. //
  5367. // Type: Enum
  5368. // RequirementLevel: Recommended
  5369. // Stability: Development
  5370. //
  5371. // Examples:
  5372. //
  5373. // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5374. GCPAppHubDestinationServiceCriticalityTypeKey = attribute.Key("gcp.apphub_destination.service.criticality_type")
  5375. // GCPAppHubDestinationServiceEnvironmentTypeKey is the attribute Key conforming
  5376. // to the "gcp.apphub_destination.service.environment_type" semantic
  5377. // conventions. It represents the software lifecycle stage of a destination
  5378. // service as defined [AppHub environment type].
  5379. //
  5380. // Type: Enum
  5381. // RequirementLevel: Recommended
  5382. // Stability: Development
  5383. //
  5384. // Examples:
  5385. //
  5386. // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5387. GCPAppHubDestinationServiceEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.service.environment_type")
  5388. // GCPAppHubDestinationServiceIDKey is the attribute Key conforming to the
  5389. // "gcp.apphub_destination.service.id" semantic conventions. It represents the
  5390. // name of the destination service as configured in AppHub.
  5391. //
  5392. // Type: string
  5393. // RequirementLevel: Recommended
  5394. // Stability: Development
  5395. //
  5396. // Examples: "my-service"
  5397. GCPAppHubDestinationServiceIDKey = attribute.Key("gcp.apphub_destination.service.id")
  5398. // GCPAppHubDestinationWorkloadCriticalityTypeKey is the attribute Key
  5399. // conforming to the "gcp.apphub_destination.workload.criticality_type" semantic
  5400. // conventions. It represents the criticality of a destination workload
  5401. // indicates its importance to the business as specified in [AppHub type enum].
  5402. //
  5403. // Type: Enum
  5404. // RequirementLevel: Recommended
  5405. // Stability: Development
  5406. //
  5407. // Examples:
  5408. //
  5409. // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5410. GCPAppHubDestinationWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub_destination.workload.criticality_type")
  5411. // GCPAppHubDestinationWorkloadEnvironmentTypeKey is the attribute Key
  5412. // conforming to the "gcp.apphub_destination.workload.environment_type" semantic
  5413. // conventions. It represents the environment of a destination workload is the
  5414. // stage of a software lifecycle as provided in the [AppHub environment type].
  5415. //
  5416. // Type: Enum
  5417. // RequirementLevel: Recommended
  5418. // Stability: Development
  5419. //
  5420. // Examples:
  5421. //
  5422. // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5423. GCPAppHubDestinationWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.workload.environment_type")
  5424. // GCPAppHubDestinationWorkloadIDKey is the attribute Key conforming to the
  5425. // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
  5426. // name of the destination workload as configured in AppHub.
  5427. //
  5428. // Type: string
  5429. // RequirementLevel: Recommended
  5430. // Stability: Development
  5431. //
  5432. // Examples: "my-workload"
  5433. GCPAppHubDestinationWorkloadIDKey = attribute.Key("gcp.apphub_destination.workload.id")
  5434. // GCPClientServiceKey is the attribute Key conforming to the
  5435. // "gcp.client.service" semantic conventions. It represents the identifies the
  5436. // Google Cloud service for which the official client library is intended.
  5437. //
  5438. // Type: string
  5439. // RequirementLevel: Recommended
  5440. // Stability: Development
  5441. //
  5442. // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
  5443. // Note: Intended to be a stable identifier for Google Cloud client libraries
  5444. // that is uniform across implementation languages. The value should be derived
  5445. // from the canonical service domain for the service; for example,
  5446. // 'foo.googleapis.com' should result in a value of 'foo'.
  5447. GCPClientServiceKey = attribute.Key("gcp.client.service")
  5448. // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
  5449. // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
  5450. // the Cloud Run [execution] being run for the Job, as set by the
  5451. // [`CLOUD_RUN_EXECUTION`] environment variable.
  5452. //
  5453. // Type: string
  5454. // RequirementLevel: Recommended
  5455. // Stability: Development
  5456. //
  5457. // Examples: "job-name-xxxx", "sample-job-mdw84"
  5458. //
  5459. // [execution]: https://cloud.google.com/run/docs/managing/job-executions
  5460. // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5461. GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
  5462. // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
  5463. // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
  5464. // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
  5465. // environment variable.
  5466. //
  5467. // Type: int
  5468. // RequirementLevel: Recommended
  5469. // Stability: Development
  5470. //
  5471. // Examples: 0, 1
  5472. //
  5473. // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5474. GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
  5475. // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
  5476. // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
  5477. // of a GCE instance. This is the full value of the default or [custom hostname]
  5478. // .
  5479. //
  5480. // Type: string
  5481. // RequirementLevel: Recommended
  5482. // Stability: Development
  5483. //
  5484. // Examples: "my-host1234.example.com",
  5485. // "sample-vm.us-west1-b.c.my-project.internal"
  5486. //
  5487. // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
  5488. GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
  5489. // GCPGCEInstanceNameKey is the attribute Key conforming to the
  5490. // "gcp.gce.instance.name" semantic conventions. It represents the instance name
  5491. // of a GCE instance. This is the value provided by `host.name`, the visible
  5492. // name of the instance in the Cloud Console UI, and the prefix for the default
  5493. // hostname of the instance as defined by the [default internal DNS name].
  5494. //
  5495. // Type: string
  5496. // RequirementLevel: Recommended
  5497. // Stability: Development
  5498. //
  5499. // Examples: "instance-1", "my-vm-name"
  5500. //
  5501. // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
  5502. GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
  5503. // GCPGCEInstanceGroupManagerNameKey is the attribute Key conforming to the
  5504. // "gcp.gce.instance_group_manager.name" semantic conventions. It represents the
  5505. // name of the Instance Group Manager (IGM) that manages this VM, if any.
  5506. //
  5507. // Type: string
  5508. // RequirementLevel: Recommended
  5509. // Stability: Development
  5510. //
  5511. // Examples: "web-igm", "my-managed-group"
  5512. GCPGCEInstanceGroupManagerNameKey = attribute.Key("gcp.gce.instance_group_manager.name")
  5513. // GCPGCEInstanceGroupManagerRegionKey is the attribute Key conforming to the
  5514. // "gcp.gce.instance_group_manager.region" semantic conventions. It represents
  5515. // the region of a **regional** Instance Group Manager (e.g., `us-central1`).
  5516. // Set this **only** when the IGM is regional.
  5517. //
  5518. // Type: string
  5519. // RequirementLevel: Recommended
  5520. // Stability: Development
  5521. //
  5522. // Examples: "us-central1", "europe-west1"
  5523. GCPGCEInstanceGroupManagerRegionKey = attribute.Key("gcp.gce.instance_group_manager.region")
  5524. // GCPGCEInstanceGroupManagerZoneKey is the attribute Key conforming to the
  5525. // "gcp.gce.instance_group_manager.zone" semantic conventions. It represents the
  5526. // zone of a **zonal** Instance Group Manager (e.g., `us-central1-a`). Set this
  5527. // **only** when the IGM is zonal.
  5528. //
  5529. // Type: string
  5530. // RequirementLevel: Recommended
  5531. // Stability: Development
  5532. //
  5533. // Examples: "us-central1-a", "europe-west1-b"
  5534. GCPGCEInstanceGroupManagerZoneKey = attribute.Key("gcp.gce.instance_group_manager.zone")
  5535. )
  5536. // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
  5537. // "gcp.apphub.application.container" semantic conventions. It represents the
  5538. // container within GCP where the AppHub application is defined.
  5539. func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
  5540. return GCPAppHubApplicationContainerKey.String(val)
  5541. }
  5542. // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
  5543. // "gcp.apphub.application.id" semantic conventions. It represents the name of
  5544. // the application as configured in AppHub.
  5545. func GCPAppHubApplicationID(val string) attribute.KeyValue {
  5546. return GCPAppHubApplicationIDKey.String(val)
  5547. }
  5548. // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
  5549. // "gcp.apphub.application.location" semantic conventions. It represents the GCP
  5550. // zone or region where the application is defined.
  5551. func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
  5552. return GCPAppHubApplicationLocationKey.String(val)
  5553. }
  5554. // GCPAppHubServiceID returns an attribute KeyValue conforming to the
  5555. // "gcp.apphub.service.id" semantic conventions. It represents the name of the
  5556. // service as configured in AppHub.
  5557. func GCPAppHubServiceID(val string) attribute.KeyValue {
  5558. return GCPAppHubServiceIDKey.String(val)
  5559. }
  5560. // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
  5561. // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
  5562. // workload as configured in AppHub.
  5563. func GCPAppHubWorkloadID(val string) attribute.KeyValue {
  5564. return GCPAppHubWorkloadIDKey.String(val)
  5565. }
  5566. // GCPAppHubDestinationApplicationContainer returns an attribute KeyValue
  5567. // conforming to the "gcp.apphub_destination.application.container" semantic
  5568. // conventions. It represents the container within GCP where the AppHub
  5569. // destination application is defined.
  5570. func GCPAppHubDestinationApplicationContainer(val string) attribute.KeyValue {
  5571. return GCPAppHubDestinationApplicationContainerKey.String(val)
  5572. }
  5573. // GCPAppHubDestinationApplicationID returns an attribute KeyValue conforming to
  5574. // the "gcp.apphub_destination.application.id" semantic conventions. It
  5575. // represents the name of the destination application as configured in AppHub.
  5576. func GCPAppHubDestinationApplicationID(val string) attribute.KeyValue {
  5577. return GCPAppHubDestinationApplicationIDKey.String(val)
  5578. }
  5579. // GCPAppHubDestinationApplicationLocation returns an attribute KeyValue
  5580. // conforming to the "gcp.apphub_destination.application.location" semantic
  5581. // conventions. It represents the GCP zone or region where the destination
  5582. // application is defined.
  5583. func GCPAppHubDestinationApplicationLocation(val string) attribute.KeyValue {
  5584. return GCPAppHubDestinationApplicationLocationKey.String(val)
  5585. }
  5586. // GCPAppHubDestinationServiceID returns an attribute KeyValue conforming to the
  5587. // "gcp.apphub_destination.service.id" semantic conventions. It represents the
  5588. // name of the destination service as configured in AppHub.
  5589. func GCPAppHubDestinationServiceID(val string) attribute.KeyValue {
  5590. return GCPAppHubDestinationServiceIDKey.String(val)
  5591. }
  5592. // GCPAppHubDestinationWorkloadID returns an attribute KeyValue conforming to the
  5593. // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
  5594. // name of the destination workload as configured in AppHub.
  5595. func GCPAppHubDestinationWorkloadID(val string) attribute.KeyValue {
  5596. return GCPAppHubDestinationWorkloadIDKey.String(val)
  5597. }
  5598. // GCPClientService returns an attribute KeyValue conforming to the
  5599. // "gcp.client.service" semantic conventions. It represents the identifies the
  5600. // Google Cloud service for which the official client library is intended.
  5601. func GCPClientService(val string) attribute.KeyValue {
  5602. return GCPClientServiceKey.String(val)
  5603. }
  5604. // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
  5605. // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
  5606. // the Cloud Run [execution] being run for the Job, as set by the
  5607. // [`CLOUD_RUN_EXECUTION`] environment variable.
  5608. //
  5609. // [execution]: https://cloud.google.com/run/docs/managing/job-executions
  5610. // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5611. func GCPCloudRunJobExecution(val string) attribute.KeyValue {
  5612. return GCPCloudRunJobExecutionKey.String(val)
  5613. }
  5614. // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
  5615. // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
  5616. // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
  5617. // environment variable.
  5618. //
  5619. // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5620. func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
  5621. return GCPCloudRunJobTaskIndexKey.Int(val)
  5622. }
  5623. // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
  5624. // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
  5625. // of a GCE instance. This is the full value of the default or [custom hostname]
  5626. // .
  5627. //
  5628. // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
  5629. func GCPGCEInstanceHostname(val string) attribute.KeyValue {
  5630. return GCPGCEInstanceHostnameKey.String(val)
  5631. }
  5632. // GCPGCEInstanceName returns an attribute KeyValue conforming to the
  5633. // "gcp.gce.instance.name" semantic conventions. It represents the instance name
  5634. // of a GCE instance. This is the value provided by `host.name`, the visible name
  5635. // of the instance in the Cloud Console UI, and the prefix for the default
  5636. // hostname of the instance as defined by the [default internal DNS name].
  5637. //
  5638. // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
  5639. func GCPGCEInstanceName(val string) attribute.KeyValue {
  5640. return GCPGCEInstanceNameKey.String(val)
  5641. }
  5642. // GCPGCEInstanceGroupManagerName returns an attribute KeyValue conforming to the
  5643. // "gcp.gce.instance_group_manager.name" semantic conventions. It represents the
  5644. // name of the Instance Group Manager (IGM) that manages this VM, if any.
  5645. func GCPGCEInstanceGroupManagerName(val string) attribute.KeyValue {
  5646. return GCPGCEInstanceGroupManagerNameKey.String(val)
  5647. }
  5648. // GCPGCEInstanceGroupManagerRegion returns an attribute KeyValue conforming to
  5649. // the "gcp.gce.instance_group_manager.region" semantic conventions. It
  5650. // represents the region of a **regional** Instance Group Manager (e.g.,
  5651. // `us-central1`). Set this **only** when the IGM is regional.
  5652. func GCPGCEInstanceGroupManagerRegion(val string) attribute.KeyValue {
  5653. return GCPGCEInstanceGroupManagerRegionKey.String(val)
  5654. }
  5655. // GCPGCEInstanceGroupManagerZone returns an attribute KeyValue conforming to the
  5656. // "gcp.gce.instance_group_manager.zone" semantic conventions. It represents the
  5657. // zone of a **zonal** Instance Group Manager (e.g., `us-central1-a`). Set this
  5658. // **only** when the IGM is zonal.
  5659. func GCPGCEInstanceGroupManagerZone(val string) attribute.KeyValue {
  5660. return GCPGCEInstanceGroupManagerZoneKey.String(val)
  5661. }
  5662. // Enum values for gcp.apphub.service.criticality_type
  5663. var (
  5664. // Mission critical service.
  5665. // Stability: development
  5666. GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
  5667. // High impact.
  5668. // Stability: development
  5669. GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
  5670. // Medium impact.
  5671. // Stability: development
  5672. GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
  5673. // Low impact.
  5674. // Stability: development
  5675. GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
  5676. )
  5677. // Enum values for gcp.apphub.service.environment_type
  5678. var (
  5679. // Production environment.
  5680. // Stability: development
  5681. GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
  5682. // Staging environment.
  5683. // Stability: development
  5684. GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
  5685. // Test environment.
  5686. // Stability: development
  5687. GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
  5688. // Development environment.
  5689. // Stability: development
  5690. GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
  5691. )
  5692. // Enum values for gcp.apphub.workload.criticality_type
  5693. var (
  5694. // Mission critical service.
  5695. // Stability: development
  5696. GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
  5697. // High impact.
  5698. // Stability: development
  5699. GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
  5700. // Medium impact.
  5701. // Stability: development
  5702. GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
  5703. // Low impact.
  5704. // Stability: development
  5705. GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
  5706. )
  5707. // Enum values for gcp.apphub.workload.environment_type
  5708. var (
  5709. // Production environment.
  5710. // Stability: development
  5711. GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
  5712. // Staging environment.
  5713. // Stability: development
  5714. GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
  5715. // Test environment.
  5716. // Stability: development
  5717. GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
  5718. // Development environment.
  5719. // Stability: development
  5720. GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
  5721. )
  5722. // Enum values for gcp.apphub_destination.service.criticality_type
  5723. var (
  5724. // Mission critical service.
  5725. // Stability: development
  5726. GCPAppHubDestinationServiceCriticalityTypeMissionCritical = GCPAppHubDestinationServiceCriticalityTypeKey.String("MISSION_CRITICAL")
  5727. // High impact.
  5728. // Stability: development
  5729. GCPAppHubDestinationServiceCriticalityTypeHigh = GCPAppHubDestinationServiceCriticalityTypeKey.String("HIGH")
  5730. // Medium impact.
  5731. // Stability: development
  5732. GCPAppHubDestinationServiceCriticalityTypeMedium = GCPAppHubDestinationServiceCriticalityTypeKey.String("MEDIUM")
  5733. // Low impact.
  5734. // Stability: development
  5735. GCPAppHubDestinationServiceCriticalityTypeLow = GCPAppHubDestinationServiceCriticalityTypeKey.String("LOW")
  5736. )
  5737. // Enum values for gcp.apphub_destination.service.environment_type
  5738. var (
  5739. // Production environment.
  5740. // Stability: development
  5741. GCPAppHubDestinationServiceEnvironmentTypeProduction = GCPAppHubDestinationServiceEnvironmentTypeKey.String("PRODUCTION")
  5742. // Staging environment.
  5743. // Stability: development
  5744. GCPAppHubDestinationServiceEnvironmentTypeStaging = GCPAppHubDestinationServiceEnvironmentTypeKey.String("STAGING")
  5745. // Test environment.
  5746. // Stability: development
  5747. GCPAppHubDestinationServiceEnvironmentTypeTest = GCPAppHubDestinationServiceEnvironmentTypeKey.String("TEST")
  5748. // Development environment.
  5749. // Stability: development
  5750. GCPAppHubDestinationServiceEnvironmentTypeDevelopment = GCPAppHubDestinationServiceEnvironmentTypeKey.String("DEVELOPMENT")
  5751. )
  5752. // Enum values for gcp.apphub_destination.workload.criticality_type
  5753. var (
  5754. // Mission critical service.
  5755. // Stability: development
  5756. GCPAppHubDestinationWorkloadCriticalityTypeMissionCritical = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
  5757. // High impact.
  5758. // Stability: development
  5759. GCPAppHubDestinationWorkloadCriticalityTypeHigh = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("HIGH")
  5760. // Medium impact.
  5761. // Stability: development
  5762. GCPAppHubDestinationWorkloadCriticalityTypeMedium = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MEDIUM")
  5763. // Low impact.
  5764. // Stability: development
  5765. GCPAppHubDestinationWorkloadCriticalityTypeLow = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("LOW")
  5766. )
  5767. // Enum values for gcp.apphub_destination.workload.environment_type
  5768. var (
  5769. // Production environment.
  5770. // Stability: development
  5771. GCPAppHubDestinationWorkloadEnvironmentTypeProduction = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("PRODUCTION")
  5772. // Staging environment.
  5773. // Stability: development
  5774. GCPAppHubDestinationWorkloadEnvironmentTypeStaging = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("STAGING")
  5775. // Test environment.
  5776. // Stability: development
  5777. GCPAppHubDestinationWorkloadEnvironmentTypeTest = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("TEST")
  5778. // Development environment.
  5779. // Stability: development
  5780. GCPAppHubDestinationWorkloadEnvironmentTypeDevelopment = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
  5781. )
  5782. // Namespace: gen_ai
  5783. const (
  5784. // GenAIAgentDescriptionKey is the attribute Key conforming to the
  5785. // "gen_ai.agent.description" semantic conventions. It represents the free-form
  5786. // description of the GenAI agent provided by the application.
  5787. //
  5788. // Type: string
  5789. // RequirementLevel: Recommended
  5790. // Stability: Development
  5791. //
  5792. // Examples: "Helps with math problems", "Generates fiction stories"
  5793. GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
  5794. // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
  5795. // semantic conventions. It represents the unique identifier of the GenAI agent.
  5796. //
  5797. // Type: string
  5798. // RequirementLevel: Recommended
  5799. // Stability: Development
  5800. //
  5801. // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
  5802. GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
  5803. // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
  5804. // semantic conventions. It represents the human-readable name of the GenAI
  5805. // agent provided by the application.
  5806. //
  5807. // Type: string
  5808. // RequirementLevel: Recommended
  5809. // Stability: Development
  5810. //
  5811. // Examples: "Math Tutor", "Fiction Writer"
  5812. GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
  5813. // GenAIAgentVersionKey is the attribute Key conforming to the
  5814. // "gen_ai.agent.version" semantic conventions. It represents the version of the
  5815. // GenAI agent.
  5816. //
  5817. // Type: string
  5818. // RequirementLevel: Recommended
  5819. // Stability: Development
  5820. //
  5821. // Examples: "1.0.0", "2025-05-01"
  5822. GenAIAgentVersionKey = attribute.Key("gen_ai.agent.version")
  5823. // GenAIConversationIDKey is the attribute Key conforming to the
  5824. // "gen_ai.conversation.id" semantic conventions. It represents the unique
  5825. // identifier for a conversation (session, thread), used to store and correlate
  5826. // messages within this conversation.
  5827. //
  5828. // Type: string
  5829. // RequirementLevel: Recommended
  5830. // Stability: Development
  5831. //
  5832. // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
  5833. GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
  5834. // GenAIDataSourceIDKey is the attribute Key conforming to the
  5835. // "gen_ai.data_source.id" semantic conventions. It represents the data source
  5836. // identifier.
  5837. //
  5838. // Type: string
  5839. // RequirementLevel: Recommended
  5840. // Stability: Development
  5841. //
  5842. // Examples: "H7STPQYOND"
  5843. // Note: Data sources are used by AI agents and RAG applications to store
  5844. // grounding data. A data source may be an external database, object store,
  5845. // document collection, website, or any other storage system used by the GenAI
  5846. // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
  5847. // used by the GenAI system rather than a name specific to the external storage,
  5848. // such as a database or object store. Semantic conventions referencing
  5849. // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
  5850. // `db.*`, to further identify and describe the data source.
  5851. GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
  5852. // GenAIEmbeddingsDimensionCountKey is the attribute Key conforming to the
  5853. // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
  5854. // number of dimensions the resulting output embeddings should have.
  5855. //
  5856. // Type: int
  5857. // RequirementLevel: Recommended
  5858. // Stability: Development
  5859. //
  5860. // Examples: 512, 1024
  5861. GenAIEmbeddingsDimensionCountKey = attribute.Key("gen_ai.embeddings.dimension.count")
  5862. // GenAIEvaluationExplanationKey is the attribute Key conforming to the
  5863. // "gen_ai.evaluation.explanation" semantic conventions. It represents a
  5864. // free-form explanation for the assigned score provided by the evaluator.
  5865. //
  5866. // Type: string
  5867. // RequirementLevel: Recommended
  5868. // Stability: Development
  5869. //
  5870. // Examples: "The response is factually accurate but lacks sufficient detail to
  5871. // fully address the question."
  5872. GenAIEvaluationExplanationKey = attribute.Key("gen_ai.evaluation.explanation")
  5873. // GenAIEvaluationNameKey is the attribute Key conforming to the
  5874. // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
  5875. // evaluation metric used for the GenAI response.
  5876. //
  5877. // Type: string
  5878. // RequirementLevel: Recommended
  5879. // Stability: Development
  5880. //
  5881. // Examples: "Relevance", "IntentResolution"
  5882. GenAIEvaluationNameKey = attribute.Key("gen_ai.evaluation.name")
  5883. // GenAIEvaluationScoreLabelKey is the attribute Key conforming to the
  5884. // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
  5885. // readable label for evaluation.
  5886. //
  5887. // Type: string
  5888. // RequirementLevel: Recommended
  5889. // Stability: Development
  5890. //
  5891. // Examples: "relevant", "not_relevant", "correct", "incorrect", "pass", "fail"
  5892. // Note: This attribute provides a human-readable interpretation of the
  5893. // evaluation score produced by an evaluator. For example, a score value of 1
  5894. // could mean "relevant" in one evaluation system and "not relevant" in another,
  5895. // depending on the scoring range and evaluator. The label SHOULD have low
  5896. // cardinality. Possible values depend on the evaluation metric and evaluator
  5897. // used; implementations SHOULD document the possible values.
  5898. GenAIEvaluationScoreLabelKey = attribute.Key("gen_ai.evaluation.score.label")
  5899. // GenAIEvaluationScoreValueKey is the attribute Key conforming to the
  5900. // "gen_ai.evaluation.score.value" semantic conventions. It represents the
  5901. // evaluation score returned by the evaluator.
  5902. //
  5903. // Type: double
  5904. // RequirementLevel: Recommended
  5905. // Stability: Development
  5906. //
  5907. // Examples: 4.0
  5908. GenAIEvaluationScoreValueKey = attribute.Key("gen_ai.evaluation.score.value")
  5909. // GenAIInputMessagesKey is the attribute Key conforming to the
  5910. // "gen_ai.input.messages" semantic conventions. It represents the chat history
  5911. // provided to the model as an input.
  5912. //
  5913. // Type: any
  5914. // RequirementLevel: Recommended
  5915. // Stability: Development
  5916. //
  5917. // Examples: "[\n {\n "role": "user",\n "parts": [\n {\n "type": "text",\n
  5918. // "content": "Weather in Paris?"\n }\n ]\n },\n {\n "role": "assistant",\n
  5919. // "parts": [\n {\n "type": "tool_call",\n "id":
  5920. // "call_VSPygqKTWdrhaFErNvMV18Yl",\n "name": "get_weather",\n "arguments": {\n
  5921. // "location": "Paris"\n }\n }\n ]\n },\n {\n "role": "tool",\n "parts": [\n {\n
  5922. // "type": "tool_call_response",\n "id": " call_VSPygqKTWdrhaFErNvMV18Yl",\n
  5923. // "result": "rainy, 57°F"\n }\n ]\n }\n]\n"
  5924. // Note: Instrumentations MUST follow [Input messages JSON schema].
  5925. // When the attribute is recorded on events, it MUST be recorded in structured
  5926. // form. When recorded on spans, it MAY be recorded as a JSON string if
  5927. // structured
  5928. // format is not supported and SHOULD be recorded in structured form otherwise.
  5929. //
  5930. // Messages MUST be provided in the order they were sent to the model.
  5931. // Instrumentations MAY provide a way for users to filter or truncate
  5932. // input messages.
  5933. //
  5934. // > [!Warning]
  5935. // > This attribute is likely to contain sensitive information including
  5936. // > user/PII data.
  5937. //
  5938. // See [Recording content on attributes]
  5939. // section for more details.
  5940. //
  5941. // [Input messages JSON schema]: /docs/gen-ai/gen-ai-input-messages.json
  5942. // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
  5943. GenAIInputMessagesKey = attribute.Key("gen_ai.input.messages")
  5944. // GenAIOperationNameKey is the attribute Key conforming to the
  5945. // "gen_ai.operation.name" semantic conventions. It represents the name of the
  5946. // operation being performed.
  5947. //
  5948. // Type: Enum
  5949. // RequirementLevel: Recommended
  5950. // Stability: Development
  5951. //
  5952. // Examples:
  5953. // Note: If one of the predefined values applies, but specific system uses a
  5954. // different name it's RECOMMENDED to document it in the semantic conventions
  5955. // for specific GenAI system and use system-specific name in the
  5956. // instrumentation. If a different name is not documented, instrumentation
  5957. // libraries SHOULD use applicable predefined value.
  5958. GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
  5959. // GenAIOutputMessagesKey is the attribute Key conforming to the
  5960. // "gen_ai.output.messages" semantic conventions. It represents the messages
  5961. // returned by the model where each message represents a specific model response
  5962. // (choice, candidate).
  5963. //
  5964. // Type: any
  5965. // RequirementLevel: Recommended
  5966. // Stability: Development
  5967. //
  5968. // Examples: "[\n {\n "role": "assistant",\n "parts": [\n {\n "type": "text",\n
  5969. // "content": "The weather in Paris is currently rainy with a temperature of
  5970. // 57°F."\n }\n ],\n "finish_reason": "stop"\n }\n]\n"
  5971. // Note: Instrumentations MUST follow [Output messages JSON schema]
  5972. //
  5973. // Each message represents a single output choice/candidate generated by
  5974. // the model. Each message corresponds to exactly one generation
  5975. // (choice/candidate) and vice versa - one choice cannot be split across
  5976. // multiple messages or one message cannot contain parts from multiple choices.
  5977. //
  5978. // When the attribute is recorded on events, it MUST be recorded in structured
  5979. // form. When recorded on spans, it MAY be recorded as a JSON string if
  5980. // structured
  5981. // format is not supported and SHOULD be recorded in structured form otherwise.
  5982. //
  5983. // Instrumentations MAY provide a way for users to filter or truncate
  5984. // output messages.
  5985. //
  5986. // > [!Warning]
  5987. // > This attribute is likely to contain sensitive information including
  5988. // > user/PII data.
  5989. //
  5990. // See [Recording content on attributes]
  5991. // section for more details.
  5992. //
  5993. // [Output messages JSON schema]: /docs/gen-ai/gen-ai-output-messages.json
  5994. // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
  5995. GenAIOutputMessagesKey = attribute.Key("gen_ai.output.messages")
  5996. // GenAIOutputTypeKey is the attribute Key conforming to the
  5997. // "gen_ai.output.type" semantic conventions. It represents the represents the
  5998. // content type requested by the client.
  5999. //
  6000. // Type: Enum
  6001. // RequirementLevel: Recommended
  6002. // Stability: Development
  6003. //
  6004. // Examples:
  6005. // Note: This attribute SHOULD be used when the client requests output of a
  6006. // specific type. The model may return zero or more outputs of this type.
  6007. // This attribute specifies the output modality and not the actual output
  6008. // format. For example, if an image is requested, the actual output could be a
  6009. // URL pointing to an image file.
  6010. // Additional output format details may be recorded in the future in the
  6011. // `gen_ai.output.{type}.*` attributes.
  6012. GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
  6013. // GenAIPromptNameKey is the attribute Key conforming to the
  6014. // "gen_ai.prompt.name" semantic conventions. It represents the name of the
  6015. // prompt that uniquely identifies it.
  6016. //
  6017. // Type: string
  6018. // RequirementLevel: Recommended
  6019. // Stability: Development
  6020. //
  6021. // Examples: "analyze-code"
  6022. GenAIPromptNameKey = attribute.Key("gen_ai.prompt.name")
  6023. // GenAIProviderNameKey is the attribute Key conforming to the
  6024. // "gen_ai.provider.name" semantic conventions. It represents the Generative AI
  6025. // provider as identified by the client or server instrumentation.
  6026. //
  6027. // Type: Enum
  6028. // RequirementLevel: Recommended
  6029. // Stability: Development
  6030. //
  6031. // Examples:
  6032. // Note: The attribute SHOULD be set based on the instrumentation's best
  6033. // knowledge and may differ from the actual model provider.
  6034. //
  6035. // Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms
  6036. // are accessible using the OpenAI REST API and corresponding client libraries,
  6037. // but may proxy or host models from different providers.
  6038. //
  6039. // The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address`
  6040. // attributes may help identify the actual system in use.
  6041. //
  6042. // The `gen_ai.provider.name` attribute acts as a discriminator that
  6043. // identifies the GenAI telemetry format flavor specific to that provider
  6044. // within GenAI semantic conventions.
  6045. // It SHOULD be set consistently with provider-specific attributes and signals.
  6046. // For example, GenAI spans, metrics, and events related to AWS Bedrock
  6047. // should have the `gen_ai.provider.name` set to `aws.bedrock` and include
  6048. // applicable `aws.bedrock.*` attributes and are not expected to include
  6049. // `openai.*` attributes.
  6050. GenAIProviderNameKey = attribute.Key("gen_ai.provider.name")
  6051. // GenAIRequestChoiceCountKey is the attribute Key conforming to the
  6052. // "gen_ai.request.choice.count" semantic conventions. It represents the target
  6053. // number of candidate completions to return.
  6054. //
  6055. // Type: int
  6056. // RequirementLevel: Recommended
  6057. // Stability: Development
  6058. //
  6059. // Examples: 3
  6060. GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
  6061. // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
  6062. // "gen_ai.request.encoding_formats" semantic conventions. It represents the
  6063. // encoding formats requested in an embeddings operation, if specified.
  6064. //
  6065. // Type: string[]
  6066. // RequirementLevel: Recommended
  6067. // Stability: Development
  6068. //
  6069. // Examples: "base64"], ["float", "binary"
  6070. // Note: In some GenAI systems the encoding formats are called embedding types.
  6071. // Also, some GenAI systems only accept a single format per request.
  6072. GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
  6073. // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
  6074. // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
  6075. // frequency penalty setting for the GenAI request.
  6076. //
  6077. // Type: double
  6078. // RequirementLevel: Recommended
  6079. // Stability: Development
  6080. //
  6081. // Examples: 0.1
  6082. GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
  6083. // GenAIRequestMaxTokensKey is the attribute Key conforming to the
  6084. // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
  6085. // number of tokens the model generates for a request.
  6086. //
  6087. // Type: int
  6088. // RequirementLevel: Recommended
  6089. // Stability: Development
  6090. //
  6091. // Examples: 100
  6092. GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
  6093. // GenAIRequestModelKey is the attribute Key conforming to the
  6094. // "gen_ai.request.model" semantic conventions. It represents the name of the
  6095. // GenAI model a request is being made to.
  6096. //
  6097. // Type: string
  6098. // RequirementLevel: Recommended
  6099. // Stability: Development
  6100. //
  6101. // Examples: gpt-4
  6102. GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
  6103. // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
  6104. // "gen_ai.request.presence_penalty" semantic conventions. It represents the
  6105. // presence penalty setting for the GenAI request.
  6106. //
  6107. // Type: double
  6108. // RequirementLevel: Recommended
  6109. // Stability: Development
  6110. //
  6111. // Examples: 0.1
  6112. GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
  6113. // GenAIRequestSeedKey is the attribute Key conforming to the
  6114. // "gen_ai.request.seed" semantic conventions. It represents the requests with
  6115. // same seed value more likely to return same result.
  6116. //
  6117. // Type: int
  6118. // RequirementLevel: Recommended
  6119. // Stability: Development
  6120. //
  6121. // Examples: 100
  6122. GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
  6123. // GenAIRequestStopSequencesKey is the attribute Key conforming to the
  6124. // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
  6125. // of sequences that the model will use to stop generating further tokens.
  6126. //
  6127. // Type: string[]
  6128. // RequirementLevel: Recommended
  6129. // Stability: Development
  6130. //
  6131. // Examples: "forest", "lived"
  6132. GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
  6133. // GenAIRequestTemperatureKey is the attribute Key conforming to the
  6134. // "gen_ai.request.temperature" semantic conventions. It represents the
  6135. // temperature setting for the GenAI request.
  6136. //
  6137. // Type: double
  6138. // RequirementLevel: Recommended
  6139. // Stability: Development
  6140. //
  6141. // Examples: 0.0
  6142. GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
  6143. // GenAIRequestTopKKey is the attribute Key conforming to the
  6144. // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
  6145. // setting for the GenAI request.
  6146. //
  6147. // Type: double
  6148. // RequirementLevel: Recommended
  6149. // Stability: Development
  6150. //
  6151. // Examples: 1.0
  6152. GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
  6153. // GenAIRequestTopPKey is the attribute Key conforming to the
  6154. // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
  6155. // setting for the GenAI request.
  6156. //
  6157. // Type: double
  6158. // RequirementLevel: Recommended
  6159. // Stability: Development
  6160. //
  6161. // Examples: 1.0
  6162. GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
  6163. // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
  6164. // "gen_ai.response.finish_reasons" semantic conventions. It represents the
  6165. // array of reasons the model stopped generating tokens, corresponding to each
  6166. // generation received.
  6167. //
  6168. // Type: string[]
  6169. // RequirementLevel: Recommended
  6170. // Stability: Development
  6171. //
  6172. // Examples: "stop"], ["stop", "length"
  6173. GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
  6174. // GenAIResponseIDKey is the attribute Key conforming to the
  6175. // "gen_ai.response.id" semantic conventions. It represents the unique
  6176. // identifier for the completion.
  6177. //
  6178. // Type: string
  6179. // RequirementLevel: Recommended
  6180. // Stability: Development
  6181. //
  6182. // Examples: "chatcmpl-123"
  6183. GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
  6184. // GenAIResponseModelKey is the attribute Key conforming to the
  6185. // "gen_ai.response.model" semantic conventions. It represents the name of the
  6186. // model that generated the response.
  6187. //
  6188. // Type: string
  6189. // RequirementLevel: Recommended
  6190. // Stability: Development
  6191. //
  6192. // Examples: "gpt-4-0613"
  6193. GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
  6194. // GenAIRetrievalDocumentsKey is the attribute Key conforming to the
  6195. // "gen_ai.retrieval.documents" semantic conventions. It represents the
  6196. // documents retrieved.
  6197. //
  6198. // Type: any
  6199. // RequirementLevel: Recommended
  6200. // Stability: Development
  6201. //
  6202. // Examples: "[\n {\n "id": "doc_123",\n "score": 0.95\n },\n {\n "id":
  6203. // "doc_456",\n "score": 0.87\n },\n {\n "id": "doc_789",\n "score": 0.82\n
  6204. // }\n]\n"
  6205. // Note: Instrumentations MUST follow [Retrieval documents JSON schema].
  6206. // When the attribute is recorded on events, it MUST be recorded in structured
  6207. // form. When recorded on spans, it MAY be recorded as a JSON string if
  6208. // structured
  6209. // format is not supported and SHOULD be recorded in structured form otherwise.
  6210. //
  6211. // Each document object SHOULD contain at least the following properties:
  6212. // `id` (string): A unique identifier for the document, `score` (double): The
  6213. // relevance score of the document
  6214. //
  6215. // [Retrieval documents JSON schema]: /docs/gen-ai/gen-ai-retrieval-documents.json
  6216. GenAIRetrievalDocumentsKey = attribute.Key("gen_ai.retrieval.documents")
  6217. // GenAIRetrievalQueryTextKey is the attribute Key conforming to the
  6218. // "gen_ai.retrieval.query.text" semantic conventions. It represents the query
  6219. // text used for retrieval.
  6220. //
  6221. // Type: string
  6222. // RequirementLevel: Recommended
  6223. // Stability: Development
  6224. //
  6225. // Examples: "What is the capital of France?", "weather in Paris"
  6226. // Note: > [!Warning]
  6227. //
  6228. // > This attribute may contain sensitive information.
  6229. GenAIRetrievalQueryTextKey = attribute.Key("gen_ai.retrieval.query.text")
  6230. // GenAISystemInstructionsKey is the attribute Key conforming to the
  6231. // "gen_ai.system_instructions" semantic conventions. It represents the system
  6232. // message or instructions provided to the GenAI model separately from the chat
  6233. // history.
  6234. //
  6235. // Type: any
  6236. // RequirementLevel: Recommended
  6237. // Stability: Development
  6238. //
  6239. // Examples: "[\n {\n "type": "text",\n "content": "You are an Agent that greet
  6240. // users, always use greetings tool to respond"\n }\n]\n", "[\n {\n "type":
  6241. // "text",\n "content": "You are a language translator."\n },\n {\n "type":
  6242. // "text",\n "content": "Your mission is to translate text in English to
  6243. // French."\n }\n]\n"
  6244. // Note: This attribute SHOULD be used when the corresponding provider or API
  6245. // allows to provide system instructions or messages separately from the
  6246. // chat history.
  6247. //
  6248. // Instructions that are part of the chat history SHOULD be recorded in
  6249. // `gen_ai.input.messages` attribute instead.
  6250. //
  6251. // Instrumentations MUST follow [System instructions JSON schema].
  6252. //
  6253. // When recorded on spans, it MAY be recorded as a JSON string if structured
  6254. // format is not supported and SHOULD be recorded in structured form otherwise.
  6255. //
  6256. // Instrumentations MAY provide a way for users to filter or truncate
  6257. // system instructions.
  6258. //
  6259. // > [!Warning]
  6260. // > This attribute may contain sensitive information.
  6261. //
  6262. // See [Recording content on attributes]
  6263. // section for more details.
  6264. //
  6265. // [System instructions JSON schema]: /docs/gen-ai/gen-ai-system-instructions.json
  6266. // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
  6267. GenAISystemInstructionsKey = attribute.Key("gen_ai.system_instructions")
  6268. // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
  6269. // semantic conventions. It represents the type of token being counted.
  6270. //
  6271. // Type: Enum
  6272. // RequirementLevel: Recommended
  6273. // Stability: Development
  6274. //
  6275. // Examples: "input", "output"
  6276. GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
  6277. // GenAIToolCallArgumentsKey is the attribute Key conforming to the
  6278. // "gen_ai.tool.call.arguments" semantic conventions. It represents the
  6279. // parameters passed to the tool call.
  6280. //
  6281. // Type: any
  6282. // RequirementLevel: Recommended
  6283. // Stability: Development
  6284. //
  6285. // Examples: "{\n "location": "San Francisco?",\n "date": "2025-10-01"\n}\n"
  6286. // Note: > [!WARNING]
  6287. //
  6288. // > This attribute may contain sensitive information.
  6289. //
  6290. // It's expected to be an object - in case a serialized string is available
  6291. // to the instrumentation, the instrumentation SHOULD do the best effort to
  6292. // deserialize it to an object. When recorded on spans, it MAY be recorded as a
  6293. // JSON string if structured format is not supported and SHOULD be recorded in
  6294. // structured form otherwise.
  6295. GenAIToolCallArgumentsKey = attribute.Key("gen_ai.tool.call.arguments")
  6296. // GenAIToolCallIDKey is the attribute Key conforming to the
  6297. // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
  6298. // identifier.
  6299. //
  6300. // Type: string
  6301. // RequirementLevel: Recommended
  6302. // Stability: Development
  6303. //
  6304. // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
  6305. GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
  6306. // GenAIToolCallResultKey is the attribute Key conforming to the
  6307. // "gen_ai.tool.call.result" semantic conventions. It represents the result
  6308. // returned by the tool call (if any and if execution was successful).
  6309. //
  6310. // Type: any
  6311. // RequirementLevel: Recommended
  6312. // Stability: Development
  6313. //
  6314. // Examples: "{\n "temperature_range": {\n "high": 75,\n "low": 60\n },\n
  6315. // "conditions": "sunny"\n}\n"
  6316. // Note: > [!WARNING]
  6317. //
  6318. // > This attribute may contain sensitive information.
  6319. //
  6320. // It's expected to be an object - in case a serialized string is available
  6321. // to the instrumentation, the instrumentation SHOULD do the best effort to
  6322. // deserialize it to an object. When recorded on spans, it MAY be recorded as a
  6323. // JSON string if structured format is not supported and SHOULD be recorded in
  6324. // structured form otherwise.
  6325. GenAIToolCallResultKey = attribute.Key("gen_ai.tool.call.result")
  6326. // GenAIToolDefinitionsKey is the attribute Key conforming to the
  6327. // "gen_ai.tool.definitions" semantic conventions. It represents the list of
  6328. // source system tool definitions available to the GenAI agent or model.
  6329. //
  6330. // Type: any
  6331. // RequirementLevel: Recommended
  6332. // Stability: Development
  6333. //
  6334. // Examples: "[\n {\n "type": "function",\n "name": "get_current_weather",\n
  6335. // "description": "Get the current weather in a given location",\n "parameters":
  6336. // {\n "type": "object",\n "properties": {\n "location": {\n "type": "string",\n
  6337. // "description": "The city and state, e.g. San Francisco, CA"\n },\n "unit":
  6338. // {\n "type": "string",\n "enum": [\n "celsius",\n "fahrenheit"\n ]\n }\n },\n
  6339. // "required": [\n "location",\n "unit"\n ]\n }\n }\n]\n"
  6340. // Note: The value of this attribute matches source system tool definition
  6341. // format.
  6342. //
  6343. // It's expected to be an array of objects where each object represents a tool
  6344. // definition. In case a serialized string is available
  6345. // to the instrumentation, the instrumentation SHOULD do the best effort to
  6346. // deserialize it to an array. When recorded on spans, it MAY be recorded as a
  6347. // JSON string if structured format is not supported and SHOULD be recorded in
  6348. // structured form otherwise.
  6349. //
  6350. // Since this attribute could be large, it's NOT RECOMMENDED to populate
  6351. // it by default. Instrumentations MAY provide a way to enable
  6352. // populating this attribute.
  6353. GenAIToolDefinitionsKey = attribute.Key("gen_ai.tool.definitions")
  6354. // GenAIToolDescriptionKey is the attribute Key conforming to the
  6355. // "gen_ai.tool.description" semantic conventions. It represents the tool
  6356. // description.
  6357. //
  6358. // Type: string
  6359. // RequirementLevel: Recommended
  6360. // Stability: Development
  6361. //
  6362. // Examples: "Multiply two numbers"
  6363. GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
  6364. // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
  6365. // semantic conventions. It represents the name of the tool utilized by the
  6366. // agent.
  6367. //
  6368. // Type: string
  6369. // RequirementLevel: Recommended
  6370. // Stability: Development
  6371. //
  6372. // Examples: "Flights"
  6373. GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
  6374. // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
  6375. // semantic conventions. It represents the type of the tool utilized by the
  6376. // agent.
  6377. //
  6378. // Type: string
  6379. // RequirementLevel: Recommended
  6380. // Stability: Development
  6381. //
  6382. // Examples: "function", "extension", "datastore"
  6383. // Note: Extension: A tool executed on the agent-side to directly call external
  6384. // APIs, bridging the gap between the agent and real-world systems.
  6385. // Agent-side operations involve actions that are performed by the agent on the
  6386. // server or within the agent's controlled environment.
  6387. // Function: A tool executed on the client-side, where the agent generates
  6388. // parameters for a predefined function, and the client executes the logic.
  6389. // Client-side operations are actions taken on the user's end or within the
  6390. // client application.
  6391. // Datastore: A tool used by the agent to access and query structured or
  6392. // unstructured external data for retrieval-augmented tasks or knowledge
  6393. // updates.
  6394. GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
  6395. // GenAIUsageCacheCreationInputTokensKey is the attribute Key conforming to the
  6396. // "gen_ai.usage.cache_creation.input_tokens" semantic conventions. It
  6397. // represents the number of input tokens written to a provider-managed cache.
  6398. //
  6399. // Type: int
  6400. // RequirementLevel: Recommended
  6401. // Stability: Development
  6402. //
  6403. // Examples: 25
  6404. // Note: The value SHOULD be included in `gen_ai.usage.input_tokens`.
  6405. GenAIUsageCacheCreationInputTokensKey = attribute.Key("gen_ai.usage.cache_creation.input_tokens")
  6406. // GenAIUsageCacheReadInputTokensKey is the attribute Key conforming to the
  6407. // "gen_ai.usage.cache_read.input_tokens" semantic conventions. It represents
  6408. // the number of input tokens served from a provider-managed cache.
  6409. //
  6410. // Type: int
  6411. // RequirementLevel: Recommended
  6412. // Stability: Development
  6413. //
  6414. // Examples: 50
  6415. // Note: The value SHOULD be included in `gen_ai.usage.input_tokens`.
  6416. GenAIUsageCacheReadInputTokensKey = attribute.Key("gen_ai.usage.cache_read.input_tokens")
  6417. // GenAIUsageInputTokensKey is the attribute Key conforming to the
  6418. // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
  6419. // tokens used in the GenAI input (prompt).
  6420. //
  6421. // Type: int
  6422. // RequirementLevel: Recommended
  6423. // Stability: Development
  6424. //
  6425. // Examples: 100
  6426. // Note: This value SHOULD include all types of input tokens, including cached
  6427. // tokens.
  6428. // Instrumentations SHOULD make a best effort to populate this value, using a
  6429. // total
  6430. // provided by the provider when available or, depending on the provider API,
  6431. // by summing different token types parsed from the provider output.
  6432. GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
  6433. // GenAIUsageOutputTokensKey is the attribute Key conforming to the
  6434. // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
  6435. // of tokens used in the GenAI response (completion).
  6436. //
  6437. // Type: int
  6438. // RequirementLevel: Recommended
  6439. // Stability: Development
  6440. //
  6441. // Examples: 180
  6442. GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
  6443. )
  6444. // GenAIAgentDescription returns an attribute KeyValue conforming to the
  6445. // "gen_ai.agent.description" semantic conventions. It represents the free-form
  6446. // description of the GenAI agent provided by the application.
  6447. func GenAIAgentDescription(val string) attribute.KeyValue {
  6448. return GenAIAgentDescriptionKey.String(val)
  6449. }
  6450. // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
  6451. // semantic conventions. It represents the unique identifier of the GenAI agent.
  6452. func GenAIAgentID(val string) attribute.KeyValue {
  6453. return GenAIAgentIDKey.String(val)
  6454. }
  6455. // GenAIAgentName returns an attribute KeyValue conforming to the
  6456. // "gen_ai.agent.name" semantic conventions. It represents the human-readable
  6457. // name of the GenAI agent provided by the application.
  6458. func GenAIAgentName(val string) attribute.KeyValue {
  6459. return GenAIAgentNameKey.String(val)
  6460. }
  6461. // GenAIAgentVersion returns an attribute KeyValue conforming to the
  6462. // "gen_ai.agent.version" semantic conventions. It represents the version of the
  6463. // GenAI agent.
  6464. func GenAIAgentVersion(val string) attribute.KeyValue {
  6465. return GenAIAgentVersionKey.String(val)
  6466. }
  6467. // GenAIConversationID returns an attribute KeyValue conforming to the
  6468. // "gen_ai.conversation.id" semantic conventions. It represents the unique
  6469. // identifier for a conversation (session, thread), used to store and correlate
  6470. // messages within this conversation.
  6471. func GenAIConversationID(val string) attribute.KeyValue {
  6472. return GenAIConversationIDKey.String(val)
  6473. }
  6474. // GenAIDataSourceID returns an attribute KeyValue conforming to the
  6475. // "gen_ai.data_source.id" semantic conventions. It represents the data source
  6476. // identifier.
  6477. func GenAIDataSourceID(val string) attribute.KeyValue {
  6478. return GenAIDataSourceIDKey.String(val)
  6479. }
  6480. // GenAIEmbeddingsDimensionCount returns an attribute KeyValue conforming to the
  6481. // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
  6482. // number of dimensions the resulting output embeddings should have.
  6483. func GenAIEmbeddingsDimensionCount(val int) attribute.KeyValue {
  6484. return GenAIEmbeddingsDimensionCountKey.Int(val)
  6485. }
  6486. // GenAIEvaluationExplanation returns an attribute KeyValue conforming to the
  6487. // "gen_ai.evaluation.explanation" semantic conventions. It represents a
  6488. // free-form explanation for the assigned score provided by the evaluator.
  6489. func GenAIEvaluationExplanation(val string) attribute.KeyValue {
  6490. return GenAIEvaluationExplanationKey.String(val)
  6491. }
  6492. // GenAIEvaluationName returns an attribute KeyValue conforming to the
  6493. // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
  6494. // evaluation metric used for the GenAI response.
  6495. func GenAIEvaluationName(val string) attribute.KeyValue {
  6496. return GenAIEvaluationNameKey.String(val)
  6497. }
  6498. // GenAIEvaluationScoreLabel returns an attribute KeyValue conforming to the
  6499. // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
  6500. // readable label for evaluation.
  6501. func GenAIEvaluationScoreLabel(val string) attribute.KeyValue {
  6502. return GenAIEvaluationScoreLabelKey.String(val)
  6503. }
  6504. // GenAIEvaluationScoreValue returns an attribute KeyValue conforming to the
  6505. // "gen_ai.evaluation.score.value" semantic conventions. It represents the
  6506. // evaluation score returned by the evaluator.
  6507. func GenAIEvaluationScoreValue(val float64) attribute.KeyValue {
  6508. return GenAIEvaluationScoreValueKey.Float64(val)
  6509. }
  6510. // GenAIPromptName returns an attribute KeyValue conforming to the
  6511. // "gen_ai.prompt.name" semantic conventions. It represents the name of the
  6512. // prompt that uniquely identifies it.
  6513. func GenAIPromptName(val string) attribute.KeyValue {
  6514. return GenAIPromptNameKey.String(val)
  6515. }
  6516. // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
  6517. // "gen_ai.request.choice.count" semantic conventions. It represents the target
  6518. // number of candidate completions to return.
  6519. func GenAIRequestChoiceCount(val int) attribute.KeyValue {
  6520. return GenAIRequestChoiceCountKey.Int(val)
  6521. }
  6522. // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
  6523. // "gen_ai.request.encoding_formats" semantic conventions. It represents the
  6524. // encoding formats requested in an embeddings operation, if specified.
  6525. func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
  6526. return GenAIRequestEncodingFormatsKey.StringSlice(val)
  6527. }
  6528. // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
  6529. // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
  6530. // frequency penalty setting for the GenAI request.
  6531. func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
  6532. return GenAIRequestFrequencyPenaltyKey.Float64(val)
  6533. }
  6534. // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
  6535. // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
  6536. // number of tokens the model generates for a request.
  6537. func GenAIRequestMaxTokens(val int) attribute.KeyValue {
  6538. return GenAIRequestMaxTokensKey.Int(val)
  6539. }
  6540. // GenAIRequestModel returns an attribute KeyValue conforming to the
  6541. // "gen_ai.request.model" semantic conventions. It represents the name of the
  6542. // GenAI model a request is being made to.
  6543. func GenAIRequestModel(val string) attribute.KeyValue {
  6544. return GenAIRequestModelKey.String(val)
  6545. }
  6546. // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
  6547. // "gen_ai.request.presence_penalty" semantic conventions. It represents the
  6548. // presence penalty setting for the GenAI request.
  6549. func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
  6550. return GenAIRequestPresencePenaltyKey.Float64(val)
  6551. }
  6552. // GenAIRequestSeed returns an attribute KeyValue conforming to the
  6553. // "gen_ai.request.seed" semantic conventions. It represents the requests with
  6554. // same seed value more likely to return same result.
  6555. func GenAIRequestSeed(val int) attribute.KeyValue {
  6556. return GenAIRequestSeedKey.Int(val)
  6557. }
  6558. // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
  6559. // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
  6560. // of sequences that the model will use to stop generating further tokens.
  6561. func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
  6562. return GenAIRequestStopSequencesKey.StringSlice(val)
  6563. }
  6564. // GenAIRequestTemperature returns an attribute KeyValue conforming to the
  6565. // "gen_ai.request.temperature" semantic conventions. It represents the
  6566. // temperature setting for the GenAI request.
  6567. func GenAIRequestTemperature(val float64) attribute.KeyValue {
  6568. return GenAIRequestTemperatureKey.Float64(val)
  6569. }
  6570. // GenAIRequestTopK returns an attribute KeyValue conforming to the
  6571. // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
  6572. // setting for the GenAI request.
  6573. func GenAIRequestTopK(val float64) attribute.KeyValue {
  6574. return GenAIRequestTopKKey.Float64(val)
  6575. }
  6576. // GenAIRequestTopP returns an attribute KeyValue conforming to the
  6577. // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
  6578. // setting for the GenAI request.
  6579. func GenAIRequestTopP(val float64) attribute.KeyValue {
  6580. return GenAIRequestTopPKey.Float64(val)
  6581. }
  6582. // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
  6583. // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
  6584. // of reasons the model stopped generating tokens, corresponding to each
  6585. // generation received.
  6586. func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
  6587. return GenAIResponseFinishReasonsKey.StringSlice(val)
  6588. }
  6589. // GenAIResponseID returns an attribute KeyValue conforming to the
  6590. // "gen_ai.response.id" semantic conventions. It represents the unique identifier
  6591. // for the completion.
  6592. func GenAIResponseID(val string) attribute.KeyValue {
  6593. return GenAIResponseIDKey.String(val)
  6594. }
  6595. // GenAIResponseModel returns an attribute KeyValue conforming to the
  6596. // "gen_ai.response.model" semantic conventions. It represents the name of the
  6597. // model that generated the response.
  6598. func GenAIResponseModel(val string) attribute.KeyValue {
  6599. return GenAIResponseModelKey.String(val)
  6600. }
  6601. // GenAIRetrievalQueryText returns an attribute KeyValue conforming to the
  6602. // "gen_ai.retrieval.query.text" semantic conventions. It represents the query
  6603. // text used for retrieval.
  6604. func GenAIRetrievalQueryText(val string) attribute.KeyValue {
  6605. return GenAIRetrievalQueryTextKey.String(val)
  6606. }
  6607. // GenAIToolCallID returns an attribute KeyValue conforming to the
  6608. // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
  6609. // identifier.
  6610. func GenAIToolCallID(val string) attribute.KeyValue {
  6611. return GenAIToolCallIDKey.String(val)
  6612. }
  6613. // GenAIToolDescription returns an attribute KeyValue conforming to the
  6614. // "gen_ai.tool.description" semantic conventions. It represents the tool
  6615. // description.
  6616. func GenAIToolDescription(val string) attribute.KeyValue {
  6617. return GenAIToolDescriptionKey.String(val)
  6618. }
  6619. // GenAIToolName returns an attribute KeyValue conforming to the
  6620. // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
  6621. // utilized by the agent.
  6622. func GenAIToolName(val string) attribute.KeyValue {
  6623. return GenAIToolNameKey.String(val)
  6624. }
  6625. // GenAIToolType returns an attribute KeyValue conforming to the
  6626. // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
  6627. // utilized by the agent.
  6628. func GenAIToolType(val string) attribute.KeyValue {
  6629. return GenAIToolTypeKey.String(val)
  6630. }
  6631. // GenAIUsageCacheCreationInputTokens returns an attribute KeyValue conforming to
  6632. // the "gen_ai.usage.cache_creation.input_tokens" semantic conventions. It
  6633. // represents the number of input tokens written to a provider-managed cache.
  6634. func GenAIUsageCacheCreationInputTokens(val int) attribute.KeyValue {
  6635. return GenAIUsageCacheCreationInputTokensKey.Int(val)
  6636. }
  6637. // GenAIUsageCacheReadInputTokens returns an attribute KeyValue conforming to the
  6638. // "gen_ai.usage.cache_read.input_tokens" semantic conventions. It represents the
  6639. // number of input tokens served from a provider-managed cache.
  6640. func GenAIUsageCacheReadInputTokens(val int) attribute.KeyValue {
  6641. return GenAIUsageCacheReadInputTokensKey.Int(val)
  6642. }
  6643. // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
  6644. // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
  6645. // tokens used in the GenAI input (prompt).
  6646. func GenAIUsageInputTokens(val int) attribute.KeyValue {
  6647. return GenAIUsageInputTokensKey.Int(val)
  6648. }
  6649. // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
  6650. // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
  6651. // tokens used in the GenAI response (completion).
  6652. func GenAIUsageOutputTokens(val int) attribute.KeyValue {
  6653. return GenAIUsageOutputTokensKey.Int(val)
  6654. }
  6655. // Enum values for gen_ai.operation.name
  6656. var (
  6657. // Chat completion operation such as [OpenAI Chat API]
  6658. // Stability: development
  6659. //
  6660. // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
  6661. GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
  6662. // Multimodal content generation operation such as [Gemini Generate Content]
  6663. // Stability: development
  6664. //
  6665. // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
  6666. GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
  6667. // Text completions operation such as [OpenAI Completions API (Legacy)]
  6668. // Stability: development
  6669. //
  6670. // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
  6671. GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
  6672. // Embeddings operation such as [OpenAI Create embeddings API]
  6673. // Stability: development
  6674. //
  6675. // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
  6676. GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
  6677. // Retrieval operation such as [OpenAI Search Vector Store API]
  6678. // Stability: development
  6679. //
  6680. // [OpenAI Search Vector Store API]: https://platform.openai.com/docs/api-reference/vector-stores/search
  6681. GenAIOperationNameRetrieval = GenAIOperationNameKey.String("retrieval")
  6682. // Create GenAI agent
  6683. // Stability: development
  6684. GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
  6685. // Invoke GenAI agent
  6686. // Stability: development
  6687. GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
  6688. // Execute a tool
  6689. // Stability: development
  6690. GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
  6691. )
  6692. // Enum values for gen_ai.output.type
  6693. var (
  6694. // Plain text
  6695. // Stability: development
  6696. GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
  6697. // JSON object with known or unknown schema
  6698. // Stability: development
  6699. GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
  6700. // Image
  6701. // Stability: development
  6702. GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
  6703. // Speech
  6704. // Stability: development
  6705. GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
  6706. )
  6707. // Enum values for gen_ai.provider.name
  6708. var (
  6709. // [OpenAI]
  6710. // Stability: development
  6711. //
  6712. // [OpenAI]: https://openai.com/
  6713. GenAIProviderNameOpenAI = GenAIProviderNameKey.String("openai")
  6714. // Any Google generative AI endpoint
  6715. // Stability: development
  6716. GenAIProviderNameGCPGenAI = GenAIProviderNameKey.String("gcp.gen_ai")
  6717. // [Vertex AI]
  6718. // Stability: development
  6719. //
  6720. // [Vertex AI]: https://cloud.google.com/vertex-ai
  6721. GenAIProviderNameGCPVertexAI = GenAIProviderNameKey.String("gcp.vertex_ai")
  6722. // [Gemini]
  6723. // Stability: development
  6724. //
  6725. // [Gemini]: https://cloud.google.com/products/gemini
  6726. GenAIProviderNameGCPGemini = GenAIProviderNameKey.String("gcp.gemini")
  6727. // [Anthropic]
  6728. // Stability: development
  6729. //
  6730. // [Anthropic]: https://www.anthropic.com/
  6731. GenAIProviderNameAnthropic = GenAIProviderNameKey.String("anthropic")
  6732. // [Cohere]
  6733. // Stability: development
  6734. //
  6735. // [Cohere]: https://cohere.com/
  6736. GenAIProviderNameCohere = GenAIProviderNameKey.String("cohere")
  6737. // Azure AI Inference
  6738. // Stability: development
  6739. GenAIProviderNameAzureAIInference = GenAIProviderNameKey.String("azure.ai.inference")
  6740. // [Azure OpenAI]
  6741. // Stability: development
  6742. //
  6743. // [Azure OpenAI]: https://azure.microsoft.com/products/ai-services/openai-service/
  6744. GenAIProviderNameAzureAIOpenAI = GenAIProviderNameKey.String("azure.ai.openai")
  6745. // [IBM Watsonx AI]
  6746. // Stability: development
  6747. //
  6748. // [IBM Watsonx AI]: https://www.ibm.com/products/watsonx-ai
  6749. GenAIProviderNameIBMWatsonxAI = GenAIProviderNameKey.String("ibm.watsonx.ai")
  6750. // [AWS Bedrock]
  6751. // Stability: development
  6752. //
  6753. // [AWS Bedrock]: https://aws.amazon.com/bedrock
  6754. GenAIProviderNameAWSBedrock = GenAIProviderNameKey.String("aws.bedrock")
  6755. // [Perplexity]
  6756. // Stability: development
  6757. //
  6758. // [Perplexity]: https://www.perplexity.ai/
  6759. GenAIProviderNamePerplexity = GenAIProviderNameKey.String("perplexity")
  6760. // [xAI]
  6761. // Stability: development
  6762. //
  6763. // [xAI]: https://x.ai/
  6764. GenAIProviderNameXAI = GenAIProviderNameKey.String("x_ai")
  6765. // [DeepSeek]
  6766. // Stability: development
  6767. //
  6768. // [DeepSeek]: https://www.deepseek.com/
  6769. GenAIProviderNameDeepseek = GenAIProviderNameKey.String("deepseek")
  6770. // [Groq]
  6771. // Stability: development
  6772. //
  6773. // [Groq]: https://groq.com/
  6774. GenAIProviderNameGroq = GenAIProviderNameKey.String("groq")
  6775. // [Mistral AI]
  6776. // Stability: development
  6777. //
  6778. // [Mistral AI]: https://mistral.ai/
  6779. GenAIProviderNameMistralAI = GenAIProviderNameKey.String("mistral_ai")
  6780. )
  6781. // Enum values for gen_ai.token.type
  6782. var (
  6783. // Input tokens (prompt, input, etc.)
  6784. // Stability: development
  6785. GenAITokenTypeInput = GenAITokenTypeKey.String("input")
  6786. // Output tokens (completion, response, etc.)
  6787. // Stability: development
  6788. GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
  6789. )
  6790. // Namespace: geo
  6791. const (
  6792. // GeoContinentCodeKey is the attribute Key conforming to the
  6793. // "geo.continent.code" semantic conventions. It represents the two-letter code
  6794. // representing continent’s name.
  6795. //
  6796. // Type: Enum
  6797. // RequirementLevel: Recommended
  6798. // Stability: Development
  6799. //
  6800. // Examples:
  6801. GeoContinentCodeKey = attribute.Key("geo.continent.code")
  6802. // GeoCountryISOCodeKey is the attribute Key conforming to the
  6803. // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
  6804. // Country Code ([ISO 3166-1 alpha2]).
  6805. //
  6806. // Type: string
  6807. // RequirementLevel: Recommended
  6808. // Stability: Development
  6809. //
  6810. // Examples: "CA"
  6811. //
  6812. // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
  6813. GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
  6814. // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
  6815. // semantic conventions. It represents the locality name. Represents the name of
  6816. // a city, town, village, or similar populated place.
  6817. //
  6818. // Type: string
  6819. // RequirementLevel: Recommended
  6820. // Stability: Development
  6821. //
  6822. // Examples: "Montreal", "Berlin"
  6823. GeoLocalityNameKey = attribute.Key("geo.locality.name")
  6824. // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
  6825. // semantic conventions. It represents the latitude of the geo location in
  6826. // [WGS84].
  6827. //
  6828. // Type: double
  6829. // RequirementLevel: Recommended
  6830. // Stability: Development
  6831. //
  6832. // Examples: 45.505918
  6833. //
  6834. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6835. GeoLocationLatKey = attribute.Key("geo.location.lat")
  6836. // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
  6837. // semantic conventions. It represents the longitude of the geo location in
  6838. // [WGS84].
  6839. //
  6840. // Type: double
  6841. // RequirementLevel: Recommended
  6842. // Stability: Development
  6843. //
  6844. // Examples: -73.61483
  6845. //
  6846. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6847. GeoLocationLonKey = attribute.Key("geo.location.lon")
  6848. // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
  6849. // semantic conventions. It represents the postal code associated with the
  6850. // location. Values appropriate for this field may also be known as a postcode
  6851. // or ZIP code and will vary widely from country to country.
  6852. //
  6853. // Type: string
  6854. // RequirementLevel: Recommended
  6855. // Stability: Development
  6856. //
  6857. // Examples: "94040"
  6858. GeoPostalCodeKey = attribute.Key("geo.postal_code")
  6859. // GeoRegionISOCodeKey is the attribute Key conforming to the
  6860. // "geo.region.iso_code" semantic conventions. It represents the region ISO code
  6861. // ([ISO 3166-2]).
  6862. //
  6863. // Type: string
  6864. // RequirementLevel: Recommended
  6865. // Stability: Development
  6866. //
  6867. // Examples: "CA-QC"
  6868. //
  6869. // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
  6870. GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
  6871. )
  6872. // GeoCountryISOCode returns an attribute KeyValue conforming to the
  6873. // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
  6874. // Country Code ([ISO 3166-1 alpha2]).
  6875. //
  6876. // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
  6877. func GeoCountryISOCode(val string) attribute.KeyValue {
  6878. return GeoCountryISOCodeKey.String(val)
  6879. }
  6880. // GeoLocalityName returns an attribute KeyValue conforming to the
  6881. // "geo.locality.name" semantic conventions. It represents the locality name.
  6882. // Represents the name of a city, town, village, or similar populated place.
  6883. func GeoLocalityName(val string) attribute.KeyValue {
  6884. return GeoLocalityNameKey.String(val)
  6885. }
  6886. // GeoLocationLat returns an attribute KeyValue conforming to the
  6887. // "geo.location.lat" semantic conventions. It represents the latitude of the geo
  6888. // location in [WGS84].
  6889. //
  6890. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6891. func GeoLocationLat(val float64) attribute.KeyValue {
  6892. return GeoLocationLatKey.Float64(val)
  6893. }
  6894. // GeoLocationLon returns an attribute KeyValue conforming to the
  6895. // "geo.location.lon" semantic conventions. It represents the longitude of the
  6896. // geo location in [WGS84].
  6897. //
  6898. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6899. func GeoLocationLon(val float64) attribute.KeyValue {
  6900. return GeoLocationLonKey.Float64(val)
  6901. }
  6902. // GeoPostalCode returns an attribute KeyValue conforming to the
  6903. // "geo.postal_code" semantic conventions. It represents the postal code
  6904. // associated with the location. Values appropriate for this field may also be
  6905. // known as a postcode or ZIP code and will vary widely from country to country.
  6906. func GeoPostalCode(val string) attribute.KeyValue {
  6907. return GeoPostalCodeKey.String(val)
  6908. }
  6909. // GeoRegionISOCode returns an attribute KeyValue conforming to the
  6910. // "geo.region.iso_code" semantic conventions. It represents the region ISO code
  6911. // ([ISO 3166-2]).
  6912. //
  6913. // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
  6914. func GeoRegionISOCode(val string) attribute.KeyValue {
  6915. return GeoRegionISOCodeKey.String(val)
  6916. }
  6917. // Enum values for geo.continent.code
  6918. var (
  6919. // Africa
  6920. // Stability: development
  6921. GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
  6922. // Antarctica
  6923. // Stability: development
  6924. GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
  6925. // Asia
  6926. // Stability: development
  6927. GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
  6928. // Europe
  6929. // Stability: development
  6930. GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
  6931. // North America
  6932. // Stability: development
  6933. GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
  6934. // Oceania
  6935. // Stability: development
  6936. GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
  6937. // South America
  6938. // Stability: development
  6939. GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
  6940. )
  6941. // Namespace: go
  6942. const (
  6943. // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
  6944. // semantic conventions. It represents the type of memory.
  6945. //
  6946. // Type: Enum
  6947. // RequirementLevel: Recommended
  6948. // Stability: Development
  6949. //
  6950. // Examples: "other", "stack"
  6951. GoMemoryTypeKey = attribute.Key("go.memory.type")
  6952. )
  6953. // Enum values for go.memory.type
  6954. var (
  6955. // Memory allocated from the heap that is reserved for stack space, whether or
  6956. // not it is currently in-use.
  6957. // Stability: development
  6958. GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
  6959. // Memory used by the Go runtime, excluding other categories of memory usage
  6960. // described in this enumeration.
  6961. // Stability: development
  6962. GoMemoryTypeOther = GoMemoryTypeKey.String("other")
  6963. )
  6964. // Namespace: graphql
  6965. const (
  6966. // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
  6967. // semantic conventions. It represents the GraphQL document being executed.
  6968. //
  6969. // Type: string
  6970. // RequirementLevel: Recommended
  6971. // Stability: Development
  6972. //
  6973. // Examples: query findBookById { bookById(id: ?) { name } }
  6974. // Note: The value may be sanitized to exclude sensitive information.
  6975. GraphQLDocumentKey = attribute.Key("graphql.document")
  6976. // GraphQLOperationNameKey is the attribute Key conforming to the
  6977. // "graphql.operation.name" semantic conventions. It represents the name of the
  6978. // operation being executed.
  6979. //
  6980. // Type: string
  6981. // RequirementLevel: Recommended
  6982. // Stability: Development
  6983. //
  6984. // Examples: findBookById
  6985. GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
  6986. // GraphQLOperationTypeKey is the attribute Key conforming to the
  6987. // "graphql.operation.type" semantic conventions. It represents the type of the
  6988. // operation being executed.
  6989. //
  6990. // Type: Enum
  6991. // RequirementLevel: Recommended
  6992. // Stability: Development
  6993. //
  6994. // Examples: "query", "mutation", "subscription"
  6995. GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
  6996. )
  6997. // GraphQLDocument returns an attribute KeyValue conforming to the
  6998. // "graphql.document" semantic conventions. It represents the GraphQL document
  6999. // being executed.
  7000. func GraphQLDocument(val string) attribute.KeyValue {
  7001. return GraphQLDocumentKey.String(val)
  7002. }
  7003. // GraphQLOperationName returns an attribute KeyValue conforming to the
  7004. // "graphql.operation.name" semantic conventions. It represents the name of the
  7005. // operation being executed.
  7006. func GraphQLOperationName(val string) attribute.KeyValue {
  7007. return GraphQLOperationNameKey.String(val)
  7008. }
  7009. // Enum values for graphql.operation.type
  7010. var (
  7011. // GraphQL query
  7012. // Stability: development
  7013. GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
  7014. // GraphQL mutation
  7015. // Stability: development
  7016. GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
  7017. // GraphQL subscription
  7018. // Stability: development
  7019. GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
  7020. )
  7021. // Namespace: heroku
  7022. const (
  7023. // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
  7024. // semantic conventions. It represents the unique identifier for the
  7025. // application.
  7026. //
  7027. // Type: string
  7028. // RequirementLevel: Recommended
  7029. // Stability: Development
  7030. //
  7031. // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
  7032. HerokuAppIDKey = attribute.Key("heroku.app.id")
  7033. // HerokuReleaseCommitKey is the attribute Key conforming to the
  7034. // "heroku.release.commit" semantic conventions. It represents the commit hash
  7035. // for the current release.
  7036. //
  7037. // Type: string
  7038. // RequirementLevel: Recommended
  7039. // Stability: Development
  7040. //
  7041. // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
  7042. HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
  7043. // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
  7044. // "heroku.release.creation_timestamp" semantic conventions. It represents the
  7045. // time and date the release was created.
  7046. //
  7047. // Type: string
  7048. // RequirementLevel: Recommended
  7049. // Stability: Development
  7050. //
  7051. // Examples: "2022-10-23T18:00:42Z"
  7052. HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
  7053. )
  7054. // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
  7055. // semantic conventions. It represents the unique identifier for the application.
  7056. func HerokuAppID(val string) attribute.KeyValue {
  7057. return HerokuAppIDKey.String(val)
  7058. }
  7059. // HerokuReleaseCommit returns an attribute KeyValue conforming to the
  7060. // "heroku.release.commit" semantic conventions. It represents the commit hash
  7061. // for the current release.
  7062. func HerokuReleaseCommit(val string) attribute.KeyValue {
  7063. return HerokuReleaseCommitKey.String(val)
  7064. }
  7065. // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
  7066. // "heroku.release.creation_timestamp" semantic conventions. It represents the
  7067. // time and date the release was created.
  7068. func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
  7069. return HerokuReleaseCreationTimestampKey.String(val)
  7070. }
  7071. // Namespace: host
  7072. const (
  7073. // HostArchKey is the attribute Key conforming to the "host.arch" semantic
  7074. // conventions. It represents the CPU architecture the host system is running
  7075. // on.
  7076. //
  7077. // Type: Enum
  7078. // RequirementLevel: Recommended
  7079. // Stability: Development
  7080. //
  7081. // Examples:
  7082. HostArchKey = attribute.Key("host.arch")
  7083. // HostCPUCacheL2SizeKey is the attribute Key conforming to the
  7084. // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
  7085. // level 2 memory cache available to the processor (in Bytes).
  7086. //
  7087. // Type: int
  7088. // RequirementLevel: Recommended
  7089. // Stability: Development
  7090. //
  7091. // Examples: 12288000
  7092. HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
  7093. // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
  7094. // semantic conventions. It represents the family or generation of the CPU.
  7095. //
  7096. // Type: string
  7097. // RequirementLevel: Recommended
  7098. // Stability: Development
  7099. //
  7100. // Examples: "6", "PA-RISC 1.1e"
  7101. HostCPUFamilyKey = attribute.Key("host.cpu.family")
  7102. // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
  7103. // semantic conventions. It represents the model identifier. It provides more
  7104. // granular information about the CPU, distinguishing it from other CPUs within
  7105. // the same family.
  7106. //
  7107. // Type: string
  7108. // RequirementLevel: Recommended
  7109. // Stability: Development
  7110. //
  7111. // Examples: "6", "9000/778/B180L"
  7112. HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
  7113. // HostCPUModelNameKey is the attribute Key conforming to the
  7114. // "host.cpu.model.name" semantic conventions. It represents the model
  7115. // designation of the processor.
  7116. //
  7117. // Type: string
  7118. // RequirementLevel: Recommended
  7119. // Stability: Development
  7120. //
  7121. // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
  7122. HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
  7123. // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
  7124. // semantic conventions. It represents the stepping or core revisions.
  7125. //
  7126. // Type: string
  7127. // RequirementLevel: Recommended
  7128. // Stability: Development
  7129. //
  7130. // Examples: "1", "r1p1"
  7131. HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
  7132. // HostCPUVendorIDKey is the attribute Key conforming to the
  7133. // "host.cpu.vendor.id" semantic conventions. It represents the processor
  7134. // manufacturer identifier. A maximum 12-character string.
  7135. //
  7136. // Type: string
  7137. // RequirementLevel: Recommended
  7138. // Stability: Development
  7139. //
  7140. // Examples: "GenuineIntel"
  7141. // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
  7142. // registers. Writing these to memory in this order results in a 12-character
  7143. // string.
  7144. //
  7145. // [CPUID]: https://wiki.osdev.org/CPUID
  7146. HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
  7147. // HostIDKey is the attribute Key conforming to the "host.id" semantic
  7148. // conventions. It represents the unique host ID. For Cloud, this must be the
  7149. // instance_id assigned by the cloud provider. For non-containerized systems,
  7150. // this should be the `machine-id`. See the table below for the sources to use
  7151. // to determine the `machine-id` based on operating system.
  7152. //
  7153. // Type: string
  7154. // RequirementLevel: Recommended
  7155. // Stability: Development
  7156. //
  7157. // Examples: "fdbf79e8af94cb7f9e8df36789187052"
  7158. HostIDKey = attribute.Key("host.id")
  7159. // HostImageIDKey is the attribute Key conforming to the "host.image.id"
  7160. // semantic conventions. It represents the VM image ID or host OS image ID. For
  7161. // Cloud, this value is from the provider.
  7162. //
  7163. // Type: string
  7164. // RequirementLevel: Recommended
  7165. // Stability: Development
  7166. //
  7167. // Examples: "ami-07b06b442921831e5"
  7168. HostImageIDKey = attribute.Key("host.image.id")
  7169. // HostImageNameKey is the attribute Key conforming to the "host.image.name"
  7170. // semantic conventions. It represents the name of the VM image or OS install
  7171. // the host was instantiated from.
  7172. //
  7173. // Type: string
  7174. // RequirementLevel: Recommended
  7175. // Stability: Development
  7176. //
  7177. // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
  7178. HostImageNameKey = attribute.Key("host.image.name")
  7179. // HostImageVersionKey is the attribute Key conforming to the
  7180. // "host.image.version" semantic conventions. It represents the version string
  7181. // of the VM image or host OS as defined in [Version Attributes].
  7182. //
  7183. // Type: string
  7184. // RequirementLevel: Recommended
  7185. // Stability: Development
  7186. //
  7187. // Examples: "0.1"
  7188. //
  7189. // [Version Attributes]: /docs/resource/README.md#version-attributes
  7190. HostImageVersionKey = attribute.Key("host.image.version")
  7191. // HostIPKey is the attribute Key conforming to the "host.ip" semantic
  7192. // conventions. It represents the available IP addresses of the host, excluding
  7193. // loopback interfaces.
  7194. //
  7195. // Type: string[]
  7196. // RequirementLevel: Recommended
  7197. // Stability: Development
  7198. //
  7199. // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
  7200. // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
  7201. // addresses MUST be specified in the [RFC 5952] format.
  7202. //
  7203. // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
  7204. HostIPKey = attribute.Key("host.ip")
  7205. // HostMacKey is the attribute Key conforming to the "host.mac" semantic
  7206. // conventions. It represents the available MAC addresses of the host, excluding
  7207. // loopback interfaces.
  7208. //
  7209. // Type: string[]
  7210. // RequirementLevel: Recommended
  7211. // Stability: Development
  7212. //
  7213. // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
  7214. // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
  7215. // hyphen-separated octets in uppercase hexadecimal form from most to least
  7216. // significant.
  7217. //
  7218. // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
  7219. HostMacKey = attribute.Key("host.mac")
  7220. // HostNameKey is the attribute Key conforming to the "host.name" semantic
  7221. // conventions. It represents the name of the host. On Unix systems, it may
  7222. // contain what the hostname command returns, or the fully qualified hostname,
  7223. // or another name specified by the user.
  7224. //
  7225. // Type: string
  7226. // RequirementLevel: Recommended
  7227. // Stability: Development
  7228. //
  7229. // Examples: "opentelemetry-test"
  7230. HostNameKey = attribute.Key("host.name")
  7231. // HostTypeKey is the attribute Key conforming to the "host.type" semantic
  7232. // conventions. It represents the type of host. For Cloud, this must be the
  7233. // machine type.
  7234. //
  7235. // Type: string
  7236. // RequirementLevel: Recommended
  7237. // Stability: Development
  7238. //
  7239. // Examples: "n1-standard-1"
  7240. HostTypeKey = attribute.Key("host.type")
  7241. )
  7242. // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
  7243. // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
  7244. // level 2 memory cache available to the processor (in Bytes).
  7245. func HostCPUCacheL2Size(val int) attribute.KeyValue {
  7246. return HostCPUCacheL2SizeKey.Int(val)
  7247. }
  7248. // HostCPUFamily returns an attribute KeyValue conforming to the
  7249. // "host.cpu.family" semantic conventions. It represents the family or generation
  7250. // of the CPU.
  7251. func HostCPUFamily(val string) attribute.KeyValue {
  7252. return HostCPUFamilyKey.String(val)
  7253. }
  7254. // HostCPUModelID returns an attribute KeyValue conforming to the
  7255. // "host.cpu.model.id" semantic conventions. It represents the model identifier.
  7256. // It provides more granular information about the CPU, distinguishing it from
  7257. // other CPUs within the same family.
  7258. func HostCPUModelID(val string) attribute.KeyValue {
  7259. return HostCPUModelIDKey.String(val)
  7260. }
  7261. // HostCPUModelName returns an attribute KeyValue conforming to the
  7262. // "host.cpu.model.name" semantic conventions. It represents the model
  7263. // designation of the processor.
  7264. func HostCPUModelName(val string) attribute.KeyValue {
  7265. return HostCPUModelNameKey.String(val)
  7266. }
  7267. // HostCPUStepping returns an attribute KeyValue conforming to the
  7268. // "host.cpu.stepping" semantic conventions. It represents the stepping or core
  7269. // revisions.
  7270. func HostCPUStepping(val string) attribute.KeyValue {
  7271. return HostCPUSteppingKey.String(val)
  7272. }
  7273. // HostCPUVendorID returns an attribute KeyValue conforming to the
  7274. // "host.cpu.vendor.id" semantic conventions. It represents the processor
  7275. // manufacturer identifier. A maximum 12-character string.
  7276. func HostCPUVendorID(val string) attribute.KeyValue {
  7277. return HostCPUVendorIDKey.String(val)
  7278. }
  7279. // HostID returns an attribute KeyValue conforming to the "host.id" semantic
  7280. // conventions. It represents the unique host ID. For Cloud, this must be the
  7281. // instance_id assigned by the cloud provider. For non-containerized systems,
  7282. // this should be the `machine-id`. See the table below for the sources to use to
  7283. // determine the `machine-id` based on operating system.
  7284. func HostID(val string) attribute.KeyValue {
  7285. return HostIDKey.String(val)
  7286. }
  7287. // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
  7288. // semantic conventions. It represents the VM image ID or host OS image ID. For
  7289. // Cloud, this value is from the provider.
  7290. func HostImageID(val string) attribute.KeyValue {
  7291. return HostImageIDKey.String(val)
  7292. }
  7293. // HostImageName returns an attribute KeyValue conforming to the
  7294. // "host.image.name" semantic conventions. It represents the name of the VM image
  7295. // or OS install the host was instantiated from.
  7296. func HostImageName(val string) attribute.KeyValue {
  7297. return HostImageNameKey.String(val)
  7298. }
  7299. // HostImageVersion returns an attribute KeyValue conforming to the
  7300. // "host.image.version" semantic conventions. It represents the version string of
  7301. // the VM image or host OS as defined in [Version Attributes].
  7302. //
  7303. // [Version Attributes]: /docs/resource/README.md#version-attributes
  7304. func HostImageVersion(val string) attribute.KeyValue {
  7305. return HostImageVersionKey.String(val)
  7306. }
  7307. // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
  7308. // conventions. It represents the available IP addresses of the host, excluding
  7309. // loopback interfaces.
  7310. func HostIP(val ...string) attribute.KeyValue {
  7311. return HostIPKey.StringSlice(val)
  7312. }
  7313. // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
  7314. // conventions. It represents the available MAC addresses of the host, excluding
  7315. // loopback interfaces.
  7316. func HostMac(val ...string) attribute.KeyValue {
  7317. return HostMacKey.StringSlice(val)
  7318. }
  7319. // HostName returns an attribute KeyValue conforming to the "host.name" semantic
  7320. // conventions. It represents the name of the host. On Unix systems, it may
  7321. // contain what the hostname command returns, or the fully qualified hostname, or
  7322. // another name specified by the user.
  7323. func HostName(val string) attribute.KeyValue {
  7324. return HostNameKey.String(val)
  7325. }
  7326. // HostType returns an attribute KeyValue conforming to the "host.type" semantic
  7327. // conventions. It represents the type of host. For Cloud, this must be the
  7328. // machine type.
  7329. func HostType(val string) attribute.KeyValue {
  7330. return HostTypeKey.String(val)
  7331. }
  7332. // Enum values for host.arch
  7333. var (
  7334. // AMD64
  7335. // Stability: development
  7336. HostArchAMD64 = HostArchKey.String("amd64")
  7337. // ARM32
  7338. // Stability: development
  7339. HostArchARM32 = HostArchKey.String("arm32")
  7340. // ARM64
  7341. // Stability: development
  7342. HostArchARM64 = HostArchKey.String("arm64")
  7343. // Itanium
  7344. // Stability: development
  7345. HostArchIA64 = HostArchKey.String("ia64")
  7346. // 32-bit PowerPC
  7347. // Stability: development
  7348. HostArchPPC32 = HostArchKey.String("ppc32")
  7349. // 64-bit PowerPC
  7350. // Stability: development
  7351. HostArchPPC64 = HostArchKey.String("ppc64")
  7352. // IBM z/Architecture
  7353. // Stability: development
  7354. HostArchS390x = HostArchKey.String("s390x")
  7355. // 32-bit x86
  7356. // Stability: development
  7357. HostArchX86 = HostArchKey.String("x86")
  7358. )
  7359. // Namespace: http
  7360. const (
  7361. // HTTPConnectionStateKey is the attribute Key conforming to the
  7362. // "http.connection.state" semantic conventions. It represents the state of the
  7363. // HTTP connection in the HTTP connection pool.
  7364. //
  7365. // Type: Enum
  7366. // RequirementLevel: Recommended
  7367. // Stability: Development
  7368. //
  7369. // Examples: "active", "idle"
  7370. HTTPConnectionStateKey = attribute.Key("http.connection.state")
  7371. // HTTPRequestBodySizeKey is the attribute Key conforming to the
  7372. // "http.request.body.size" semantic conventions. It represents the size of the
  7373. // request payload body in bytes. This is the number of bytes transferred
  7374. // excluding headers and is often, but not always, present as the
  7375. // [Content-Length] header. For requests using transport encoding, this should
  7376. // be the compressed size.
  7377. //
  7378. // Type: int
  7379. // RequirementLevel: Recommended
  7380. // Stability: Development
  7381. //
  7382. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  7383. HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
  7384. // HTTPRequestMethodKey is the attribute Key conforming to the
  7385. // "http.request.method" semantic conventions. It represents the HTTP request
  7386. // method.
  7387. //
  7388. // Type: Enum
  7389. // RequirementLevel: Recommended
  7390. // Stability: Stable
  7391. //
  7392. // Examples: "GET", "POST", "HEAD"
  7393. // Note: HTTP request method value SHOULD be "known" to the instrumentation.
  7394. // By default, this convention defines "known" methods as the ones listed in
  7395. // [RFC9110],
  7396. // the PATCH method defined in [RFC5789]
  7397. // and the QUERY method defined in [httpbis-safe-method-w-body].
  7398. //
  7399. // If the HTTP request method is not known to instrumentation, it MUST set the
  7400. // `http.request.method` attribute to `_OTHER`.
  7401. //
  7402. // If the HTTP instrumentation could end up converting valid HTTP request
  7403. // methods to `_OTHER`, then it MUST provide a way to override
  7404. // the list of known HTTP methods. If this override is done via environment
  7405. // variable, then the environment variable MUST be named
  7406. // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
  7407. // case-sensitive known HTTP methods.
  7408. //
  7409. //
  7410. // If this override is done via declarative configuration, then the list MUST be
  7411. // configurable via the `known_methods` property
  7412. // (an array of case-sensitive strings with minimum items 0) under
  7413. // `.instrumentation/development.general.http.client` and/or
  7414. // `.instrumentation/development.general.http.server`.
  7415. //
  7416. // In either case, this list MUST be a full override of the default known
  7417. // methods,
  7418. // it is not a list of known methods in addition to the defaults.
  7419. //
  7420. // HTTP method names are case-sensitive and `http.request.method` attribute
  7421. // value MUST match a known HTTP method name exactly.
  7422. // Instrumentations for specific web frameworks that consider HTTP methods to be
  7423. // case insensitive, SHOULD populate a canonical equivalent.
  7424. // Tracing instrumentations that do so, MUST also set
  7425. // `http.request.method_original` to the original value.
  7426. //
  7427. // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
  7428. // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
  7429. // [httpbis-safe-method-w-body]: https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/?include_text=1
  7430. HTTPRequestMethodKey = attribute.Key("http.request.method")
  7431. // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
  7432. // "http.request.method_original" semantic conventions. It represents the
  7433. // original HTTP method sent by the client in the request line.
  7434. //
  7435. // Type: string
  7436. // RequirementLevel: Recommended
  7437. // Stability: Stable
  7438. //
  7439. // Examples: "GeT", "ACL", "foo"
  7440. HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
  7441. // HTTPRequestResendCountKey is the attribute Key conforming to the
  7442. // "http.request.resend_count" semantic conventions. It represents the ordinal
  7443. // number of request resending attempt (for any reason, including redirects).
  7444. //
  7445. // Type: int
  7446. // RequirementLevel: Recommended
  7447. // Stability: Stable
  7448. //
  7449. // Note: The resend count SHOULD be updated each time an HTTP request gets
  7450. // resent by the client, regardless of what was the cause of the resending (e.g.
  7451. // redirection, authorization failure, 503 Server Unavailable, network issues,
  7452. // or any other).
  7453. HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
  7454. // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
  7455. // semantic conventions. It represents the total size of the request in bytes.
  7456. // This should be the total number of bytes sent over the wire, including the
  7457. // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
  7458. // body if any.
  7459. //
  7460. // Type: int
  7461. // RequirementLevel: Recommended
  7462. // Stability: Development
  7463. HTTPRequestSizeKey = attribute.Key("http.request.size")
  7464. // HTTPResponseBodySizeKey is the attribute Key conforming to the
  7465. // "http.response.body.size" semantic conventions. It represents the size of the
  7466. // response payload body in bytes. This is the number of bytes transferred
  7467. // excluding headers and is often, but not always, present as the
  7468. // [Content-Length] header. For requests using transport encoding, this should
  7469. // be the compressed size.
  7470. //
  7471. // Type: int
  7472. // RequirementLevel: Recommended
  7473. // Stability: Development
  7474. //
  7475. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  7476. HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
  7477. // HTTPResponseSizeKey is the attribute Key conforming to the
  7478. // "http.response.size" semantic conventions. It represents the total size of
  7479. // the response in bytes. This should be the total number of bytes sent over the
  7480. // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
  7481. // headers, and response body and trailers if any.
  7482. //
  7483. // Type: int
  7484. // RequirementLevel: Recommended
  7485. // Stability: Development
  7486. HTTPResponseSizeKey = attribute.Key("http.response.size")
  7487. // HTTPResponseStatusCodeKey is the attribute Key conforming to the
  7488. // "http.response.status_code" semantic conventions. It represents the
  7489. // [HTTP response status code].
  7490. //
  7491. // Type: int
  7492. // RequirementLevel: Recommended
  7493. // Stability: Stable
  7494. //
  7495. // Examples: 200
  7496. //
  7497. // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
  7498. HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
  7499. // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
  7500. // conventions. It represents the matched route template for the request. This
  7501. // MUST be low-cardinality and include all static path segments, with dynamic
  7502. // path segments represented with placeholders.
  7503. //
  7504. // Type: string
  7505. // RequirementLevel: Recommended
  7506. // Stability: Stable
  7507. //
  7508. // Examples: "/users/:userID?", "my-controller/my-action/{id?}"
  7509. // Note: MUST NOT be populated when this is not supported by the HTTP server
  7510. // framework as the route attribute should have low-cardinality and the URI path
  7511. // can NOT substitute it.
  7512. // SHOULD include the [application root] if there is one.
  7513. //
  7514. // A static path segment is a part of the route template with a fixed,
  7515. // low-cardinality value. This includes literal strings like `/users/` and
  7516. // placeholders that
  7517. // are constrained to a finite, predefined set of values, e.g. `{controller}` or
  7518. // `{action}`.
  7519. //
  7520. // A dynamic path segment is a placeholder for a value that can have high
  7521. // cardinality and is not constrained to a predefined list like static path
  7522. // segments.
  7523. //
  7524. // Instrumentations SHOULD use routing information provided by the corresponding
  7525. // web framework. They SHOULD pick the most precise source of routing
  7526. // information and MAY
  7527. // support custom route formatting. Instrumentations SHOULD document the format
  7528. // and the API used to obtain the route string.
  7529. //
  7530. // [application root]: /docs/http/http-spans.md#http-server-definitions
  7531. HTTPRouteKey = attribute.Key("http.route")
  7532. )
  7533. // HTTPRequestBodySize returns an attribute KeyValue conforming to the
  7534. // "http.request.body.size" semantic conventions. It represents the size of the
  7535. // request payload body in bytes. This is the number of bytes transferred
  7536. // excluding headers and is often, but not always, present as the
  7537. // [Content-Length] header. For requests using transport encoding, this should be
  7538. // the compressed size.
  7539. //
  7540. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  7541. func HTTPRequestBodySize(val int) attribute.KeyValue {
  7542. return HTTPRequestBodySizeKey.Int(val)
  7543. }
  7544. // HTTPRequestHeader returns an attribute KeyValue conforming to the
  7545. // "http.request.header" semantic conventions. It represents the HTTP request
  7546. // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
  7547. // being the header values.
  7548. func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
  7549. return attribute.StringSlice("http.request.header."+key, val)
  7550. }
  7551. // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
  7552. // "http.request.method_original" semantic conventions. It represents the
  7553. // original HTTP method sent by the client in the request line.
  7554. func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
  7555. return HTTPRequestMethodOriginalKey.String(val)
  7556. }
  7557. // HTTPRequestResendCount returns an attribute KeyValue conforming to the
  7558. // "http.request.resend_count" semantic conventions. It represents the ordinal
  7559. // number of request resending attempt (for any reason, including redirects).
  7560. func HTTPRequestResendCount(val int) attribute.KeyValue {
  7561. return HTTPRequestResendCountKey.Int(val)
  7562. }
  7563. // HTTPRequestSize returns an attribute KeyValue conforming to the
  7564. // "http.request.size" semantic conventions. It represents the total size of the
  7565. // request in bytes. This should be the total number of bytes sent over the wire,
  7566. // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
  7567. // and request body if any.
  7568. func HTTPRequestSize(val int) attribute.KeyValue {
  7569. return HTTPRequestSizeKey.Int(val)
  7570. }
  7571. // HTTPResponseBodySize returns an attribute KeyValue conforming to the
  7572. // "http.response.body.size" semantic conventions. It represents the size of the
  7573. // response payload body in bytes. This is the number of bytes transferred
  7574. // excluding headers and is often, but not always, present as the
  7575. // [Content-Length] header. For requests using transport encoding, this should be
  7576. // the compressed size.
  7577. //
  7578. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  7579. func HTTPResponseBodySize(val int) attribute.KeyValue {
  7580. return HTTPResponseBodySizeKey.Int(val)
  7581. }
  7582. // HTTPResponseHeader returns an attribute KeyValue conforming to the
  7583. // "http.response.header" semantic conventions. It represents the HTTP response
  7584. // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
  7585. // being the header values.
  7586. func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
  7587. return attribute.StringSlice("http.response.header."+key, val)
  7588. }
  7589. // HTTPResponseSize returns an attribute KeyValue conforming to the
  7590. // "http.response.size" semantic conventions. It represents the total size of the
  7591. // response in bytes. This should be the total number of bytes sent over the
  7592. // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
  7593. // headers, and response body and trailers if any.
  7594. func HTTPResponseSize(val int) attribute.KeyValue {
  7595. return HTTPResponseSizeKey.Int(val)
  7596. }
  7597. // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
  7598. // "http.response.status_code" semantic conventions. It represents the
  7599. // [HTTP response status code].
  7600. //
  7601. // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
  7602. func HTTPResponseStatusCode(val int) attribute.KeyValue {
  7603. return HTTPResponseStatusCodeKey.Int(val)
  7604. }
  7605. // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
  7606. // semantic conventions. It represents the matched route template for the
  7607. // request. This MUST be low-cardinality and include all static path segments,
  7608. // with dynamic path segments represented with placeholders.
  7609. func HTTPRoute(val string) attribute.KeyValue {
  7610. return HTTPRouteKey.String(val)
  7611. }
  7612. // Enum values for http.connection.state
  7613. var (
  7614. // active state.
  7615. // Stability: development
  7616. HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
  7617. // idle state.
  7618. // Stability: development
  7619. HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
  7620. )
  7621. // Enum values for http.request.method
  7622. var (
  7623. // CONNECT method.
  7624. // Stability: stable
  7625. HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
  7626. // DELETE method.
  7627. // Stability: stable
  7628. HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
  7629. // GET method.
  7630. // Stability: stable
  7631. HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
  7632. // HEAD method.
  7633. // Stability: stable
  7634. HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
  7635. // OPTIONS method.
  7636. // Stability: stable
  7637. HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
  7638. // PATCH method.
  7639. // Stability: stable
  7640. HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
  7641. // POST method.
  7642. // Stability: stable
  7643. HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
  7644. // PUT method.
  7645. // Stability: stable
  7646. HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
  7647. // TRACE method.
  7648. // Stability: stable
  7649. HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
  7650. // QUERY method.
  7651. // Stability: development
  7652. HTTPRequestMethodQuery = HTTPRequestMethodKey.String("QUERY")
  7653. // Any HTTP method that the instrumentation has no prior knowledge of.
  7654. // Stability: stable
  7655. HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
  7656. )
  7657. // Namespace: hw
  7658. const (
  7659. // HwBatteryCapacityKey is the attribute Key conforming to the
  7660. // "hw.battery.capacity" semantic conventions. It represents the design capacity
  7661. // in Watts-hours or Amper-hours.
  7662. //
  7663. // Type: string
  7664. // RequirementLevel: Recommended
  7665. // Stability: Development
  7666. //
  7667. // Examples: "9.3Ah", "50Wh"
  7668. HwBatteryCapacityKey = attribute.Key("hw.battery.capacity")
  7669. // HwBatteryChemistryKey is the attribute Key conforming to the
  7670. // "hw.battery.chemistry" semantic conventions. It represents the battery
  7671. // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
  7672. //
  7673. // Type: string
  7674. // RequirementLevel: Recommended
  7675. // Stability: Development
  7676. //
  7677. // Examples: "Li-ion", "NiMH"
  7678. //
  7679. // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
  7680. HwBatteryChemistryKey = attribute.Key("hw.battery.chemistry")
  7681. // HwBatteryStateKey is the attribute Key conforming to the "hw.battery.state"
  7682. // semantic conventions. It represents the current state of the battery.
  7683. //
  7684. // Type: Enum
  7685. // RequirementLevel: Recommended
  7686. // Stability: Development
  7687. //
  7688. // Examples:
  7689. HwBatteryStateKey = attribute.Key("hw.battery.state")
  7690. // HwBiosVersionKey is the attribute Key conforming to the "hw.bios_version"
  7691. // semantic conventions. It represents the BIOS version of the hardware
  7692. // component.
  7693. //
  7694. // Type: string
  7695. // RequirementLevel: Recommended
  7696. // Stability: Development
  7697. //
  7698. // Examples: "1.2.3"
  7699. HwBiosVersionKey = attribute.Key("hw.bios_version")
  7700. // HwDriverVersionKey is the attribute Key conforming to the "hw.driver_version"
  7701. // semantic conventions. It represents the driver version for the hardware
  7702. // component.
  7703. //
  7704. // Type: string
  7705. // RequirementLevel: Recommended
  7706. // Stability: Development
  7707. //
  7708. // Examples: "10.2.1-3"
  7709. HwDriverVersionKey = attribute.Key("hw.driver_version")
  7710. // HwEnclosureTypeKey is the attribute Key conforming to the "hw.enclosure.type"
  7711. // semantic conventions. It represents the type of the enclosure (useful for
  7712. // modular systems).
  7713. //
  7714. // Type: string
  7715. // RequirementLevel: Recommended
  7716. // Stability: Development
  7717. //
  7718. // Examples: "Computer", "Storage", "Switch"
  7719. HwEnclosureTypeKey = attribute.Key("hw.enclosure.type")
  7720. // HwFirmwareVersionKey is the attribute Key conforming to the
  7721. // "hw.firmware_version" semantic conventions. It represents the firmware
  7722. // version of the hardware component.
  7723. //
  7724. // Type: string
  7725. // RequirementLevel: Recommended
  7726. // Stability: Development
  7727. //
  7728. // Examples: "2.0.1"
  7729. HwFirmwareVersionKey = attribute.Key("hw.firmware_version")
  7730. // HwGpuTaskKey is the attribute Key conforming to the "hw.gpu.task" semantic
  7731. // conventions. It represents the type of task the GPU is performing.
  7732. //
  7733. // Type: Enum
  7734. // RequirementLevel: Recommended
  7735. // Stability: Development
  7736. //
  7737. // Examples:
  7738. HwGpuTaskKey = attribute.Key("hw.gpu.task")
  7739. // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
  7740. // It represents an identifier for the hardware component, unique within the
  7741. // monitored host.
  7742. //
  7743. // Type: string
  7744. // RequirementLevel: Recommended
  7745. // Stability: Development
  7746. //
  7747. // Examples: "win32battery_battery_testsysa33_1"
  7748. HwIDKey = attribute.Key("hw.id")
  7749. // HwLimitTypeKey is the attribute Key conforming to the "hw.limit_type"
  7750. // semantic conventions. It represents the type of limit for hardware
  7751. // components.
  7752. //
  7753. // Type: Enum
  7754. // RequirementLevel: Recommended
  7755. // Stability: Development
  7756. //
  7757. // Examples:
  7758. HwLimitTypeKey = attribute.Key("hw.limit_type")
  7759. // HwLogicalDiskRaidLevelKey is the attribute Key conforming to the
  7760. // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
  7761. // Level of the logical disk.
  7762. //
  7763. // Type: string
  7764. // RequirementLevel: Recommended
  7765. // Stability: Development
  7766. //
  7767. // Examples: "RAID0+1", "RAID5", "RAID10"
  7768. HwLogicalDiskRaidLevelKey = attribute.Key("hw.logical_disk.raid_level")
  7769. // HwLogicalDiskStateKey is the attribute Key conforming to the
  7770. // "hw.logical_disk.state" semantic conventions. It represents the state of the
  7771. // logical disk space usage.
  7772. //
  7773. // Type: Enum
  7774. // RequirementLevel: Recommended
  7775. // Stability: Development
  7776. //
  7777. // Examples:
  7778. HwLogicalDiskStateKey = attribute.Key("hw.logical_disk.state")
  7779. // HwMemoryTypeKey is the attribute Key conforming to the "hw.memory.type"
  7780. // semantic conventions. It represents the type of the memory module.
  7781. //
  7782. // Type: string
  7783. // RequirementLevel: Recommended
  7784. // Stability: Development
  7785. //
  7786. // Examples: "DDR4", "DDR5", "LPDDR5"
  7787. HwMemoryTypeKey = attribute.Key("hw.memory.type")
  7788. // HwModelKey is the attribute Key conforming to the "hw.model" semantic
  7789. // conventions. It represents the descriptive model name of the hardware
  7790. // component.
  7791. //
  7792. // Type: string
  7793. // RequirementLevel: Recommended
  7794. // Stability: Development
  7795. //
  7796. // Examples: "PERC H740P", "Intel(R) Core(TM) i7-10700K", "Dell XPS 15 Battery"
  7797. HwModelKey = attribute.Key("hw.model")
  7798. // HwNameKey is the attribute Key conforming to the "hw.name" semantic
  7799. // conventions. It represents an easily-recognizable name for the hardware
  7800. // component.
  7801. //
  7802. // Type: string
  7803. // RequirementLevel: Recommended
  7804. // Stability: Development
  7805. //
  7806. // Examples: "eth0"
  7807. HwNameKey = attribute.Key("hw.name")
  7808. // HwNetworkLogicalAddressesKey is the attribute Key conforming to the
  7809. // "hw.network.logical_addresses" semantic conventions. It represents the
  7810. // logical addresses of the adapter (e.g. IP address, or WWPN).
  7811. //
  7812. // Type: string[]
  7813. // RequirementLevel: Recommended
  7814. // Stability: Development
  7815. //
  7816. // Examples: "172.16.8.21", "57.11.193.42"
  7817. HwNetworkLogicalAddressesKey = attribute.Key("hw.network.logical_addresses")
  7818. // HwNetworkPhysicalAddressKey is the attribute Key conforming to the
  7819. // "hw.network.physical_address" semantic conventions. It represents the
  7820. // physical address of the adapter (e.g. MAC address, or WWNN).
  7821. //
  7822. // Type: string
  7823. // RequirementLevel: Recommended
  7824. // Stability: Development
  7825. //
  7826. // Examples: "00-90-F5-E9-7B-36"
  7827. HwNetworkPhysicalAddressKey = attribute.Key("hw.network.physical_address")
  7828. // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
  7829. // conventions. It represents the unique identifier of the parent component
  7830. // (typically the `hw.id` attribute of the enclosure, or disk controller).
  7831. //
  7832. // Type: string
  7833. // RequirementLevel: Recommended
  7834. // Stability: Development
  7835. //
  7836. // Examples: "dellStorage_perc_0"
  7837. HwParentKey = attribute.Key("hw.parent")
  7838. // HwPhysicalDiskSmartAttributeKey is the attribute Key conforming to the
  7839. // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
  7840. // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
  7841. // of the physical disk.
  7842. //
  7843. // Type: string
  7844. // RequirementLevel: Recommended
  7845. // Stability: Development
  7846. //
  7847. // Examples: "Spin Retry Count", "Seek Error Rate", "Raw Read Error Rate"
  7848. //
  7849. // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
  7850. HwPhysicalDiskSmartAttributeKey = attribute.Key("hw.physical_disk.smart_attribute")
  7851. // HwPhysicalDiskStateKey is the attribute Key conforming to the
  7852. // "hw.physical_disk.state" semantic conventions. It represents the state of the
  7853. // physical disk endurance utilization.
  7854. //
  7855. // Type: Enum
  7856. // RequirementLevel: Recommended
  7857. // Stability: Development
  7858. //
  7859. // Examples:
  7860. HwPhysicalDiskStateKey = attribute.Key("hw.physical_disk.state")
  7861. // HwPhysicalDiskTypeKey is the attribute Key conforming to the
  7862. // "hw.physical_disk.type" semantic conventions. It represents the type of the
  7863. // physical disk.
  7864. //
  7865. // Type: string
  7866. // RequirementLevel: Recommended
  7867. // Stability: Development
  7868. //
  7869. // Examples: "HDD", "SSD", "10K"
  7870. HwPhysicalDiskTypeKey = attribute.Key("hw.physical_disk.type")
  7871. // HwSensorLocationKey is the attribute Key conforming to the
  7872. // "hw.sensor_location" semantic conventions. It represents the location of the
  7873. // sensor.
  7874. //
  7875. // Type: string
  7876. // RequirementLevel: Recommended
  7877. // Stability: Development
  7878. //
  7879. // Examples: "cpu0", "ps1", "INLET", "CPU0_DIE", "AMBIENT", "MOTHERBOARD", "PS0
  7880. // V3_3", "MAIN_12V", "CPU_VCORE"
  7881. HwSensorLocationKey = attribute.Key("hw.sensor_location")
  7882. // HwSerialNumberKey is the attribute Key conforming to the "hw.serial_number"
  7883. // semantic conventions. It represents the serial number of the hardware
  7884. // component.
  7885. //
  7886. // Type: string
  7887. // RequirementLevel: Recommended
  7888. // Stability: Development
  7889. //
  7890. // Examples: "CNFCP0123456789"
  7891. HwSerialNumberKey = attribute.Key("hw.serial_number")
  7892. // HwStateKey is the attribute Key conforming to the "hw.state" semantic
  7893. // conventions. It represents the current state of the component.
  7894. //
  7895. // Type: Enum
  7896. // RequirementLevel: Recommended
  7897. // Stability: Development
  7898. //
  7899. // Examples:
  7900. HwStateKey = attribute.Key("hw.state")
  7901. // HwTapeDriveOperationTypeKey is the attribute Key conforming to the
  7902. // "hw.tape_drive.operation_type" semantic conventions. It represents the type
  7903. // of tape drive operation.
  7904. //
  7905. // Type: Enum
  7906. // RequirementLevel: Recommended
  7907. // Stability: Development
  7908. //
  7909. // Examples:
  7910. HwTapeDriveOperationTypeKey = attribute.Key("hw.tape_drive.operation_type")
  7911. // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
  7912. // conventions. It represents the type of the component.
  7913. //
  7914. // Type: Enum
  7915. // RequirementLevel: Recommended
  7916. // Stability: Development
  7917. //
  7918. // Examples:
  7919. // Note: Describes the category of the hardware component for which `hw.state`
  7920. // is being reported. For example, `hw.type=temperature` along with
  7921. // `hw.state=degraded` would indicate that the temperature of the hardware
  7922. // component has been reported as `degraded`.
  7923. HwTypeKey = attribute.Key("hw.type")
  7924. // HwVendorKey is the attribute Key conforming to the "hw.vendor" semantic
  7925. // conventions. It represents the vendor name of the hardware component.
  7926. //
  7927. // Type: string
  7928. // RequirementLevel: Recommended
  7929. // Stability: Development
  7930. //
  7931. // Examples: "Dell", "HP", "Intel", "AMD", "LSI", "Lenovo"
  7932. HwVendorKey = attribute.Key("hw.vendor")
  7933. )
  7934. // HwBatteryCapacity returns an attribute KeyValue conforming to the
  7935. // "hw.battery.capacity" semantic conventions. It represents the design capacity
  7936. // in Watts-hours or Amper-hours.
  7937. func HwBatteryCapacity(val string) attribute.KeyValue {
  7938. return HwBatteryCapacityKey.String(val)
  7939. }
  7940. // HwBatteryChemistry returns an attribute KeyValue conforming to the
  7941. // "hw.battery.chemistry" semantic conventions. It represents the battery
  7942. // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
  7943. //
  7944. // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
  7945. func HwBatteryChemistry(val string) attribute.KeyValue {
  7946. return HwBatteryChemistryKey.String(val)
  7947. }
  7948. // HwBiosVersion returns an attribute KeyValue conforming to the
  7949. // "hw.bios_version" semantic conventions. It represents the BIOS version of the
  7950. // hardware component.
  7951. func HwBiosVersion(val string) attribute.KeyValue {
  7952. return HwBiosVersionKey.String(val)
  7953. }
  7954. // HwDriverVersion returns an attribute KeyValue conforming to the
  7955. // "hw.driver_version" semantic conventions. It represents the driver version for
  7956. // the hardware component.
  7957. func HwDriverVersion(val string) attribute.KeyValue {
  7958. return HwDriverVersionKey.String(val)
  7959. }
  7960. // HwEnclosureType returns an attribute KeyValue conforming to the
  7961. // "hw.enclosure.type" semantic conventions. It represents the type of the
  7962. // enclosure (useful for modular systems).
  7963. func HwEnclosureType(val string) attribute.KeyValue {
  7964. return HwEnclosureTypeKey.String(val)
  7965. }
  7966. // HwFirmwareVersion returns an attribute KeyValue conforming to the
  7967. // "hw.firmware_version" semantic conventions. It represents the firmware version
  7968. // of the hardware component.
  7969. func HwFirmwareVersion(val string) attribute.KeyValue {
  7970. return HwFirmwareVersionKey.String(val)
  7971. }
  7972. // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
  7973. // conventions. It represents an identifier for the hardware component, unique
  7974. // within the monitored host.
  7975. func HwID(val string) attribute.KeyValue {
  7976. return HwIDKey.String(val)
  7977. }
  7978. // HwLogicalDiskRaidLevel returns an attribute KeyValue conforming to the
  7979. // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
  7980. // Level of the logical disk.
  7981. func HwLogicalDiskRaidLevel(val string) attribute.KeyValue {
  7982. return HwLogicalDiskRaidLevelKey.String(val)
  7983. }
  7984. // HwMemoryType returns an attribute KeyValue conforming to the "hw.memory.type"
  7985. // semantic conventions. It represents the type of the memory module.
  7986. func HwMemoryType(val string) attribute.KeyValue {
  7987. return HwMemoryTypeKey.String(val)
  7988. }
  7989. // HwModel returns an attribute KeyValue conforming to the "hw.model" semantic
  7990. // conventions. It represents the descriptive model name of the hardware
  7991. // component.
  7992. func HwModel(val string) attribute.KeyValue {
  7993. return HwModelKey.String(val)
  7994. }
  7995. // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
  7996. // conventions. It represents an easily-recognizable name for the hardware
  7997. // component.
  7998. func HwName(val string) attribute.KeyValue {
  7999. return HwNameKey.String(val)
  8000. }
  8001. // HwNetworkLogicalAddresses returns an attribute KeyValue conforming to the
  8002. // "hw.network.logical_addresses" semantic conventions. It represents the logical
  8003. // addresses of the adapter (e.g. IP address, or WWPN).
  8004. func HwNetworkLogicalAddresses(val ...string) attribute.KeyValue {
  8005. return HwNetworkLogicalAddressesKey.StringSlice(val)
  8006. }
  8007. // HwNetworkPhysicalAddress returns an attribute KeyValue conforming to the
  8008. // "hw.network.physical_address" semantic conventions. It represents the physical
  8009. // address of the adapter (e.g. MAC address, or WWNN).
  8010. func HwNetworkPhysicalAddress(val string) attribute.KeyValue {
  8011. return HwNetworkPhysicalAddressKey.String(val)
  8012. }
  8013. // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
  8014. // conventions. It represents the unique identifier of the parent component
  8015. // (typically the `hw.id` attribute of the enclosure, or disk controller).
  8016. func HwParent(val string) attribute.KeyValue {
  8017. return HwParentKey.String(val)
  8018. }
  8019. // HwPhysicalDiskSmartAttribute returns an attribute KeyValue conforming to the
  8020. // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
  8021. // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
  8022. // of the physical disk.
  8023. //
  8024. // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
  8025. func HwPhysicalDiskSmartAttribute(val string) attribute.KeyValue {
  8026. return HwPhysicalDiskSmartAttributeKey.String(val)
  8027. }
  8028. // HwPhysicalDiskType returns an attribute KeyValue conforming to the
  8029. // "hw.physical_disk.type" semantic conventions. It represents the type of the
  8030. // physical disk.
  8031. func HwPhysicalDiskType(val string) attribute.KeyValue {
  8032. return HwPhysicalDiskTypeKey.String(val)
  8033. }
  8034. // HwSensorLocation returns an attribute KeyValue conforming to the
  8035. // "hw.sensor_location" semantic conventions. It represents the location of the
  8036. // sensor.
  8037. func HwSensorLocation(val string) attribute.KeyValue {
  8038. return HwSensorLocationKey.String(val)
  8039. }
  8040. // HwSerialNumber returns an attribute KeyValue conforming to the
  8041. // "hw.serial_number" semantic conventions. It represents the serial number of
  8042. // the hardware component.
  8043. func HwSerialNumber(val string) attribute.KeyValue {
  8044. return HwSerialNumberKey.String(val)
  8045. }
  8046. // HwVendor returns an attribute KeyValue conforming to the "hw.vendor" semantic
  8047. // conventions. It represents the vendor name of the hardware component.
  8048. func HwVendor(val string) attribute.KeyValue {
  8049. return HwVendorKey.String(val)
  8050. }
  8051. // Enum values for hw.battery.state
  8052. var (
  8053. // Charging
  8054. // Stability: development
  8055. HwBatteryStateCharging = HwBatteryStateKey.String("charging")
  8056. // Discharging
  8057. // Stability: development
  8058. HwBatteryStateDischarging = HwBatteryStateKey.String("discharging")
  8059. )
  8060. // Enum values for hw.gpu.task
  8061. var (
  8062. // Decoder
  8063. // Stability: development
  8064. HwGpuTaskDecoder = HwGpuTaskKey.String("decoder")
  8065. // Encoder
  8066. // Stability: development
  8067. HwGpuTaskEncoder = HwGpuTaskKey.String("encoder")
  8068. // General
  8069. // Stability: development
  8070. HwGpuTaskGeneral = HwGpuTaskKey.String("general")
  8071. )
  8072. // Enum values for hw.limit_type
  8073. var (
  8074. // Critical
  8075. // Stability: development
  8076. HwLimitTypeCritical = HwLimitTypeKey.String("critical")
  8077. // Degraded
  8078. // Stability: development
  8079. HwLimitTypeDegraded = HwLimitTypeKey.String("degraded")
  8080. // High Critical
  8081. // Stability: development
  8082. HwLimitTypeHighCritical = HwLimitTypeKey.String("high.critical")
  8083. // High Degraded
  8084. // Stability: development
  8085. HwLimitTypeHighDegraded = HwLimitTypeKey.String("high.degraded")
  8086. // Low Critical
  8087. // Stability: development
  8088. HwLimitTypeLowCritical = HwLimitTypeKey.String("low.critical")
  8089. // Low Degraded
  8090. // Stability: development
  8091. HwLimitTypeLowDegraded = HwLimitTypeKey.String("low.degraded")
  8092. // Maximum
  8093. // Stability: development
  8094. HwLimitTypeMax = HwLimitTypeKey.String("max")
  8095. // Throttled
  8096. // Stability: development
  8097. HwLimitTypeThrottled = HwLimitTypeKey.String("throttled")
  8098. // Turbo
  8099. // Stability: development
  8100. HwLimitTypeTurbo = HwLimitTypeKey.String("turbo")
  8101. )
  8102. // Enum values for hw.logical_disk.state
  8103. var (
  8104. // Used
  8105. // Stability: development
  8106. HwLogicalDiskStateUsed = HwLogicalDiskStateKey.String("used")
  8107. // Free
  8108. // Stability: development
  8109. HwLogicalDiskStateFree = HwLogicalDiskStateKey.String("free")
  8110. )
  8111. // Enum values for hw.physical_disk.state
  8112. var (
  8113. // Remaining
  8114. // Stability: development
  8115. HwPhysicalDiskStateRemaining = HwPhysicalDiskStateKey.String("remaining")
  8116. )
  8117. // Enum values for hw.state
  8118. var (
  8119. // Degraded
  8120. // Stability: development
  8121. HwStateDegraded = HwStateKey.String("degraded")
  8122. // Failed
  8123. // Stability: development
  8124. HwStateFailed = HwStateKey.String("failed")
  8125. // Needs Cleaning
  8126. // Stability: development
  8127. HwStateNeedsCleaning = HwStateKey.String("needs_cleaning")
  8128. // OK
  8129. // Stability: development
  8130. HwStateOk = HwStateKey.String("ok")
  8131. // Predicted Failure
  8132. // Stability: development
  8133. HwStatePredictedFailure = HwStateKey.String("predicted_failure")
  8134. )
  8135. // Enum values for hw.tape_drive.operation_type
  8136. var (
  8137. // Mount
  8138. // Stability: development
  8139. HwTapeDriveOperationTypeMount = HwTapeDriveOperationTypeKey.String("mount")
  8140. // Unmount
  8141. // Stability: development
  8142. HwTapeDriveOperationTypeUnmount = HwTapeDriveOperationTypeKey.String("unmount")
  8143. // Clean
  8144. // Stability: development
  8145. HwTapeDriveOperationTypeClean = HwTapeDriveOperationTypeKey.String("clean")
  8146. )
  8147. // Enum values for hw.type
  8148. var (
  8149. // Battery
  8150. // Stability: development
  8151. HwTypeBattery = HwTypeKey.String("battery")
  8152. // CPU
  8153. // Stability: development
  8154. HwTypeCPU = HwTypeKey.String("cpu")
  8155. // Disk controller
  8156. // Stability: development
  8157. HwTypeDiskController = HwTypeKey.String("disk_controller")
  8158. // Enclosure
  8159. // Stability: development
  8160. HwTypeEnclosure = HwTypeKey.String("enclosure")
  8161. // Fan
  8162. // Stability: development
  8163. HwTypeFan = HwTypeKey.String("fan")
  8164. // GPU
  8165. // Stability: development
  8166. HwTypeGpu = HwTypeKey.String("gpu")
  8167. // Logical disk
  8168. // Stability: development
  8169. HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
  8170. // Memory
  8171. // Stability: development
  8172. HwTypeMemory = HwTypeKey.String("memory")
  8173. // Network
  8174. // Stability: development
  8175. HwTypeNetwork = HwTypeKey.String("network")
  8176. // Physical disk
  8177. // Stability: development
  8178. HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
  8179. // Power supply
  8180. // Stability: development
  8181. HwTypePowerSupply = HwTypeKey.String("power_supply")
  8182. // Tape drive
  8183. // Stability: development
  8184. HwTypeTapeDrive = HwTypeKey.String("tape_drive")
  8185. // Temperature
  8186. // Stability: development
  8187. HwTypeTemperature = HwTypeKey.String("temperature")
  8188. // Voltage
  8189. // Stability: development
  8190. HwTypeVoltage = HwTypeKey.String("voltage")
  8191. )
  8192. // Namespace: ios
  8193. const (
  8194. // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
  8195. // semantic conventions. It represents the this attribute represents the state
  8196. // of the application.
  8197. //
  8198. // Type: Enum
  8199. // RequirementLevel: Recommended
  8200. // Stability: Development
  8201. //
  8202. // Examples:
  8203. // Note: The iOS lifecycle states are defined in the
  8204. // [UIApplicationDelegate documentation], and from which the `OS terminology`
  8205. // column values are derived.
  8206. //
  8207. // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
  8208. IOSAppStateKey = attribute.Key("ios.app.state")
  8209. )
  8210. // Enum values for ios.app.state
  8211. var (
  8212. // The app has become `active`. Associated with UIKit notification
  8213. // `applicationDidBecomeActive`.
  8214. //
  8215. // Stability: development
  8216. IOSAppStateActive = IOSAppStateKey.String("active")
  8217. // The app is now `inactive`. Associated with UIKit notification
  8218. // `applicationWillResignActive`.
  8219. //
  8220. // Stability: development
  8221. IOSAppStateInactive = IOSAppStateKey.String("inactive")
  8222. // The app is now in the background. This value is associated with UIKit
  8223. // notification `applicationDidEnterBackground`.
  8224. //
  8225. // Stability: development
  8226. IOSAppStateBackground = IOSAppStateKey.String("background")
  8227. // The app is now in the foreground. This value is associated with UIKit
  8228. // notification `applicationWillEnterForeground`.
  8229. //
  8230. // Stability: development
  8231. IOSAppStateForeground = IOSAppStateKey.String("foreground")
  8232. // The app is about to terminate. Associated with UIKit notification
  8233. // `applicationWillTerminate`.
  8234. //
  8235. // Stability: development
  8236. IOSAppStateTerminate = IOSAppStateKey.String("terminate")
  8237. )
  8238. // Namespace: jsonrpc
  8239. const (
  8240. // JSONRPCProtocolVersionKey is the attribute Key conforming to the
  8241. // "jsonrpc.protocol.version" semantic conventions. It represents the protocol
  8242. // version, as specified in the `jsonrpc` property of the request and its
  8243. // corresponding response.
  8244. //
  8245. // Type: string
  8246. // RequirementLevel: Recommended
  8247. // Stability: Development
  8248. //
  8249. // Examples: "2.0", "1.0"
  8250. JSONRPCProtocolVersionKey = attribute.Key("jsonrpc.protocol.version")
  8251. // JSONRPCRequestIDKey is the attribute Key conforming to the
  8252. // "jsonrpc.request.id" semantic conventions. It represents a string
  8253. // representation of the `id` property of the request and its corresponding
  8254. // response.
  8255. //
  8256. // Type: string
  8257. // RequirementLevel: Recommended
  8258. // Stability: Development
  8259. //
  8260. // Examples: "10", "request-7"
  8261. // Note: Under the [JSON-RPC specification], the `id` property may be a string,
  8262. // number, null, or omitted entirely. When omitted, the request is treated as a
  8263. // notification. Using `null` is not equivalent to omitting the `id`, but it is
  8264. // discouraged.
  8265. // Instrumentations SHOULD NOT capture this attribute when the `id` is `null` or
  8266. // omitted.
  8267. //
  8268. // [JSON-RPC specification]: https://www.jsonrpc.org/specification
  8269. JSONRPCRequestIDKey = attribute.Key("jsonrpc.request.id")
  8270. )
  8271. // JSONRPCProtocolVersion returns an attribute KeyValue conforming to the
  8272. // "jsonrpc.protocol.version" semantic conventions. It represents the protocol
  8273. // version, as specified in the `jsonrpc` property of the request and its
  8274. // corresponding response.
  8275. func JSONRPCProtocolVersion(val string) attribute.KeyValue {
  8276. return JSONRPCProtocolVersionKey.String(val)
  8277. }
  8278. // JSONRPCRequestID returns an attribute KeyValue conforming to the
  8279. // "jsonrpc.request.id" semantic conventions. It represents a string
  8280. // representation of the `id` property of the request and its corresponding
  8281. // response.
  8282. func JSONRPCRequestID(val string) attribute.KeyValue {
  8283. return JSONRPCRequestIDKey.String(val)
  8284. }
  8285. // Namespace: k8s
  8286. const (
  8287. // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
  8288. // semantic conventions. It represents the name of the cluster.
  8289. //
  8290. // Type: string
  8291. // RequirementLevel: Recommended
  8292. // Stability: Beta
  8293. //
  8294. // Examples: "opentelemetry-cluster"
  8295. K8SClusterNameKey = attribute.Key("k8s.cluster.name")
  8296. // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
  8297. // semantic conventions. It represents a pseudo-ID for the cluster, set to the
  8298. // UID of the `kube-system` namespace.
  8299. //
  8300. // Type: string
  8301. // RequirementLevel: Recommended
  8302. // Stability: Beta
  8303. //
  8304. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  8305. // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
  8306. // added, we will recommend collecting the `k8s.cluster.uid` through the
  8307. // official APIs. In the meantime, we are able to use the `uid` of the
  8308. // `kube-system` namespace as a proxy for cluster ID. Read on for the
  8309. // rationale.
  8310. //
  8311. // Every object created in a K8s cluster is assigned a distinct UID. The
  8312. // `kube-system` namespace is used by Kubernetes itself and will exist
  8313. // for the lifetime of the cluster. Using the `uid` of the `kube-system`
  8314. // namespace is a reasonable proxy for the K8s ClusterID as it will only
  8315. // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
  8316. // UUIDs as standardized by
  8317. // [ISO/IEC 9834-8 and ITU-T X.667].
  8318. // Which states:
  8319. //
  8320. // > If generated according to one of the mechanisms defined in Rec.
  8321. // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
  8322. // > different from all other UUIDs generated before 3603 A.D., or is
  8323. // > extremely likely to be different (depending on the mechanism chosen).
  8324. //
  8325. // Therefore, UIDs between clusters should be extremely unlikely to
  8326. // conflict.
  8327. //
  8328. // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
  8329. K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
  8330. // K8SContainerNameKey is the attribute Key conforming to the
  8331. // "k8s.container.name" semantic conventions. It represents the name of the
  8332. // Container from Pod specification, must be unique within a Pod. Container
  8333. // runtime usually uses different globally unique name (`container.name`).
  8334. //
  8335. // Type: string
  8336. // RequirementLevel: Recommended
  8337. // Stability: Beta
  8338. //
  8339. // Examples: "redis"
  8340. K8SContainerNameKey = attribute.Key("k8s.container.name")
  8341. // K8SContainerRestartCountKey is the attribute Key conforming to the
  8342. // "k8s.container.restart_count" semantic conventions. It represents the number
  8343. // of times the container was restarted. This attribute can be used to identify
  8344. // a particular container (running or stopped) within a container spec.
  8345. //
  8346. // Type: int
  8347. // RequirementLevel: Recommended
  8348. // Stability: Beta
  8349. //
  8350. // Examples:
  8351. K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
  8352. // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
  8353. // the "k8s.container.status.last_terminated_reason" semantic conventions. It
  8354. // represents the last terminated reason of the Container.
  8355. //
  8356. // Type: string
  8357. // RequirementLevel: Recommended
  8358. // Stability: Development
  8359. //
  8360. // Examples: "Evicted", "Error"
  8361. K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
  8362. // K8SContainerStatusReasonKey is the attribute Key conforming to the
  8363. // "k8s.container.status.reason" semantic conventions. It represents the reason
  8364. // for the container state. Corresponds to the `reason` field of the:
  8365. // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
  8366. //
  8367. // Type: Enum
  8368. // RequirementLevel: Recommended
  8369. // Stability: Development
  8370. //
  8371. // Examples: "ContainerCreating", "CrashLoopBackOff",
  8372. // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
  8373. // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
  8374. //
  8375. // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
  8376. // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
  8377. K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
  8378. // K8SContainerStatusStateKey is the attribute Key conforming to the
  8379. // "k8s.container.status.state" semantic conventions. It represents the state of
  8380. // the container. [K8s ContainerState].
  8381. //
  8382. // Type: Enum
  8383. // RequirementLevel: Recommended
  8384. // Stability: Development
  8385. //
  8386. // Examples: "terminated", "running", "waiting"
  8387. //
  8388. // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
  8389. K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
  8390. // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
  8391. // semantic conventions. It represents the name of the CronJob.
  8392. //
  8393. // Type: string
  8394. // RequirementLevel: Recommended
  8395. // Stability: Beta
  8396. //
  8397. // Examples: "opentelemetry"
  8398. K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
  8399. // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
  8400. // semantic conventions. It represents the UID of the CronJob.
  8401. //
  8402. // Type: string
  8403. // RequirementLevel: Recommended
  8404. // Stability: Beta
  8405. //
  8406. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8407. K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
  8408. // K8SDaemonSetNameKey is the attribute Key conforming to the
  8409. // "k8s.daemonset.name" semantic conventions. It represents the name of the
  8410. // DaemonSet.
  8411. //
  8412. // Type: string
  8413. // RequirementLevel: Recommended
  8414. // Stability: Beta
  8415. //
  8416. // Examples: "opentelemetry"
  8417. K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
  8418. // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
  8419. // semantic conventions. It represents the UID of the DaemonSet.
  8420. //
  8421. // Type: string
  8422. // RequirementLevel: Recommended
  8423. // Stability: Beta
  8424. //
  8425. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8426. K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
  8427. // K8SDeploymentNameKey is the attribute Key conforming to the
  8428. // "k8s.deployment.name" semantic conventions. It represents the name of the
  8429. // Deployment.
  8430. //
  8431. // Type: string
  8432. // RequirementLevel: Recommended
  8433. // Stability: Beta
  8434. //
  8435. // Examples: "opentelemetry"
  8436. K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
  8437. // K8SDeploymentUIDKey is the attribute Key conforming to the
  8438. // "k8s.deployment.uid" semantic conventions. It represents the UID of the
  8439. // Deployment.
  8440. //
  8441. // Type: string
  8442. // RequirementLevel: Recommended
  8443. // Stability: Beta
  8444. //
  8445. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8446. K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
  8447. // K8SHPAMetricTypeKey is the attribute Key conforming to the
  8448. // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
  8449. // source for the horizontal pod autoscaler.
  8450. //
  8451. // Type: string
  8452. // RequirementLevel: Recommended
  8453. // Stability: Development
  8454. //
  8455. // Examples: "Resource", "ContainerResource"
  8456. // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
  8457. K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
  8458. // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
  8459. // conventions. It represents the name of the horizontal pod autoscaler.
  8460. //
  8461. // Type: string
  8462. // RequirementLevel: Recommended
  8463. // Stability: Development
  8464. //
  8465. // Examples: "opentelemetry"
  8466. K8SHPANameKey = attribute.Key("k8s.hpa.name")
  8467. // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
  8468. // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
  8469. // API version of the target resource to scale for the HorizontalPodAutoscaler.
  8470. //
  8471. // Type: string
  8472. // RequirementLevel: Recommended
  8473. // Stability: Development
  8474. //
  8475. // Examples: "apps/v1", "autoscaling/v2"
  8476. // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
  8477. // spec.
  8478. K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
  8479. // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
  8480. // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
  8481. // the target resource to scale for the HorizontalPodAutoscaler.
  8482. //
  8483. // Type: string
  8484. // RequirementLevel: Recommended
  8485. // Stability: Development
  8486. //
  8487. // Examples: "Deployment", "StatefulSet"
  8488. // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
  8489. K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
  8490. // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
  8491. // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
  8492. // the target resource to scale for the HorizontalPodAutoscaler.
  8493. //
  8494. // Type: string
  8495. // RequirementLevel: Recommended
  8496. // Stability: Development
  8497. //
  8498. // Examples: "my-deployment", "my-statefulset"
  8499. // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
  8500. K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
  8501. // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
  8502. // conventions. It represents the UID of the horizontal pod autoscaler.
  8503. //
  8504. // Type: string
  8505. // RequirementLevel: Recommended
  8506. // Stability: Development
  8507. //
  8508. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8509. K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
  8510. // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
  8511. // semantic conventions. It represents the size (identifier) of the K8s huge
  8512. // page.
  8513. //
  8514. // Type: string
  8515. // RequirementLevel: Recommended
  8516. // Stability: Development
  8517. //
  8518. // Examples: "2Mi"
  8519. K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
  8520. // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
  8521. // conventions. It represents the name of the Job.
  8522. //
  8523. // Type: string
  8524. // RequirementLevel: Recommended
  8525. // Stability: Beta
  8526. //
  8527. // Examples: "opentelemetry"
  8528. K8SJobNameKey = attribute.Key("k8s.job.name")
  8529. // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
  8530. // conventions. It represents the UID of the Job.
  8531. //
  8532. // Type: string
  8533. // RequirementLevel: Recommended
  8534. // Stability: Beta
  8535. //
  8536. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8537. K8SJobUIDKey = attribute.Key("k8s.job.uid")
  8538. // K8SNamespaceNameKey is the attribute Key conforming to the
  8539. // "k8s.namespace.name" semantic conventions. It represents the name of the
  8540. // namespace that the pod is running in.
  8541. //
  8542. // Type: string
  8543. // RequirementLevel: Recommended
  8544. // Stability: Beta
  8545. //
  8546. // Examples: "default"
  8547. K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
  8548. // K8SNamespacePhaseKey is the attribute Key conforming to the
  8549. // "k8s.namespace.phase" semantic conventions. It represents the phase of the
  8550. // K8s namespace.
  8551. //
  8552. // Type: Enum
  8553. // RequirementLevel: Recommended
  8554. // Stability: Development
  8555. //
  8556. // Examples: "active", "terminating"
  8557. // Note: This attribute aligns with the `phase` field of the
  8558. // [K8s NamespaceStatus]
  8559. //
  8560. // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
  8561. K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
  8562. // K8SNodeConditionStatusKey is the attribute Key conforming to the
  8563. // "k8s.node.condition.status" semantic conventions. It represents the status of
  8564. // the condition, one of True, False, Unknown.
  8565. //
  8566. // Type: Enum
  8567. // RequirementLevel: Recommended
  8568. // Stability: Development
  8569. //
  8570. // Examples: "true", "false", "unknown"
  8571. // Note: This attribute aligns with the `status` field of the
  8572. // [NodeCondition]
  8573. //
  8574. // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
  8575. K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
  8576. // K8SNodeConditionTypeKey is the attribute Key conforming to the
  8577. // "k8s.node.condition.type" semantic conventions. It represents the condition
  8578. // type of a K8s Node.
  8579. //
  8580. // Type: Enum
  8581. // RequirementLevel: Recommended
  8582. // Stability: Development
  8583. //
  8584. // Examples: "Ready", "DiskPressure"
  8585. // Note: K8s Node conditions as described
  8586. // by [K8s documentation].
  8587. //
  8588. // This attribute aligns with the `type` field of the
  8589. // [NodeCondition]
  8590. //
  8591. // The set of possible values is not limited to those listed here. Managed
  8592. // Kubernetes environments,
  8593. // or custom controllers MAY introduce additional node condition types.
  8594. // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
  8595. // used.
  8596. //
  8597. // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
  8598. // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
  8599. K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
  8600. // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
  8601. // semantic conventions. It represents the name of the Node.
  8602. //
  8603. // Type: string
  8604. // RequirementLevel: Recommended
  8605. // Stability: Beta
  8606. //
  8607. // Examples: "node-1"
  8608. K8SNodeNameKey = attribute.Key("k8s.node.name")
  8609. // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
  8610. // conventions. It represents the UID of the Node.
  8611. //
  8612. // Type: string
  8613. // RequirementLevel: Recommended
  8614. // Stability: Beta
  8615. //
  8616. // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
  8617. K8SNodeUIDKey = attribute.Key("k8s.node.uid")
  8618. // K8SPodHostnameKey is the attribute Key conforming to the "k8s.pod.hostname"
  8619. // semantic conventions. It represents the specifies the hostname of the Pod.
  8620. //
  8621. // Type: string
  8622. // RequirementLevel: Recommended
  8623. // Stability: Beta
  8624. //
  8625. // Examples: "collector-gateway"
  8626. // Note: The K8s Pod spec has an optional hostname field, which can be used to
  8627. // specify a hostname.
  8628. // Refer to [K8s docs]
  8629. // for more information about this field.
  8630. //
  8631. // This attribute aligns with the `hostname` field of the
  8632. // [K8s PodSpec].
  8633. //
  8634. // [K8s docs]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-hostname-and-subdomain-field
  8635. // [K8s PodSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podspec-v1-core
  8636. K8SPodHostnameKey = attribute.Key("k8s.pod.hostname")
  8637. // K8SPodIPKey is the attribute Key conforming to the "k8s.pod.ip" semantic
  8638. // conventions. It represents the IP address allocated to the Pod.
  8639. //
  8640. // Type: string
  8641. // RequirementLevel: Recommended
  8642. // Stability: Beta
  8643. //
  8644. // Examples: "172.18.0.2"
  8645. // Note: This attribute aligns with the `podIP` field of the
  8646. // [K8s PodStatus].
  8647. //
  8648. // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podstatus-v1-core
  8649. K8SPodIPKey = attribute.Key("k8s.pod.ip")
  8650. // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
  8651. // conventions. It represents the name of the Pod.
  8652. //
  8653. // Type: string
  8654. // RequirementLevel: Recommended
  8655. // Stability: Beta
  8656. //
  8657. // Examples: "opentelemetry-pod-autoconf"
  8658. K8SPodNameKey = attribute.Key("k8s.pod.name")
  8659. // K8SPodStartTimeKey is the attribute Key conforming to the
  8660. // "k8s.pod.start_time" semantic conventions. It represents the start timestamp
  8661. // of the Pod.
  8662. //
  8663. // Type: string
  8664. // RequirementLevel: Recommended
  8665. // Stability: Beta
  8666. //
  8667. // Examples: "2025-12-04T08:41:03Z"
  8668. // Note: Date and time at which the object was acknowledged by the Kubelet.
  8669. // This is before the Kubelet pulled the container image(s) for the pod.
  8670. //
  8671. // This attribute aligns with the `startTime` field of the
  8672. // [K8s PodStatus],
  8673. // in ISO 8601 (RFC 3339 compatible) format.
  8674. //
  8675. // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podstatus-v1-core
  8676. K8SPodStartTimeKey = attribute.Key("k8s.pod.start_time")
  8677. // K8SPodStatusPhaseKey is the attribute Key conforming to the
  8678. // "k8s.pod.status.phase" semantic conventions. It represents the phase for the
  8679. // pod. Corresponds to the `phase` field of the: [K8s PodStatus].
  8680. //
  8681. // Type: Enum
  8682. // RequirementLevel: Recommended
  8683. // Stability: Development
  8684. //
  8685. // Examples: "Pending", "Running"
  8686. //
  8687. // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
  8688. K8SPodStatusPhaseKey = attribute.Key("k8s.pod.status.phase")
  8689. // K8SPodStatusReasonKey is the attribute Key conforming to the
  8690. // "k8s.pod.status.reason" semantic conventions. It represents the reason for
  8691. // the pod state. Corresponds to the `reason` field of the: [K8s PodStatus].
  8692. //
  8693. // Type: Enum
  8694. // RequirementLevel: Recommended
  8695. // Stability: Development
  8696. //
  8697. // Examples: "Evicted", "NodeAffinity"
  8698. //
  8699. // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
  8700. K8SPodStatusReasonKey = attribute.Key("k8s.pod.status.reason")
  8701. // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
  8702. // conventions. It represents the UID of the Pod.
  8703. //
  8704. // Type: string
  8705. // RequirementLevel: Recommended
  8706. // Stability: Beta
  8707. //
  8708. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8709. K8SPodUIDKey = attribute.Key("k8s.pod.uid")
  8710. // K8SReplicaSetNameKey is the attribute Key conforming to the
  8711. // "k8s.replicaset.name" semantic conventions. It represents the name of the
  8712. // ReplicaSet.
  8713. //
  8714. // Type: string
  8715. // RequirementLevel: Recommended
  8716. // Stability: Beta
  8717. //
  8718. // Examples: "opentelemetry"
  8719. K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
  8720. // K8SReplicaSetUIDKey is the attribute Key conforming to the
  8721. // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
  8722. // ReplicaSet.
  8723. //
  8724. // Type: string
  8725. // RequirementLevel: Recommended
  8726. // Stability: Beta
  8727. //
  8728. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8729. K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
  8730. // K8SReplicationControllerNameKey is the attribute Key conforming to the
  8731. // "k8s.replicationcontroller.name" semantic conventions. It represents the name
  8732. // of the replication controller.
  8733. //
  8734. // Type: string
  8735. // RequirementLevel: Recommended
  8736. // Stability: Development
  8737. //
  8738. // Examples: "opentelemetry"
  8739. K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
  8740. // K8SReplicationControllerUIDKey is the attribute Key conforming to the
  8741. // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
  8742. // of the replication controller.
  8743. //
  8744. // Type: string
  8745. // RequirementLevel: Recommended
  8746. // Stability: Development
  8747. //
  8748. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8749. K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
  8750. // K8SResourceQuotaNameKey is the attribute Key conforming to the
  8751. // "k8s.resourcequota.name" semantic conventions. It represents the name of the
  8752. // resource quota.
  8753. //
  8754. // Type: string
  8755. // RequirementLevel: Recommended
  8756. // Stability: Development
  8757. //
  8758. // Examples: "opentelemetry"
  8759. K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
  8760. // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
  8761. // "k8s.resourcequota.resource_name" semantic conventions. It represents the
  8762. // name of the K8s resource a resource quota defines.
  8763. //
  8764. // Type: string
  8765. // RequirementLevel: Recommended
  8766. // Stability: Development
  8767. //
  8768. // Examples: "count/replicationcontrollers"
  8769. // Note: The value for this attribute can be either the full
  8770. // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
  8771. // count/pods), or, for certain core Kubernetes resources, just the resource
  8772. // name (e.g., pods, services, configmaps). Both forms are supported by
  8773. // Kubernetes for object count quotas. See
  8774. // [Kubernetes Resource Quotas documentation] for more details.
  8775. //
  8776. // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-on-object-count
  8777. K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
  8778. // K8SResourceQuotaUIDKey is the attribute Key conforming to the
  8779. // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
  8780. // resource quota.
  8781. //
  8782. // Type: string
  8783. // RequirementLevel: Recommended
  8784. // Stability: Development
  8785. //
  8786. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8787. K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
  8788. // K8SServiceEndpointAddressTypeKey is the attribute Key conforming to the
  8789. // "k8s.service.endpoint.address_type" semantic conventions. It represents the
  8790. // address type of the service endpoint.
  8791. //
  8792. // Type: Enum
  8793. // RequirementLevel: Recommended
  8794. // Stability: Development
  8795. //
  8796. // Examples: "IPv4", "IPv6"
  8797. // Note: The network address family or type of the endpoint.
  8798. // This attribute aligns with the `addressType` field of the
  8799. // [K8s EndpointSlice].
  8800. // It is used to differentiate metrics when a Service is backed by multiple
  8801. // address types
  8802. // (e.g., in dual-stack clusters).
  8803. //
  8804. // [K8s EndpointSlice]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
  8805. K8SServiceEndpointAddressTypeKey = attribute.Key("k8s.service.endpoint.address_type")
  8806. // K8SServiceEndpointConditionKey is the attribute Key conforming to the
  8807. // "k8s.service.endpoint.condition" semantic conventions. It represents the
  8808. // condition of the service endpoint.
  8809. //
  8810. // Type: Enum
  8811. // RequirementLevel: Recommended
  8812. // Stability: Development
  8813. //
  8814. // Examples: "ready", "serving", "terminating"
  8815. // Note: The current operational condition of the service endpoint.
  8816. // An endpoint can have multiple conditions set at once (e.g., both `serving`
  8817. // and `terminating` during rollout).
  8818. // This attribute aligns with the condition fields in the [K8s EndpointSlice].
  8819. //
  8820. // [K8s EndpointSlice]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
  8821. K8SServiceEndpointConditionKey = attribute.Key("k8s.service.endpoint.condition")
  8822. // K8SServiceEndpointZoneKey is the attribute Key conforming to the
  8823. // "k8s.service.endpoint.zone" semantic conventions. It represents the zone of
  8824. // the service endpoint.
  8825. //
  8826. // Type: string
  8827. // RequirementLevel: Recommended
  8828. // Stability: Development
  8829. //
  8830. // Examples: "us-east-1a", "us-west-2b", "zone-a", ""
  8831. // Note: The zone where the endpoint is located, typically corresponding to a
  8832. // failure domain.
  8833. // This attribute aligns with the `zone` field of endpoints in the
  8834. // [K8s EndpointSlice].
  8835. // It enables zone-aware monitoring of service endpoint distribution and
  8836. // supports
  8837. // features like [Topology Aware Routing].
  8838. //
  8839. // If the zone is not populated (e.g., nodes without the
  8840. // `topology.kubernetes.io/zone` label),
  8841. // the attribute value will be an empty string.
  8842. //
  8843. // [K8s EndpointSlice]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
  8844. // [Topology Aware Routing]: https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/
  8845. K8SServiceEndpointZoneKey = attribute.Key("k8s.service.endpoint.zone")
  8846. // K8SServiceNameKey is the attribute Key conforming to the "k8s.service.name"
  8847. // semantic conventions. It represents the name of the Service.
  8848. //
  8849. // Type: string
  8850. // RequirementLevel: Recommended
  8851. // Stability: Development
  8852. //
  8853. // Examples: "my-service"
  8854. K8SServiceNameKey = attribute.Key("k8s.service.name")
  8855. // K8SServicePublishNotReadyAddressesKey is the attribute Key conforming to the
  8856. // "k8s.service.publish_not_ready_addresses" semantic conventions. It represents
  8857. // the whether the Service publishes not-ready endpoints.
  8858. //
  8859. // Type: boolean
  8860. // RequirementLevel: Recommended
  8861. // Stability: Development
  8862. //
  8863. // Examples: true, false
  8864. // Note: Whether the Service is configured to publish endpoints before the pods
  8865. // are ready.
  8866. // This attribute is typically used to indicate that a Service (such as a
  8867. // headless
  8868. // Service for a StatefulSet) allows peer discovery before pods pass their
  8869. // readiness probes.
  8870. // It aligns with the `publishNotReadyAddresses` field of the
  8871. // [K8s ServiceSpec].
  8872. //
  8873. // [K8s ServiceSpec]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
  8874. K8SServicePublishNotReadyAddressesKey = attribute.Key("k8s.service.publish_not_ready_addresses")
  8875. // K8SServiceTrafficDistributionKey is the attribute Key conforming to the
  8876. // "k8s.service.traffic_distribution" semantic conventions. It represents the
  8877. // traffic distribution policy for the Service.
  8878. //
  8879. // Type: string
  8880. // RequirementLevel: Recommended
  8881. // Stability: Development
  8882. //
  8883. // Examples: "PreferSameZone", "PreferSameNode"
  8884. // Note: Specifies how traffic is distributed to endpoints for this Service.
  8885. // This attribute aligns with the `trafficDistribution` field of the
  8886. // [K8s ServiceSpec].
  8887. // Known values include `PreferSameZone` (prefer endpoints in the same zone as
  8888. // the client) and
  8889. // `PreferSameNode` (prefer endpoints on the same node, fallback to same zone,
  8890. // then cluster-wide).
  8891. // If this field is not set on the Service, the attribute SHOULD NOT be emitted.
  8892. // When not set, Kubernetes distributes traffic evenly across all endpoints
  8893. // cluster-wide.
  8894. //
  8895. // [K8s ServiceSpec]: https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-distribution
  8896. K8SServiceTrafficDistributionKey = attribute.Key("k8s.service.traffic_distribution")
  8897. // K8SServiceTypeKey is the attribute Key conforming to the "k8s.service.type"
  8898. // semantic conventions. It represents the type of the Kubernetes Service.
  8899. //
  8900. // Type: Enum
  8901. // RequirementLevel: Recommended
  8902. // Stability: Development
  8903. //
  8904. // Examples: "ClusterIP", "NodePort", "LoadBalancer"
  8905. // Note: This attribute aligns with the `type` field of the
  8906. // [K8s ServiceSpec].
  8907. //
  8908. // [K8s ServiceSpec]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
  8909. K8SServiceTypeKey = attribute.Key("k8s.service.type")
  8910. // K8SServiceUIDKey is the attribute Key conforming to the "k8s.service.uid"
  8911. // semantic conventions. It represents the UID of the Service.
  8912. //
  8913. // Type: string
  8914. // RequirementLevel: Recommended
  8915. // Stability: Development
  8916. //
  8917. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8918. K8SServiceUIDKey = attribute.Key("k8s.service.uid")
  8919. // K8SStatefulSetNameKey is the attribute Key conforming to the
  8920. // "k8s.statefulset.name" semantic conventions. It represents the name of the
  8921. // StatefulSet.
  8922. //
  8923. // Type: string
  8924. // RequirementLevel: Recommended
  8925. // Stability: Beta
  8926. //
  8927. // Examples: "opentelemetry"
  8928. K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
  8929. // K8SStatefulSetUIDKey is the attribute Key conforming to the
  8930. // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
  8931. // StatefulSet.
  8932. //
  8933. // Type: string
  8934. // RequirementLevel: Recommended
  8935. // Stability: Beta
  8936. //
  8937. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8938. K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
  8939. // K8SStorageclassNameKey is the attribute Key conforming to the
  8940. // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
  8941. // [StorageClass] object.
  8942. //
  8943. // Type: string
  8944. // RequirementLevel: Recommended
  8945. // Stability: Development
  8946. //
  8947. // Examples: "gold.storageclass.storage.k8s.io"
  8948. //
  8949. // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
  8950. K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
  8951. // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
  8952. // semantic conventions. It represents the name of the K8s volume.
  8953. //
  8954. // Type: string
  8955. // RequirementLevel: Recommended
  8956. // Stability: Development
  8957. //
  8958. // Examples: "volume0"
  8959. K8SVolumeNameKey = attribute.Key("k8s.volume.name")
  8960. // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
  8961. // semantic conventions. It represents the type of the K8s volume.
  8962. //
  8963. // Type: Enum
  8964. // RequirementLevel: Recommended
  8965. // Stability: Development
  8966. //
  8967. // Examples: "emptyDir", "persistentVolumeClaim"
  8968. K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
  8969. )
  8970. // K8SClusterName returns an attribute KeyValue conforming to the
  8971. // "k8s.cluster.name" semantic conventions. It represents the name of the
  8972. // cluster.
  8973. func K8SClusterName(val string) attribute.KeyValue {
  8974. return K8SClusterNameKey.String(val)
  8975. }
  8976. // K8SClusterUID returns an attribute KeyValue conforming to the
  8977. // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
  8978. // cluster, set to the UID of the `kube-system` namespace.
  8979. func K8SClusterUID(val string) attribute.KeyValue {
  8980. return K8SClusterUIDKey.String(val)
  8981. }
  8982. // K8SContainerName returns an attribute KeyValue conforming to the
  8983. // "k8s.container.name" semantic conventions. It represents the name of the
  8984. // Container from Pod specification, must be unique within a Pod. Container
  8985. // runtime usually uses different globally unique name (`container.name`).
  8986. func K8SContainerName(val string) attribute.KeyValue {
  8987. return K8SContainerNameKey.String(val)
  8988. }
  8989. // K8SContainerRestartCount returns an attribute KeyValue conforming to the
  8990. // "k8s.container.restart_count" semantic conventions. It represents the number
  8991. // of times the container was restarted. This attribute can be used to identify a
  8992. // particular container (running or stopped) within a container spec.
  8993. func K8SContainerRestartCount(val int) attribute.KeyValue {
  8994. return K8SContainerRestartCountKey.Int(val)
  8995. }
  8996. // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
  8997. // conforming to the "k8s.container.status.last_terminated_reason" semantic
  8998. // conventions. It represents the last terminated reason of the Container.
  8999. func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
  9000. return K8SContainerStatusLastTerminatedReasonKey.String(val)
  9001. }
  9002. // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
  9003. // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
  9004. // annotation placed on the CronJob, the `<key>` being the annotation name, the
  9005. // value being the annotation value.
  9006. func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
  9007. return attribute.String("k8s.cronjob.annotation."+key, val)
  9008. }
  9009. // K8SCronJobLabel returns an attribute KeyValue conforming to the
  9010. // "k8s.cronjob.label" semantic conventions. It represents the label placed on
  9011. // the CronJob, the `<key>` being the label name, the value being the label
  9012. // value.
  9013. func K8SCronJobLabel(key string, val string) attribute.KeyValue {
  9014. return attribute.String("k8s.cronjob.label."+key, val)
  9015. }
  9016. // K8SCronJobName returns an attribute KeyValue conforming to the
  9017. // "k8s.cronjob.name" semantic conventions. It represents the name of the
  9018. // CronJob.
  9019. func K8SCronJobName(val string) attribute.KeyValue {
  9020. return K8SCronJobNameKey.String(val)
  9021. }
  9022. // K8SCronJobUID returns an attribute KeyValue conforming to the
  9023. // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
  9024. func K8SCronJobUID(val string) attribute.KeyValue {
  9025. return K8SCronJobUIDKey.String(val)
  9026. }
  9027. // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
  9028. // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
  9029. // placed on the DaemonSet, the `<key>` being the annotation name, the value
  9030. // being the annotation value, even if the value is empty.
  9031. func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
  9032. return attribute.String("k8s.daemonset.annotation."+key, val)
  9033. }
  9034. // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
  9035. // "k8s.daemonset.label" semantic conventions. It represents the label placed on
  9036. // the DaemonSet, the `<key>` being the label name, the value being the label
  9037. // value, even if the value is empty.
  9038. func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
  9039. return attribute.String("k8s.daemonset.label."+key, val)
  9040. }
  9041. // K8SDaemonSetName returns an attribute KeyValue conforming to the
  9042. // "k8s.daemonset.name" semantic conventions. It represents the name of the
  9043. // DaemonSet.
  9044. func K8SDaemonSetName(val string) attribute.KeyValue {
  9045. return K8SDaemonSetNameKey.String(val)
  9046. }
  9047. // K8SDaemonSetUID returns an attribute KeyValue conforming to the
  9048. // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
  9049. // DaemonSet.
  9050. func K8SDaemonSetUID(val string) attribute.KeyValue {
  9051. return K8SDaemonSetUIDKey.String(val)
  9052. }
  9053. // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
  9054. // "k8s.deployment.annotation" semantic conventions. It represents the annotation
  9055. // placed on the Deployment, the `<key>` being the annotation name, the value
  9056. // being the annotation value, even if the value is empty.
  9057. func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
  9058. return attribute.String("k8s.deployment.annotation."+key, val)
  9059. }
  9060. // K8SDeploymentLabel returns an attribute KeyValue conforming to the
  9061. // "k8s.deployment.label" semantic conventions. It represents the label placed on
  9062. // the Deployment, the `<key>` being the label name, the value being the label
  9063. // value, even if the value is empty.
  9064. func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
  9065. return attribute.String("k8s.deployment.label."+key, val)
  9066. }
  9067. // K8SDeploymentName returns an attribute KeyValue conforming to the
  9068. // "k8s.deployment.name" semantic conventions. It represents the name of the
  9069. // Deployment.
  9070. func K8SDeploymentName(val string) attribute.KeyValue {
  9071. return K8SDeploymentNameKey.String(val)
  9072. }
  9073. // K8SDeploymentUID returns an attribute KeyValue conforming to the
  9074. // "k8s.deployment.uid" semantic conventions. It represents the UID of the
  9075. // Deployment.
  9076. func K8SDeploymentUID(val string) attribute.KeyValue {
  9077. return K8SDeploymentUIDKey.String(val)
  9078. }
  9079. // K8SHPAMetricType returns an attribute KeyValue conforming to the
  9080. // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
  9081. // source for the horizontal pod autoscaler.
  9082. func K8SHPAMetricType(val string) attribute.KeyValue {
  9083. return K8SHPAMetricTypeKey.String(val)
  9084. }
  9085. // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
  9086. // semantic conventions. It represents the name of the horizontal pod autoscaler.
  9087. func K8SHPAName(val string) attribute.KeyValue {
  9088. return K8SHPANameKey.String(val)
  9089. }
  9090. // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
  9091. // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
  9092. // API version of the target resource to scale for the HorizontalPodAutoscaler.
  9093. func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
  9094. return K8SHPAScaletargetrefAPIVersionKey.String(val)
  9095. }
  9096. // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
  9097. // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
  9098. // the target resource to scale for the HorizontalPodAutoscaler.
  9099. func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
  9100. return K8SHPAScaletargetrefKindKey.String(val)
  9101. }
  9102. // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
  9103. // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
  9104. // the target resource to scale for the HorizontalPodAutoscaler.
  9105. func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
  9106. return K8SHPAScaletargetrefNameKey.String(val)
  9107. }
  9108. // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
  9109. // semantic conventions. It represents the UID of the horizontal pod autoscaler.
  9110. func K8SHPAUID(val string) attribute.KeyValue {
  9111. return K8SHPAUIDKey.String(val)
  9112. }
  9113. // K8SHugepageSize returns an attribute KeyValue conforming to the
  9114. // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
  9115. // of the K8s huge page.
  9116. func K8SHugepageSize(val string) attribute.KeyValue {
  9117. return K8SHugepageSizeKey.String(val)
  9118. }
  9119. // K8SJobAnnotation returns an attribute KeyValue conforming to the
  9120. // "k8s.job.annotation" semantic conventions. It represents the annotation placed
  9121. // on the Job, the `<key>` being the annotation name, the value being the
  9122. // annotation value, even if the value is empty.
  9123. func K8SJobAnnotation(key string, val string) attribute.KeyValue {
  9124. return attribute.String("k8s.job.annotation."+key, val)
  9125. }
  9126. // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
  9127. // semantic conventions. It represents the label placed on the Job, the `<key>`
  9128. // being the label name, the value being the label value, even if the value is
  9129. // empty.
  9130. func K8SJobLabel(key string, val string) attribute.KeyValue {
  9131. return attribute.String("k8s.job.label."+key, val)
  9132. }
  9133. // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
  9134. // semantic conventions. It represents the name of the Job.
  9135. func K8SJobName(val string) attribute.KeyValue {
  9136. return K8SJobNameKey.String(val)
  9137. }
  9138. // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
  9139. // semantic conventions. It represents the UID of the Job.
  9140. func K8SJobUID(val string) attribute.KeyValue {
  9141. return K8SJobUIDKey.String(val)
  9142. }
  9143. // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
  9144. // "k8s.namespace.annotation" semantic conventions. It represents the annotation
  9145. // placed on the Namespace, the `<key>` being the annotation name, the value
  9146. // being the annotation value, even if the value is empty.
  9147. func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
  9148. return attribute.String("k8s.namespace.annotation."+key, val)
  9149. }
  9150. // K8SNamespaceLabel returns an attribute KeyValue conforming to the
  9151. // "k8s.namespace.label" semantic conventions. It represents the label placed on
  9152. // the Namespace, the `<key>` being the label name, the value being the label
  9153. // value, even if the value is empty.
  9154. func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
  9155. return attribute.String("k8s.namespace.label."+key, val)
  9156. }
  9157. // K8SNamespaceName returns an attribute KeyValue conforming to the
  9158. // "k8s.namespace.name" semantic conventions. It represents the name of the
  9159. // namespace that the pod is running in.
  9160. func K8SNamespaceName(val string) attribute.KeyValue {
  9161. return K8SNamespaceNameKey.String(val)
  9162. }
  9163. // K8SNodeAnnotation returns an attribute KeyValue conforming to the
  9164. // "k8s.node.annotation" semantic conventions. It represents the annotation
  9165. // placed on the Node, the `<key>` being the annotation name, the value being the
  9166. // annotation value, even if the value is empty.
  9167. func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
  9168. return attribute.String("k8s.node.annotation."+key, val)
  9169. }
  9170. // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
  9171. // semantic conventions. It represents the label placed on the Node, the `<key>`
  9172. // being the label name, the value being the label value, even if the value is
  9173. // empty.
  9174. func K8SNodeLabel(key string, val string) attribute.KeyValue {
  9175. return attribute.String("k8s.node.label."+key, val)
  9176. }
  9177. // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
  9178. // semantic conventions. It represents the name of the Node.
  9179. func K8SNodeName(val string) attribute.KeyValue {
  9180. return K8SNodeNameKey.String(val)
  9181. }
  9182. // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
  9183. // semantic conventions. It represents the UID of the Node.
  9184. func K8SNodeUID(val string) attribute.KeyValue {
  9185. return K8SNodeUIDKey.String(val)
  9186. }
  9187. // K8SPodAnnotation returns an attribute KeyValue conforming to the
  9188. // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
  9189. // on the Pod, the `<key>` being the annotation name, the value being the
  9190. // annotation value.
  9191. func K8SPodAnnotation(key string, val string) attribute.KeyValue {
  9192. return attribute.String("k8s.pod.annotation."+key, val)
  9193. }
  9194. // K8SPodHostname returns an attribute KeyValue conforming to the
  9195. // "k8s.pod.hostname" semantic conventions. It represents the specifies the
  9196. // hostname of the Pod.
  9197. func K8SPodHostname(val string) attribute.KeyValue {
  9198. return K8SPodHostnameKey.String(val)
  9199. }
  9200. // K8SPodIP returns an attribute KeyValue conforming to the "k8s.pod.ip" semantic
  9201. // conventions. It represents the IP address allocated to the Pod.
  9202. func K8SPodIP(val string) attribute.KeyValue {
  9203. return K8SPodIPKey.String(val)
  9204. }
  9205. // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
  9206. // semantic conventions. It represents the label placed on the Pod, the `<key>`
  9207. // being the label name, the value being the label value.
  9208. func K8SPodLabel(key string, val string) attribute.KeyValue {
  9209. return attribute.String("k8s.pod.label."+key, val)
  9210. }
  9211. // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
  9212. // semantic conventions. It represents the name of the Pod.
  9213. func K8SPodName(val string) attribute.KeyValue {
  9214. return K8SPodNameKey.String(val)
  9215. }
  9216. // K8SPodStartTime returns an attribute KeyValue conforming to the
  9217. // "k8s.pod.start_time" semantic conventions. It represents the start timestamp
  9218. // of the Pod.
  9219. func K8SPodStartTime(val string) attribute.KeyValue {
  9220. return K8SPodStartTimeKey.String(val)
  9221. }
  9222. // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
  9223. // semantic conventions. It represents the UID of the Pod.
  9224. func K8SPodUID(val string) attribute.KeyValue {
  9225. return K8SPodUIDKey.String(val)
  9226. }
  9227. // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
  9228. // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
  9229. // placed on the ReplicaSet, the `<key>` being the annotation name, the value
  9230. // being the annotation value, even if the value is empty.
  9231. func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
  9232. return attribute.String("k8s.replicaset.annotation."+key, val)
  9233. }
  9234. // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
  9235. // "k8s.replicaset.label" semantic conventions. It represents the label placed on
  9236. // the ReplicaSet, the `<key>` being the label name, the value being the label
  9237. // value, even if the value is empty.
  9238. func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
  9239. return attribute.String("k8s.replicaset.label."+key, val)
  9240. }
  9241. // K8SReplicaSetName returns an attribute KeyValue conforming to the
  9242. // "k8s.replicaset.name" semantic conventions. It represents the name of the
  9243. // ReplicaSet.
  9244. func K8SReplicaSetName(val string) attribute.KeyValue {
  9245. return K8SReplicaSetNameKey.String(val)
  9246. }
  9247. // K8SReplicaSetUID returns an attribute KeyValue conforming to the
  9248. // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
  9249. // ReplicaSet.
  9250. func K8SReplicaSetUID(val string) attribute.KeyValue {
  9251. return K8SReplicaSetUIDKey.String(val)
  9252. }
  9253. // K8SReplicationControllerName returns an attribute KeyValue conforming to the
  9254. // "k8s.replicationcontroller.name" semantic conventions. It represents the name
  9255. // of the replication controller.
  9256. func K8SReplicationControllerName(val string) attribute.KeyValue {
  9257. return K8SReplicationControllerNameKey.String(val)
  9258. }
  9259. // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
  9260. // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
  9261. // the replication controller.
  9262. func K8SReplicationControllerUID(val string) attribute.KeyValue {
  9263. return K8SReplicationControllerUIDKey.String(val)
  9264. }
  9265. // K8SResourceQuotaName returns an attribute KeyValue conforming to the
  9266. // "k8s.resourcequota.name" semantic conventions. It represents the name of the
  9267. // resource quota.
  9268. func K8SResourceQuotaName(val string) attribute.KeyValue {
  9269. return K8SResourceQuotaNameKey.String(val)
  9270. }
  9271. // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
  9272. // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
  9273. // of the K8s resource a resource quota defines.
  9274. func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
  9275. return K8SResourceQuotaResourceNameKey.String(val)
  9276. }
  9277. // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
  9278. // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
  9279. // resource quota.
  9280. func K8SResourceQuotaUID(val string) attribute.KeyValue {
  9281. return K8SResourceQuotaUIDKey.String(val)
  9282. }
  9283. // K8SServiceAnnotation returns an attribute KeyValue conforming to the
  9284. // "k8s.service.annotation" semantic conventions. It represents the annotation
  9285. // placed on the Service, the `<key>` being the annotation name, the value being
  9286. // the annotation value, even if the value is empty.
  9287. func K8SServiceAnnotation(key string, val string) attribute.KeyValue {
  9288. return attribute.String("k8s.service.annotation."+key, val)
  9289. }
  9290. // K8SServiceEndpointZone returns an attribute KeyValue conforming to the
  9291. // "k8s.service.endpoint.zone" semantic conventions. It represents the zone of
  9292. // the service endpoint.
  9293. func K8SServiceEndpointZone(val string) attribute.KeyValue {
  9294. return K8SServiceEndpointZoneKey.String(val)
  9295. }
  9296. // K8SServiceLabel returns an attribute KeyValue conforming to the
  9297. // "k8s.service.label" semantic conventions. It represents the label placed on
  9298. // the Service, the `<key>` being the label name, the value being the label
  9299. // value, even if the value is empty.
  9300. func K8SServiceLabel(key string, val string) attribute.KeyValue {
  9301. return attribute.String("k8s.service.label."+key, val)
  9302. }
  9303. // K8SServiceName returns an attribute KeyValue conforming to the
  9304. // "k8s.service.name" semantic conventions. It represents the name of the
  9305. // Service.
  9306. func K8SServiceName(val string) attribute.KeyValue {
  9307. return K8SServiceNameKey.String(val)
  9308. }
  9309. // K8SServicePublishNotReadyAddresses returns an attribute KeyValue conforming to
  9310. // the "k8s.service.publish_not_ready_addresses" semantic conventions. It
  9311. // represents the whether the Service publishes not-ready endpoints.
  9312. func K8SServicePublishNotReadyAddresses(val bool) attribute.KeyValue {
  9313. return K8SServicePublishNotReadyAddressesKey.Bool(val)
  9314. }
  9315. // K8SServiceSelector returns an attribute KeyValue conforming to the
  9316. // "k8s.service.selector" semantic conventions. It represents the selector
  9317. // key-value pair placed on the Service, the `<key>` being the selector key, the
  9318. // value being the selector value.
  9319. func K8SServiceSelector(key string, val string) attribute.KeyValue {
  9320. return attribute.String("k8s.service.selector."+key, val)
  9321. }
  9322. // K8SServiceTrafficDistribution returns an attribute KeyValue conforming to the
  9323. // "k8s.service.traffic_distribution" semantic conventions. It represents the
  9324. // traffic distribution policy for the Service.
  9325. func K8SServiceTrafficDistribution(val string) attribute.KeyValue {
  9326. return K8SServiceTrafficDistributionKey.String(val)
  9327. }
  9328. // K8SServiceUID returns an attribute KeyValue conforming to the
  9329. // "k8s.service.uid" semantic conventions. It represents the UID of the Service.
  9330. func K8SServiceUID(val string) attribute.KeyValue {
  9331. return K8SServiceUIDKey.String(val)
  9332. }
  9333. // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
  9334. // "k8s.statefulset.annotation" semantic conventions. It represents the
  9335. // annotation placed on the StatefulSet, the `<key>` being the annotation name,
  9336. // the value being the annotation value, even if the value is empty.
  9337. func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
  9338. return attribute.String("k8s.statefulset.annotation."+key, val)
  9339. }
  9340. // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
  9341. // "k8s.statefulset.label" semantic conventions. It represents the label placed
  9342. // on the StatefulSet, the `<key>` being the label name, the value being the
  9343. // label value, even if the value is empty.
  9344. func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
  9345. return attribute.String("k8s.statefulset.label."+key, val)
  9346. }
  9347. // K8SStatefulSetName returns an attribute KeyValue conforming to the
  9348. // "k8s.statefulset.name" semantic conventions. It represents the name of the
  9349. // StatefulSet.
  9350. func K8SStatefulSetName(val string) attribute.KeyValue {
  9351. return K8SStatefulSetNameKey.String(val)
  9352. }
  9353. // K8SStatefulSetUID returns an attribute KeyValue conforming to the
  9354. // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
  9355. // StatefulSet.
  9356. func K8SStatefulSetUID(val string) attribute.KeyValue {
  9357. return K8SStatefulSetUIDKey.String(val)
  9358. }
  9359. // K8SStorageclassName returns an attribute KeyValue conforming to the
  9360. // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
  9361. // [StorageClass] object.
  9362. //
  9363. // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
  9364. func K8SStorageclassName(val string) attribute.KeyValue {
  9365. return K8SStorageclassNameKey.String(val)
  9366. }
  9367. // K8SVolumeName returns an attribute KeyValue conforming to the
  9368. // "k8s.volume.name" semantic conventions. It represents the name of the K8s
  9369. // volume.
  9370. func K8SVolumeName(val string) attribute.KeyValue {
  9371. return K8SVolumeNameKey.String(val)
  9372. }
  9373. // Enum values for k8s.container.status.reason
  9374. var (
  9375. // The container is being created.
  9376. // Stability: development
  9377. K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
  9378. // The container is in a crash loop back off state.
  9379. // Stability: development
  9380. K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
  9381. // There was an error creating the container configuration.
  9382. // Stability: development
  9383. K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
  9384. // There was an error pulling the container image.
  9385. // Stability: development
  9386. K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
  9387. // The container image pull is in back off state.
  9388. // Stability: development
  9389. K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
  9390. // The container was killed due to out of memory.
  9391. // Stability: development
  9392. K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
  9393. // The container has completed execution.
  9394. // Stability: development
  9395. K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
  9396. // There was an error with the container.
  9397. // Stability: development
  9398. K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
  9399. // The container cannot run.
  9400. // Stability: development
  9401. K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
  9402. )
  9403. // Enum values for k8s.container.status.state
  9404. var (
  9405. // The container has terminated.
  9406. // Stability: development
  9407. K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
  9408. // The container is running.
  9409. // Stability: development
  9410. K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
  9411. // The container is waiting.
  9412. // Stability: development
  9413. K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
  9414. )
  9415. // Enum values for k8s.namespace.phase
  9416. var (
  9417. // Active namespace phase as described by [K8s API]
  9418. // Stability: development
  9419. //
  9420. // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
  9421. K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
  9422. // Terminating namespace phase as described by [K8s API]
  9423. // Stability: development
  9424. //
  9425. // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
  9426. K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
  9427. )
  9428. // Enum values for k8s.node.condition.status
  9429. var (
  9430. // condition_true
  9431. // Stability: development
  9432. K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
  9433. // condition_false
  9434. // Stability: development
  9435. K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
  9436. // condition_unknown
  9437. // Stability: development
  9438. K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
  9439. )
  9440. // Enum values for k8s.node.condition.type
  9441. var (
  9442. // The node is healthy and ready to accept pods
  9443. // Stability: development
  9444. K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
  9445. // Pressure exists on the disk size—that is, if the disk capacity is low
  9446. // Stability: development
  9447. K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
  9448. // Pressure exists on the node memory—that is, if the node memory is low
  9449. // Stability: development
  9450. K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
  9451. // Pressure exists on the processes—that is, if there are too many processes
  9452. // on the node
  9453. // Stability: development
  9454. K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
  9455. // The network for the node is not correctly configured
  9456. // Stability: development
  9457. K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
  9458. )
  9459. // Enum values for k8s.pod.status.phase
  9460. var (
  9461. // The pod has been accepted by the system, but one or more of the containers
  9462. // has not been started. This includes time before being bound to a node, as
  9463. // well as time spent pulling images onto the host.
  9464. //
  9465. // Stability: development
  9466. K8SPodStatusPhasePending = K8SPodStatusPhaseKey.String("Pending")
  9467. // The pod has been bound to a node and all of the containers have been started.
  9468. // At least one container is still running or is in the process of being
  9469. // restarted.
  9470. //
  9471. // Stability: development
  9472. K8SPodStatusPhaseRunning = K8SPodStatusPhaseKey.String("Running")
  9473. // All containers in the pod have voluntarily terminated with a container exit
  9474. // code of 0, and the system is not going to restart any of these containers.
  9475. //
  9476. // Stability: development
  9477. K8SPodStatusPhaseSucceeded = K8SPodStatusPhaseKey.String("Succeeded")
  9478. // All containers in the pod have terminated, and at least one container has
  9479. // terminated in a failure (exited with a non-zero exit code or was stopped by
  9480. // the system).
  9481. //
  9482. // Stability: development
  9483. K8SPodStatusPhaseFailed = K8SPodStatusPhaseKey.String("Failed")
  9484. // For some reason the state of the pod could not be obtained, typically due to
  9485. // an error in communicating with the host of the pod.
  9486. //
  9487. // Stability: development
  9488. K8SPodStatusPhaseUnknown = K8SPodStatusPhaseKey.String("Unknown")
  9489. )
  9490. // Enum values for k8s.pod.status.reason
  9491. var (
  9492. // The pod is evicted.
  9493. // Stability: development
  9494. K8SPodStatusReasonEvicted = K8SPodStatusReasonKey.String("Evicted")
  9495. // The pod is in a status because of its node affinity
  9496. // Stability: development
  9497. K8SPodStatusReasonNodeAffinity = K8SPodStatusReasonKey.String("NodeAffinity")
  9498. // The reason on a pod when its state cannot be confirmed as kubelet is
  9499. // unresponsive on the node it is (was) running.
  9500. //
  9501. // Stability: development
  9502. K8SPodStatusReasonNodeLost = K8SPodStatusReasonKey.String("NodeLost")
  9503. // The node is shutdown
  9504. // Stability: development
  9505. K8SPodStatusReasonShutdown = K8SPodStatusReasonKey.String("Shutdown")
  9506. // The pod was rejected admission to the node because of an error during
  9507. // admission that could not be categorized.
  9508. //
  9509. // Stability: development
  9510. K8SPodStatusReasonUnexpectedAdmissionError = K8SPodStatusReasonKey.String("UnexpectedAdmissionError")
  9511. )
  9512. // Enum values for k8s.service.endpoint.address_type
  9513. var (
  9514. // IPv4 address type
  9515. // Stability: development
  9516. K8SServiceEndpointAddressTypeIPv4 = K8SServiceEndpointAddressTypeKey.String("IPv4")
  9517. // IPv6 address type
  9518. // Stability: development
  9519. K8SServiceEndpointAddressTypeIPv6 = K8SServiceEndpointAddressTypeKey.String("IPv6")
  9520. // FQDN address type
  9521. // Stability: development
  9522. K8SServiceEndpointAddressTypeFqdn = K8SServiceEndpointAddressTypeKey.String("FQDN")
  9523. )
  9524. // Enum values for k8s.service.endpoint.condition
  9525. var (
  9526. // The endpoint is ready to receive new connections.
  9527. // Stability: development
  9528. K8SServiceEndpointConditionReady = K8SServiceEndpointConditionKey.String("ready")
  9529. // The endpoint is currently handling traffic.
  9530. // Stability: development
  9531. K8SServiceEndpointConditionServing = K8SServiceEndpointConditionKey.String("serving")
  9532. // The endpoint is in the process of shutting down.
  9533. // Stability: development
  9534. K8SServiceEndpointConditionTerminating = K8SServiceEndpointConditionKey.String("terminating")
  9535. )
  9536. // Enum values for k8s.service.type
  9537. var (
  9538. // ClusterIP service type
  9539. // Stability: development
  9540. K8SServiceTypeClusterIP = K8SServiceTypeKey.String("ClusterIP")
  9541. // NodePort service type
  9542. // Stability: development
  9543. K8SServiceTypeNodePort = K8SServiceTypeKey.String("NodePort")
  9544. // LoadBalancer service type
  9545. // Stability: development
  9546. K8SServiceTypeLoadBalancer = K8SServiceTypeKey.String("LoadBalancer")
  9547. // ExternalName service type
  9548. // Stability: development
  9549. K8SServiceTypeExternalName = K8SServiceTypeKey.String("ExternalName")
  9550. )
  9551. // Enum values for k8s.volume.type
  9552. var (
  9553. // A [persistentVolumeClaim] volume
  9554. // Stability: development
  9555. //
  9556. // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
  9557. K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
  9558. // A [configMap] volume
  9559. // Stability: development
  9560. //
  9561. // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
  9562. K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
  9563. // A [downwardAPI] volume
  9564. // Stability: development
  9565. //
  9566. // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
  9567. K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
  9568. // An [emptyDir] volume
  9569. // Stability: development
  9570. //
  9571. // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
  9572. K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
  9573. // A [secret] volume
  9574. // Stability: development
  9575. //
  9576. // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
  9577. K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
  9578. // A [local] volume
  9579. // Stability: development
  9580. //
  9581. // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
  9582. K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
  9583. )
  9584. // Namespace: log
  9585. const (
  9586. // LogFileNameKey is the attribute Key conforming to the "log.file.name"
  9587. // semantic conventions. It represents the basename of the file.
  9588. //
  9589. // Type: string
  9590. // RequirementLevel: Recommended
  9591. // Stability: Development
  9592. //
  9593. // Examples: "audit.log"
  9594. LogFileNameKey = attribute.Key("log.file.name")
  9595. // LogFileNameResolvedKey is the attribute Key conforming to the
  9596. // "log.file.name_resolved" semantic conventions. It represents the basename of
  9597. // the file, with symlinks resolved.
  9598. //
  9599. // Type: string
  9600. // RequirementLevel: Recommended
  9601. // Stability: Development
  9602. //
  9603. // Examples: "uuid.log"
  9604. LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
  9605. // LogFilePathKey is the attribute Key conforming to the "log.file.path"
  9606. // semantic conventions. It represents the full path to the file.
  9607. //
  9608. // Type: string
  9609. // RequirementLevel: Recommended
  9610. // Stability: Development
  9611. //
  9612. // Examples: "/var/log/mysql/audit.log"
  9613. LogFilePathKey = attribute.Key("log.file.path")
  9614. // LogFilePathResolvedKey is the attribute Key conforming to the
  9615. // "log.file.path_resolved" semantic conventions. It represents the full path to
  9616. // the file, with symlinks resolved.
  9617. //
  9618. // Type: string
  9619. // RequirementLevel: Recommended
  9620. // Stability: Development
  9621. //
  9622. // Examples: "/var/lib/docker/uuid.log"
  9623. LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
  9624. // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
  9625. // conventions. It represents the stream associated with the log. See below for
  9626. // a list of well-known values.
  9627. //
  9628. // Type: Enum
  9629. // RequirementLevel: Recommended
  9630. // Stability: Development
  9631. //
  9632. // Examples:
  9633. LogIostreamKey = attribute.Key("log.iostream")
  9634. // LogRecordOriginalKey is the attribute Key conforming to the
  9635. // "log.record.original" semantic conventions. It represents the complete
  9636. // original Log Record.
  9637. //
  9638. // Type: string
  9639. // RequirementLevel: Recommended
  9640. // Stability: Development
  9641. //
  9642. // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
  9643. // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
  9644. // Note: This value MAY be added when processing a Log Record which was
  9645. // originally transmitted as a string or equivalent data type AND the Body field
  9646. // of the Log Record does not contain the same value. (e.g. a syslog or a log
  9647. // record read from a file.)
  9648. LogRecordOriginalKey = attribute.Key("log.record.original")
  9649. // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
  9650. // semantic conventions. It represents a unique identifier for the Log Record.
  9651. //
  9652. // Type: string
  9653. // RequirementLevel: Recommended
  9654. // Stability: Development
  9655. //
  9656. // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
  9657. // Note: If an id is provided, other log records with the same id will be
  9658. // considered duplicates and can be removed safely. This means, that two
  9659. // distinguishable log records MUST have different values.
  9660. // The id MAY be an
  9661. // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
  9662. // identifiers (e.g. UUID) may be used as needed.
  9663. //
  9664. // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
  9665. LogRecordUIDKey = attribute.Key("log.record.uid")
  9666. )
  9667. // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
  9668. // semantic conventions. It represents the basename of the file.
  9669. func LogFileName(val string) attribute.KeyValue {
  9670. return LogFileNameKey.String(val)
  9671. }
  9672. // LogFileNameResolved returns an attribute KeyValue conforming to the
  9673. // "log.file.name_resolved" semantic conventions. It represents the basename of
  9674. // the file, with symlinks resolved.
  9675. func LogFileNameResolved(val string) attribute.KeyValue {
  9676. return LogFileNameResolvedKey.String(val)
  9677. }
  9678. // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
  9679. // semantic conventions. It represents the full path to the file.
  9680. func LogFilePath(val string) attribute.KeyValue {
  9681. return LogFilePathKey.String(val)
  9682. }
  9683. // LogFilePathResolved returns an attribute KeyValue conforming to the
  9684. // "log.file.path_resolved" semantic conventions. It represents the full path to
  9685. // the file, with symlinks resolved.
  9686. func LogFilePathResolved(val string) attribute.KeyValue {
  9687. return LogFilePathResolvedKey.String(val)
  9688. }
  9689. // LogRecordOriginal returns an attribute KeyValue conforming to the
  9690. // "log.record.original" semantic conventions. It represents the complete
  9691. // original Log Record.
  9692. func LogRecordOriginal(val string) attribute.KeyValue {
  9693. return LogRecordOriginalKey.String(val)
  9694. }
  9695. // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
  9696. // semantic conventions. It represents a unique identifier for the Log Record.
  9697. func LogRecordUID(val string) attribute.KeyValue {
  9698. return LogRecordUIDKey.String(val)
  9699. }
  9700. // Enum values for log.iostream
  9701. var (
  9702. // Logs from stdout stream
  9703. // Stability: development
  9704. LogIostreamStdout = LogIostreamKey.String("stdout")
  9705. // Events from stderr stream
  9706. // Stability: development
  9707. LogIostreamStderr = LogIostreamKey.String("stderr")
  9708. )
  9709. // Namespace: mainframe
  9710. const (
  9711. // MainframeLparNameKey is the attribute Key conforming to the
  9712. // "mainframe.lpar.name" semantic conventions. It represents the name of the
  9713. // logical partition that hosts a systems with a mainframe operating system.
  9714. //
  9715. // Type: string
  9716. // RequirementLevel: Recommended
  9717. // Stability: Development
  9718. //
  9719. // Examples: "LPAR01"
  9720. MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
  9721. )
  9722. // MainframeLparName returns an attribute KeyValue conforming to the
  9723. // "mainframe.lpar.name" semantic conventions. It represents the name of the
  9724. // logical partition that hosts a systems with a mainframe operating system.
  9725. func MainframeLparName(val string) attribute.KeyValue {
  9726. return MainframeLparNameKey.String(val)
  9727. }
  9728. // Namespace: mcp
  9729. const (
  9730. // McpMethodNameKey is the attribute Key conforming to the "mcp.method.name"
  9731. // semantic conventions. It represents the name of the request or notification
  9732. // method.
  9733. //
  9734. // Type: Enum
  9735. // RequirementLevel: Recommended
  9736. // Stability: Development
  9737. //
  9738. // Examples:
  9739. McpMethodNameKey = attribute.Key("mcp.method.name")
  9740. // McpProtocolVersionKey is the attribute Key conforming to the
  9741. // "mcp.protocol.version" semantic conventions. It represents the [version] of
  9742. // the Model Context Protocol used.
  9743. //
  9744. // Type: string
  9745. // RequirementLevel: Recommended
  9746. // Stability: Development
  9747. //
  9748. // Examples: "2025-06-18"
  9749. //
  9750. // [version]: https://modelcontextprotocol.io/specification/versioning
  9751. McpProtocolVersionKey = attribute.Key("mcp.protocol.version")
  9752. // McpResourceURIKey is the attribute Key conforming to the "mcp.resource.uri"
  9753. // semantic conventions. It represents the value of the resource uri.
  9754. //
  9755. // Type: string
  9756. // RequirementLevel: Recommended
  9757. // Stability: Development
  9758. //
  9759. // Examples: "postgres://database/customers/schema",
  9760. // "file:///home/user/documents/report.pdf"
  9761. // Note: This is a URI of the resource provided in the following requests or
  9762. // notifications: `resources/read`, `resources/subscribe`,
  9763. // `resources/unsubscribe`, or `notifications/resources/updated`.
  9764. McpResourceURIKey = attribute.Key("mcp.resource.uri")
  9765. // McpSessionIDKey is the attribute Key conforming to the "mcp.session.id"
  9766. // semantic conventions. It represents the identifies [MCP session].
  9767. //
  9768. // Type: string
  9769. // RequirementLevel: Recommended
  9770. // Stability: Development
  9771. //
  9772. // Examples: "191c4850af6c49e08843a3f6c80e5046"
  9773. //
  9774. // [MCP session]: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
  9775. McpSessionIDKey = attribute.Key("mcp.session.id")
  9776. )
  9777. // McpProtocolVersion returns an attribute KeyValue conforming to the
  9778. // "mcp.protocol.version" semantic conventions. It represents the [version] of
  9779. // the Model Context Protocol used.
  9780. //
  9781. // [version]: https://modelcontextprotocol.io/specification/versioning
  9782. func McpProtocolVersion(val string) attribute.KeyValue {
  9783. return McpProtocolVersionKey.String(val)
  9784. }
  9785. // McpResourceURI returns an attribute KeyValue conforming to the
  9786. // "mcp.resource.uri" semantic conventions. It represents the value of the
  9787. // resource uri.
  9788. func McpResourceURI(val string) attribute.KeyValue {
  9789. return McpResourceURIKey.String(val)
  9790. }
  9791. // McpSessionID returns an attribute KeyValue conforming to the "mcp.session.id"
  9792. // semantic conventions. It represents the identifies [MCP session].
  9793. //
  9794. // [MCP session]: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
  9795. func McpSessionID(val string) attribute.KeyValue {
  9796. return McpSessionIDKey.String(val)
  9797. }
  9798. // Enum values for mcp.method.name
  9799. var (
  9800. // Notification cancelling a previously-issued request.
  9801. //
  9802. // Stability: development
  9803. McpMethodNameNotificationsCancelled = McpMethodNameKey.String("notifications/cancelled")
  9804. // Request to initialize the MCP client.
  9805. //
  9806. // Stability: development
  9807. McpMethodNameInitialize = McpMethodNameKey.String("initialize")
  9808. // Notification indicating that the MCP client has been initialized.
  9809. //
  9810. // Stability: development
  9811. McpMethodNameNotificationsInitialized = McpMethodNameKey.String("notifications/initialized")
  9812. // Notification indicating the progress for a long-running operation.
  9813. //
  9814. // Stability: development
  9815. McpMethodNameNotificationsProgress = McpMethodNameKey.String("notifications/progress")
  9816. // Request to check that the other party is still alive.
  9817. //
  9818. // Stability: development
  9819. McpMethodNamePing = McpMethodNameKey.String("ping")
  9820. // Request to list resources available on server.
  9821. //
  9822. // Stability: development
  9823. McpMethodNameResourcesList = McpMethodNameKey.String("resources/list")
  9824. // Request to list resource templates available on server.
  9825. //
  9826. // Stability: development
  9827. McpMethodNameResourcesTemplatesList = McpMethodNameKey.String("resources/templates/list")
  9828. // Request to read a resource.
  9829. //
  9830. // Stability: development
  9831. McpMethodNameResourcesRead = McpMethodNameKey.String("resources/read")
  9832. // Notification indicating that the list of resources has changed.
  9833. //
  9834. // Stability: development
  9835. McpMethodNameNotificationsResourcesListChanged = McpMethodNameKey.String("notifications/resources/list_changed")
  9836. // Request to subscribe to a resource.
  9837. //
  9838. // Stability: development
  9839. McpMethodNameResourcesSubscribe = McpMethodNameKey.String("resources/subscribe")
  9840. // Request to unsubscribe from resource updates.
  9841. //
  9842. // Stability: development
  9843. McpMethodNameResourcesUnsubscribe = McpMethodNameKey.String("resources/unsubscribe")
  9844. // Notification indicating that a resource has been updated.
  9845. //
  9846. // Stability: development
  9847. McpMethodNameNotificationsResourcesUpdated = McpMethodNameKey.String("notifications/resources/updated")
  9848. // Request to list prompts available on server.
  9849. //
  9850. // Stability: development
  9851. McpMethodNamePromptsList = McpMethodNameKey.String("prompts/list")
  9852. // Request to get a prompt.
  9853. //
  9854. // Stability: development
  9855. McpMethodNamePromptsGet = McpMethodNameKey.String("prompts/get")
  9856. // Notification indicating that the list of prompts has changed.
  9857. //
  9858. // Stability: development
  9859. McpMethodNameNotificationsPromptsListChanged = McpMethodNameKey.String("notifications/prompts/list_changed")
  9860. // Request to list tools available on server.
  9861. //
  9862. // Stability: development
  9863. McpMethodNameToolsList = McpMethodNameKey.String("tools/list")
  9864. // Request to call a tool.
  9865. //
  9866. // Stability: development
  9867. McpMethodNameToolsCall = McpMethodNameKey.String("tools/call")
  9868. // Notification indicating that the list of tools has changed.
  9869. //
  9870. // Stability: development
  9871. McpMethodNameNotificationsToolsListChanged = McpMethodNameKey.String("notifications/tools/list_changed")
  9872. // Request to set the logging level.
  9873. //
  9874. // Stability: development
  9875. McpMethodNameLoggingSetLevel = McpMethodNameKey.String("logging/setLevel")
  9876. // Notification indicating that a message has been received.
  9877. //
  9878. // Stability: development
  9879. McpMethodNameNotificationsMessage = McpMethodNameKey.String("notifications/message")
  9880. // Request to create a sampling message.
  9881. //
  9882. // Stability: development
  9883. McpMethodNameSamplingCreateMessage = McpMethodNameKey.String("sampling/createMessage")
  9884. // Request to complete a prompt.
  9885. //
  9886. // Stability: development
  9887. McpMethodNameCompletionComplete = McpMethodNameKey.String("completion/complete")
  9888. // Request to list roots available on server.
  9889. //
  9890. // Stability: development
  9891. McpMethodNameRootsList = McpMethodNameKey.String("roots/list")
  9892. // Notification indicating that the list of roots has changed.
  9893. //
  9894. // Stability: development
  9895. McpMethodNameNotificationsRootsListChanged = McpMethodNameKey.String("notifications/roots/list_changed")
  9896. // Request from the server to elicit additional information from the user via
  9897. // the client
  9898. //
  9899. // Stability: development
  9900. McpMethodNameElicitationCreate = McpMethodNameKey.String("elicitation/create")
  9901. )
  9902. // Namespace: messaging
  9903. const (
  9904. // MessagingBatchMessageCountKey is the attribute Key conforming to the
  9905. // "messaging.batch.message_count" semantic conventions. It represents the
  9906. // number of messages sent, received, or processed in the scope of the batching
  9907. // operation.
  9908. //
  9909. // Type: int
  9910. // RequirementLevel: Recommended
  9911. // Stability: Development
  9912. //
  9913. // Examples: 0, 1, 2
  9914. // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
  9915. // spans that operate with a single message. When a messaging client library
  9916. // supports both batch and single-message API for the same operation,
  9917. // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
  9918. // and SHOULD NOT use it for single-message APIs.
  9919. MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
  9920. // MessagingClientIDKey is the attribute Key conforming to the
  9921. // "messaging.client.id" semantic conventions. It represents a unique identifier
  9922. // for the client that consumes or produces a message.
  9923. //
  9924. // Type: string
  9925. // RequirementLevel: Recommended
  9926. // Stability: Development
  9927. //
  9928. // Examples: "client-5", "myhost@8742@s8083jm"
  9929. MessagingClientIDKey = attribute.Key("messaging.client.id")
  9930. // MessagingConsumerGroupNameKey is the attribute Key conforming to the
  9931. // "messaging.consumer.group.name" semantic conventions. It represents the name
  9932. // of the consumer group with which a consumer is associated.
  9933. //
  9934. // Type: string
  9935. // RequirementLevel: Recommended
  9936. // Stability: Development
  9937. //
  9938. // Examples: "my-group", "indexer"
  9939. // Note: Semantic conventions for individual messaging systems SHOULD document
  9940. // whether `messaging.consumer.group.name` is applicable and what it means in
  9941. // the context of that system.
  9942. MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
  9943. // MessagingDestinationAnonymousKey is the attribute Key conforming to the
  9944. // "messaging.destination.anonymous" semantic conventions. It represents a
  9945. // boolean that is true if the message destination is anonymous (could be
  9946. // unnamed or have auto-generated name).
  9947. //
  9948. // Type: boolean
  9949. // RequirementLevel: Recommended
  9950. // Stability: Development
  9951. //
  9952. // Examples:
  9953. MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
  9954. // MessagingDestinationNameKey is the attribute Key conforming to the
  9955. // "messaging.destination.name" semantic conventions. It represents the message
  9956. // destination name.
  9957. //
  9958. // Type: string
  9959. // RequirementLevel: Recommended
  9960. // Stability: Development
  9961. //
  9962. // Examples: "MyQueue", "MyTopic"
  9963. // Note: Destination name SHOULD uniquely identify a specific queue, topic or
  9964. // other entity within the broker. If
  9965. // the broker doesn't have such notion, the destination name SHOULD uniquely
  9966. // identify the broker.
  9967. MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
  9968. // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
  9969. // "messaging.destination.partition.id" semantic conventions. It represents the
  9970. // identifier of the partition messages are sent to or received from, unique
  9971. // within the `messaging.destination.name`.
  9972. //
  9973. // Type: string
  9974. // RequirementLevel: Recommended
  9975. // Stability: Development
  9976. //
  9977. // Examples: 1
  9978. MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
  9979. // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
  9980. // the "messaging.destination.subscription.name" semantic conventions. It
  9981. // represents the name of the destination subscription from which a message is
  9982. // consumed.
  9983. //
  9984. // Type: string
  9985. // RequirementLevel: Recommended
  9986. // Stability: Development
  9987. //
  9988. // Examples: "subscription-a"
  9989. // Note: Semantic conventions for individual messaging systems SHOULD document
  9990. // whether `messaging.destination.subscription.name` is applicable and what it
  9991. // means in the context of that system.
  9992. MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
  9993. // MessagingDestinationTemplateKey is the attribute Key conforming to the
  9994. // "messaging.destination.template" semantic conventions. It represents the low
  9995. // cardinality representation of the messaging destination name.
  9996. //
  9997. // Type: string
  9998. // RequirementLevel: Recommended
  9999. // Stability: Development
  10000. //
  10001. // Examples: "/customers/{customerId}"
  10002. // Note: Destination names could be constructed from templates. An example would
  10003. // be a destination name involving a user name or product id. Although the
  10004. // destination name in this case is of high cardinality, the underlying template
  10005. // is of low cardinality and can be effectively used for grouping and
  10006. // aggregation.
  10007. MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
  10008. // MessagingDestinationTemporaryKey is the attribute Key conforming to the
  10009. // "messaging.destination.temporary" semantic conventions. It represents a
  10010. // boolean that is true if the message destination is temporary and might not
  10011. // exist anymore after messages are processed.
  10012. //
  10013. // Type: boolean
  10014. // RequirementLevel: Recommended
  10015. // Stability: Development
  10016. //
  10017. // Examples:
  10018. MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
  10019. // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
  10020. // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
  10021. // represents the UTC epoch seconds at which the message has been accepted and
  10022. // stored in the entity.
  10023. //
  10024. // Type: int
  10025. // RequirementLevel: Recommended
  10026. // Stability: Development
  10027. MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
  10028. // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
  10029. // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
  10030. // represents the ack deadline in seconds set for the modify ack deadline
  10031. // request.
  10032. //
  10033. // Type: int
  10034. // RequirementLevel: Recommended
  10035. // Stability: Development
  10036. MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
  10037. // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
  10038. // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
  10039. // ack id for a given message.
  10040. //
  10041. // Type: string
  10042. // RequirementLevel: Recommended
  10043. // Stability: Development
  10044. //
  10045. // Examples: ack_id
  10046. MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
  10047. // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
  10048. // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
  10049. // It represents the delivery attempt for a given message.
  10050. //
  10051. // Type: int
  10052. // RequirementLevel: Recommended
  10053. // Stability: Development
  10054. MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
  10055. // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
  10056. // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
  10057. // represents the ordering key for a given message. If the attribute is not
  10058. // present, the message does not have an ordering key.
  10059. //
  10060. // Type: string
  10061. // RequirementLevel: Recommended
  10062. // Stability: Development
  10063. //
  10064. // Examples: ordering_key
  10065. MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
  10066. // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
  10067. // "messaging.kafka.message.key" semantic conventions. It represents the message
  10068. // keys in Kafka are used for grouping alike messages to ensure they're
  10069. // processed on the same partition. They differ from `messaging.message.id` in
  10070. // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
  10071. //
  10072. // Type: string
  10073. // RequirementLevel: Recommended
  10074. // Stability: Development
  10075. //
  10076. // Examples: myKey
  10077. // Note: If the key type is not string, it's string representation has to be
  10078. // supplied for the attribute. If the key has no unambiguous, canonical string
  10079. // form, don't include its value.
  10080. MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
  10081. // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
  10082. // "messaging.kafka.message.tombstone" semantic conventions. It represents a
  10083. // boolean that is true if the message is a tombstone.
  10084. //
  10085. // Type: boolean
  10086. // RequirementLevel: Recommended
  10087. // Stability: Development
  10088. //
  10089. // Examples:
  10090. MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
  10091. // MessagingKafkaOffsetKey is the attribute Key conforming to the
  10092. // "messaging.kafka.offset" semantic conventions. It represents the offset of a
  10093. // record in the corresponding Kafka partition.
  10094. //
  10095. // Type: int
  10096. // RequirementLevel: Recommended
  10097. // Stability: Development
  10098. MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
  10099. // MessagingMessageBodySizeKey is the attribute Key conforming to the
  10100. // "messaging.message.body.size" semantic conventions. It represents the size of
  10101. // the message body in bytes.
  10102. //
  10103. // Type: int
  10104. // RequirementLevel: Recommended
  10105. // Stability: Development
  10106. //
  10107. // Note: This can refer to both the compressed or uncompressed body size. If
  10108. // both sizes are known, the uncompressed
  10109. // body size should be used.
  10110. MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
  10111. // MessagingMessageConversationIDKey is the attribute Key conforming to the
  10112. // "messaging.message.conversation_id" semantic conventions. It represents the
  10113. // conversation ID identifying the conversation to which the message belongs,
  10114. // represented as a string. Sometimes called "Correlation ID".
  10115. //
  10116. // Type: string
  10117. // RequirementLevel: Recommended
  10118. // Stability: Development
  10119. //
  10120. // Examples: MyConversationId
  10121. MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
  10122. // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
  10123. // "messaging.message.envelope.size" semantic conventions. It represents the
  10124. // size of the message body and metadata in bytes.
  10125. //
  10126. // Type: int
  10127. // RequirementLevel: Recommended
  10128. // Stability: Development
  10129. //
  10130. // Note: This can refer to both the compressed or uncompressed size. If both
  10131. // sizes are known, the uncompressed
  10132. // size should be used.
  10133. MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
  10134. // MessagingMessageIDKey is the attribute Key conforming to the
  10135. // "messaging.message.id" semantic conventions. It represents a value used by
  10136. // the messaging system as an identifier for the message, represented as a
  10137. // string.
  10138. //
  10139. // Type: string
  10140. // RequirementLevel: Recommended
  10141. // Stability: Development
  10142. //
  10143. // Examples: 452a7c7c7c7048c2f887f61572b18fc2
  10144. MessagingMessageIDKey = attribute.Key("messaging.message.id")
  10145. // MessagingOperationNameKey is the attribute Key conforming to the
  10146. // "messaging.operation.name" semantic conventions. It represents the
  10147. // system-specific name of the messaging operation.
  10148. //
  10149. // Type: string
  10150. // RequirementLevel: Recommended
  10151. // Stability: Development
  10152. //
  10153. // Examples: "ack", "nack", "send"
  10154. MessagingOperationNameKey = attribute.Key("messaging.operation.name")
  10155. // MessagingOperationTypeKey is the attribute Key conforming to the
  10156. // "messaging.operation.type" semantic conventions. It represents a string
  10157. // identifying the type of the messaging operation.
  10158. //
  10159. // Type: Enum
  10160. // RequirementLevel: Recommended
  10161. // Stability: Development
  10162. //
  10163. // Examples:
  10164. // Note: If a custom value is used, it MUST be of low cardinality.
  10165. MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
  10166. // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
  10167. // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
  10168. // represents the rabbitMQ message routing key.
  10169. //
  10170. // Type: string
  10171. // RequirementLevel: Recommended
  10172. // Stability: Development
  10173. //
  10174. // Examples: myKey
  10175. MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
  10176. // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
  10177. // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
  10178. // the rabbitMQ message delivery tag.
  10179. //
  10180. // Type: int
  10181. // RequirementLevel: Recommended
  10182. // Stability: Development
  10183. MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
  10184. // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
  10185. // "messaging.rocketmq.consumption_model" semantic conventions. It represents
  10186. // the model of message consumption. This only applies to consumer spans.
  10187. //
  10188. // Type: Enum
  10189. // RequirementLevel: Recommended
  10190. // Stability: Development
  10191. //
  10192. // Examples:
  10193. MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
  10194. // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
  10195. // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
  10196. // represents the delay time level for delay message, which determines the
  10197. // message delay time.
  10198. //
  10199. // Type: int
  10200. // RequirementLevel: Recommended
  10201. // Stability: Development
  10202. MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
  10203. // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
  10204. // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
  10205. // It represents the timestamp in milliseconds that the delay message is
  10206. // expected to be delivered to consumer.
  10207. //
  10208. // Type: int
  10209. // RequirementLevel: Recommended
  10210. // Stability: Development
  10211. MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
  10212. // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
  10213. // "messaging.rocketmq.message.group" semantic conventions. It represents the it
  10214. // is essential for FIFO message. Messages that belong to the same message group
  10215. // are always processed one by one within the same consumer group.
  10216. //
  10217. // Type: string
  10218. // RequirementLevel: Recommended
  10219. // Stability: Development
  10220. //
  10221. // Examples: myMessageGroup
  10222. MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
  10223. // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
  10224. // "messaging.rocketmq.message.keys" semantic conventions. It represents the
  10225. // key(s) of message, another way to mark message besides message id.
  10226. //
  10227. // Type: string[]
  10228. // RequirementLevel: Recommended
  10229. // Stability: Development
  10230. //
  10231. // Examples: "keyA", "keyB"
  10232. MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
  10233. // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
  10234. // "messaging.rocketmq.message.tag" semantic conventions. It represents the
  10235. // secondary classifier of message besides topic.
  10236. //
  10237. // Type: string
  10238. // RequirementLevel: Recommended
  10239. // Stability: Development
  10240. //
  10241. // Examples: tagA
  10242. MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
  10243. // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
  10244. // "messaging.rocketmq.message.type" semantic conventions. It represents the
  10245. // type of message.
  10246. //
  10247. // Type: Enum
  10248. // RequirementLevel: Recommended
  10249. // Stability: Development
  10250. //
  10251. // Examples:
  10252. MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
  10253. // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
  10254. // "messaging.rocketmq.namespace" semantic conventions. It represents the
  10255. // namespace of RocketMQ resources, resources in different namespaces are
  10256. // individual.
  10257. //
  10258. // Type: string
  10259. // RequirementLevel: Recommended
  10260. // Stability: Development
  10261. //
  10262. // Examples: myNamespace
  10263. MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
  10264. // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
  10265. // the "messaging.servicebus.disposition_status" semantic conventions. It
  10266. // represents the describes the [settlement type].
  10267. //
  10268. // Type: Enum
  10269. // RequirementLevel: Recommended
  10270. // Stability: Development
  10271. //
  10272. // Examples:
  10273. //
  10274. // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
  10275. MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
  10276. // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
  10277. // the "messaging.servicebus.message.delivery_count" semantic conventions. It
  10278. // represents the number of deliveries that have been attempted for this
  10279. // message.
  10280. //
  10281. // Type: int
  10282. // RequirementLevel: Recommended
  10283. // Stability: Development
  10284. MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
  10285. // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
  10286. // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
  10287. // represents the UTC epoch seconds at which the message has been accepted and
  10288. // stored in the entity.
  10289. //
  10290. // Type: int
  10291. // RequirementLevel: Recommended
  10292. // Stability: Development
  10293. MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
  10294. // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
  10295. // semantic conventions. It represents the messaging system as identified by the
  10296. // client instrumentation.
  10297. //
  10298. // Type: Enum
  10299. // RequirementLevel: Recommended
  10300. // Stability: Development
  10301. //
  10302. // Examples:
  10303. // Note: The actual messaging system may differ from the one known by the
  10304. // client. For example, when using Kafka client libraries to communicate with
  10305. // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
  10306. // instrumentation's best knowledge.
  10307. MessagingSystemKey = attribute.Key("messaging.system")
  10308. )
  10309. // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
  10310. // "messaging.batch.message_count" semantic conventions. It represents the number
  10311. // of messages sent, received, or processed in the scope of the batching
  10312. // operation.
  10313. func MessagingBatchMessageCount(val int) attribute.KeyValue {
  10314. return MessagingBatchMessageCountKey.Int(val)
  10315. }
  10316. // MessagingClientID returns an attribute KeyValue conforming to the
  10317. // "messaging.client.id" semantic conventions. It represents a unique identifier
  10318. // for the client that consumes or produces a message.
  10319. func MessagingClientID(val string) attribute.KeyValue {
  10320. return MessagingClientIDKey.String(val)
  10321. }
  10322. // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
  10323. // "messaging.consumer.group.name" semantic conventions. It represents the name
  10324. // of the consumer group with which a consumer is associated.
  10325. func MessagingConsumerGroupName(val string) attribute.KeyValue {
  10326. return MessagingConsumerGroupNameKey.String(val)
  10327. }
  10328. // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
  10329. // "messaging.destination.anonymous" semantic conventions. It represents a
  10330. // boolean that is true if the message destination is anonymous (could be unnamed
  10331. // or have auto-generated name).
  10332. func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
  10333. return MessagingDestinationAnonymousKey.Bool(val)
  10334. }
  10335. // MessagingDestinationName returns an attribute KeyValue conforming to the
  10336. // "messaging.destination.name" semantic conventions. It represents the message
  10337. // destination name.
  10338. func MessagingDestinationName(val string) attribute.KeyValue {
  10339. return MessagingDestinationNameKey.String(val)
  10340. }
  10341. // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
  10342. // the "messaging.destination.partition.id" semantic conventions. It represents
  10343. // the identifier of the partition messages are sent to or received from, unique
  10344. // within the `messaging.destination.name`.
  10345. func MessagingDestinationPartitionID(val string) attribute.KeyValue {
  10346. return MessagingDestinationPartitionIDKey.String(val)
  10347. }
  10348. // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
  10349. // to the "messaging.destination.subscription.name" semantic conventions. It
  10350. // represents the name of the destination subscription from which a message is
  10351. // consumed.
  10352. func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
  10353. return MessagingDestinationSubscriptionNameKey.String(val)
  10354. }
  10355. // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
  10356. // "messaging.destination.template" semantic conventions. It represents the low
  10357. // cardinality representation of the messaging destination name.
  10358. func MessagingDestinationTemplate(val string) attribute.KeyValue {
  10359. return MessagingDestinationTemplateKey.String(val)
  10360. }
  10361. // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
  10362. // "messaging.destination.temporary" semantic conventions. It represents a
  10363. // boolean that is true if the message destination is temporary and might not
  10364. // exist anymore after messages are processed.
  10365. func MessagingDestinationTemporary(val bool) attribute.KeyValue {
  10366. return MessagingDestinationTemporaryKey.Bool(val)
  10367. }
  10368. // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
  10369. // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
  10370. // represents the UTC epoch seconds at which the message has been accepted and
  10371. // stored in the entity.
  10372. func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
  10373. return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
  10374. }
  10375. // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
  10376. // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
  10377. // represents the ack deadline in seconds set for the modify ack deadline
  10378. // request.
  10379. func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
  10380. return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
  10381. }
  10382. // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
  10383. // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
  10384. // ack id for a given message.
  10385. func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
  10386. return MessagingGCPPubSubMessageAckIDKey.String(val)
  10387. }
  10388. // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
  10389. // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
  10390. // conventions. It represents the delivery attempt for a given message.
  10391. func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
  10392. return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
  10393. }
  10394. // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
  10395. // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
  10396. // represents the ordering key for a given message. If the attribute is not
  10397. // present, the message does not have an ordering key.
  10398. func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
  10399. return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
  10400. }
  10401. // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
  10402. // "messaging.kafka.message.key" semantic conventions. It represents the message
  10403. // keys in Kafka are used for grouping alike messages to ensure they're processed
  10404. // on the same partition. They differ from `messaging.message.id` in that they're
  10405. // not unique. If the key is `null`, the attribute MUST NOT be set.
  10406. func MessagingKafkaMessageKey(val string) attribute.KeyValue {
  10407. return MessagingKafkaMessageKeyKey.String(val)
  10408. }
  10409. // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
  10410. // "messaging.kafka.message.tombstone" semantic conventions. It represents a
  10411. // boolean that is true if the message is a tombstone.
  10412. func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
  10413. return MessagingKafkaMessageTombstoneKey.Bool(val)
  10414. }
  10415. // MessagingKafkaOffset returns an attribute KeyValue conforming to the
  10416. // "messaging.kafka.offset" semantic conventions. It represents the offset of a
  10417. // record in the corresponding Kafka partition.
  10418. func MessagingKafkaOffset(val int) attribute.KeyValue {
  10419. return MessagingKafkaOffsetKey.Int(val)
  10420. }
  10421. // MessagingMessageBodySize returns an attribute KeyValue conforming to the
  10422. // "messaging.message.body.size" semantic conventions. It represents the size of
  10423. // the message body in bytes.
  10424. func MessagingMessageBodySize(val int) attribute.KeyValue {
  10425. return MessagingMessageBodySizeKey.Int(val)
  10426. }
  10427. // MessagingMessageConversationID returns an attribute KeyValue conforming to the
  10428. // "messaging.message.conversation_id" semantic conventions. It represents the
  10429. // conversation ID identifying the conversation to which the message belongs,
  10430. // represented as a string. Sometimes called "Correlation ID".
  10431. func MessagingMessageConversationID(val string) attribute.KeyValue {
  10432. return MessagingMessageConversationIDKey.String(val)
  10433. }
  10434. // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
  10435. // "messaging.message.envelope.size" semantic conventions. It represents the size
  10436. // of the message body and metadata in bytes.
  10437. func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
  10438. return MessagingMessageEnvelopeSizeKey.Int(val)
  10439. }
  10440. // MessagingMessageID returns an attribute KeyValue conforming to the
  10441. // "messaging.message.id" semantic conventions. It represents a value used by the
  10442. // messaging system as an identifier for the message, represented as a string.
  10443. func MessagingMessageID(val string) attribute.KeyValue {
  10444. return MessagingMessageIDKey.String(val)
  10445. }
  10446. // MessagingOperationName returns an attribute KeyValue conforming to the
  10447. // "messaging.operation.name" semantic conventions. It represents the
  10448. // system-specific name of the messaging operation.
  10449. func MessagingOperationName(val string) attribute.KeyValue {
  10450. return MessagingOperationNameKey.String(val)
  10451. }
  10452. // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
  10453. // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
  10454. // conventions. It represents the rabbitMQ message routing key.
  10455. func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
  10456. return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
  10457. }
  10458. // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
  10459. // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
  10460. // represents the rabbitMQ message delivery tag.
  10461. func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
  10462. return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
  10463. }
  10464. // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
  10465. // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
  10466. // conventions. It represents the delay time level for delay message, which
  10467. // determines the message delay time.
  10468. func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
  10469. return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
  10470. }
  10471. // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
  10472. // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
  10473. // conventions. It represents the timestamp in milliseconds that the delay
  10474. // message is expected to be delivered to consumer.
  10475. func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
  10476. return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
  10477. }
  10478. // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
  10479. // "messaging.rocketmq.message.group" semantic conventions. It represents the it
  10480. // is essential for FIFO message. Messages that belong to the same message group
  10481. // are always processed one by one within the same consumer group.
  10482. func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
  10483. return MessagingRocketMQMessageGroupKey.String(val)
  10484. }
  10485. // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
  10486. // "messaging.rocketmq.message.keys" semantic conventions. It represents the
  10487. // key(s) of message, another way to mark message besides message id.
  10488. func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
  10489. return MessagingRocketMQMessageKeysKey.StringSlice(val)
  10490. }
  10491. // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
  10492. // "messaging.rocketmq.message.tag" semantic conventions. It represents the
  10493. // secondary classifier of message besides topic.
  10494. func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
  10495. return MessagingRocketMQMessageTagKey.String(val)
  10496. }
  10497. // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
  10498. // "messaging.rocketmq.namespace" semantic conventions. It represents the
  10499. // namespace of RocketMQ resources, resources in different namespaces are
  10500. // individual.
  10501. func MessagingRocketMQNamespace(val string) attribute.KeyValue {
  10502. return MessagingRocketMQNamespaceKey.String(val)
  10503. }
  10504. // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
  10505. // conforming to the "messaging.servicebus.message.delivery_count" semantic
  10506. // conventions. It represents the number of deliveries that have been attempted
  10507. // for this message.
  10508. func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
  10509. return MessagingServiceBusMessageDeliveryCountKey.Int(val)
  10510. }
  10511. // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
  10512. // conforming to the "messaging.servicebus.message.enqueued_time" semantic
  10513. // conventions. It represents the UTC epoch seconds at which the message has been
  10514. // accepted and stored in the entity.
  10515. func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
  10516. return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
  10517. }
  10518. // Enum values for messaging.operation.type
  10519. var (
  10520. // A message is created. "Create" spans always refer to a single message and are
  10521. // used to provide a unique creation context for messages in batch sending
  10522. // scenarios.
  10523. //
  10524. // Stability: development
  10525. MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
  10526. // One or more messages are provided for sending to an intermediary. If a single
  10527. // message is sent, the context of the "Send" span can be used as the creation
  10528. // context and no "Create" span needs to be created.
  10529. //
  10530. // Stability: development
  10531. MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
  10532. // One or more messages are requested by a consumer. This operation refers to
  10533. // pull-based scenarios, where consumers explicitly call methods of messaging
  10534. // SDKs to receive messages.
  10535. //
  10536. // Stability: development
  10537. MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
  10538. // One or more messages are processed by a consumer.
  10539. //
  10540. // Stability: development
  10541. MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
  10542. // One or more messages are settled.
  10543. //
  10544. // Stability: development
  10545. MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
  10546. )
  10547. // Enum values for messaging.rocketmq.consumption_model
  10548. var (
  10549. // Clustering consumption model
  10550. // Stability: development
  10551. MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
  10552. // Broadcasting consumption model
  10553. // Stability: development
  10554. MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
  10555. )
  10556. // Enum values for messaging.rocketmq.message.type
  10557. var (
  10558. // Normal message
  10559. // Stability: development
  10560. MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
  10561. // FIFO message
  10562. // Stability: development
  10563. MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
  10564. // Delay message
  10565. // Stability: development
  10566. MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
  10567. // Transaction message
  10568. // Stability: development
  10569. MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
  10570. )
  10571. // Enum values for messaging.servicebus.disposition_status
  10572. var (
  10573. // Message is completed
  10574. // Stability: development
  10575. MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
  10576. // Message is abandoned
  10577. // Stability: development
  10578. MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
  10579. // Message is sent to dead letter queue
  10580. // Stability: development
  10581. MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
  10582. // Message is deferred
  10583. // Stability: development
  10584. MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
  10585. )
  10586. // Enum values for messaging.system
  10587. var (
  10588. // Apache ActiveMQ
  10589. // Stability: development
  10590. MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
  10591. // Amazon Simple Notification Service (SNS)
  10592. // Stability: development
  10593. MessagingSystemAWSSNS = MessagingSystemKey.String("aws.sns")
  10594. // Amazon Simple Queue Service (SQS)
  10595. // Stability: development
  10596. MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
  10597. // Azure Event Grid
  10598. // Stability: development
  10599. MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
  10600. // Azure Event Hubs
  10601. // Stability: development
  10602. MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
  10603. // Azure Service Bus
  10604. // Stability: development
  10605. MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
  10606. // Google Cloud Pub/Sub
  10607. // Stability: development
  10608. MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
  10609. // Java Message Service
  10610. // Stability: development
  10611. MessagingSystemJMS = MessagingSystemKey.String("jms")
  10612. // Apache Kafka
  10613. // Stability: development
  10614. MessagingSystemKafka = MessagingSystemKey.String("kafka")
  10615. // RabbitMQ
  10616. // Stability: development
  10617. MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
  10618. // Apache RocketMQ
  10619. // Stability: development
  10620. MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
  10621. // Apache Pulsar
  10622. // Stability: development
  10623. MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
  10624. )
  10625. // Namespace: network
  10626. const (
  10627. // NetworkCarrierICCKey is the attribute Key conforming to the
  10628. // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
  10629. // alpha-2 2-character country code associated with the mobile carrier network.
  10630. //
  10631. // Type: string
  10632. // RequirementLevel: Recommended
  10633. // Stability: Development
  10634. //
  10635. // Examples: DE
  10636. NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
  10637. // NetworkCarrierMCCKey is the attribute Key conforming to the
  10638. // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
  10639. // country code.
  10640. //
  10641. // Type: string
  10642. // RequirementLevel: Recommended
  10643. // Stability: Development
  10644. //
  10645. // Examples: 310
  10646. NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
  10647. // NetworkCarrierMNCKey is the attribute Key conforming to the
  10648. // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
  10649. // network code.
  10650. //
  10651. // Type: string
  10652. // RequirementLevel: Recommended
  10653. // Stability: Development
  10654. //
  10655. // Examples: 001
  10656. NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
  10657. // NetworkCarrierNameKey is the attribute Key conforming to the
  10658. // "network.carrier.name" semantic conventions. It represents the name of the
  10659. // mobile carrier.
  10660. //
  10661. // Type: string
  10662. // RequirementLevel: Recommended
  10663. // Stability: Development
  10664. //
  10665. // Examples: sprint
  10666. NetworkCarrierNameKey = attribute.Key("network.carrier.name")
  10667. // NetworkConnectionStateKey is the attribute Key conforming to the
  10668. // "network.connection.state" semantic conventions. It represents the state of
  10669. // network connection.
  10670. //
  10671. // Type: Enum
  10672. // RequirementLevel: Recommended
  10673. // Stability: Development
  10674. //
  10675. // Examples: "close_wait"
  10676. // Note: Connection states are defined as part of the [rfc9293]
  10677. //
  10678. // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
  10679. NetworkConnectionStateKey = attribute.Key("network.connection.state")
  10680. // NetworkConnectionSubtypeKey is the attribute Key conforming to the
  10681. // "network.connection.subtype" semantic conventions. It represents the this
  10682. // describes more details regarding the connection.type. It may be the type of
  10683. // cell technology connection, but it could be used for describing details about
  10684. // a wifi connection.
  10685. //
  10686. // Type: Enum
  10687. // RequirementLevel: Recommended
  10688. // Stability: Development
  10689. //
  10690. // Examples: LTE
  10691. NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
  10692. // NetworkConnectionTypeKey is the attribute Key conforming to the
  10693. // "network.connection.type" semantic conventions. It represents the internet
  10694. // connection type.
  10695. //
  10696. // Type: Enum
  10697. // RequirementLevel: Recommended
  10698. // Stability: Development
  10699. //
  10700. // Examples: wifi
  10701. NetworkConnectionTypeKey = attribute.Key("network.connection.type")
  10702. // NetworkInterfaceNameKey is the attribute Key conforming to the
  10703. // "network.interface.name" semantic conventions. It represents the network
  10704. // interface name.
  10705. //
  10706. // Type: string
  10707. // RequirementLevel: Recommended
  10708. // Stability: Development
  10709. //
  10710. // Examples: "lo", "eth0"
  10711. NetworkInterfaceNameKey = attribute.Key("network.interface.name")
  10712. // NetworkIODirectionKey is the attribute Key conforming to the
  10713. // "network.io.direction" semantic conventions. It represents the network IO
  10714. // operation direction.
  10715. //
  10716. // Type: Enum
  10717. // RequirementLevel: Recommended
  10718. // Stability: Development
  10719. //
  10720. // Examples: "transmit"
  10721. NetworkIODirectionKey = attribute.Key("network.io.direction")
  10722. // NetworkLocalAddressKey is the attribute Key conforming to the
  10723. // "network.local.address" semantic conventions. It represents the local address
  10724. // of the network connection - IP address or Unix domain socket name.
  10725. //
  10726. // Type: string
  10727. // RequirementLevel: Recommended
  10728. // Stability: Stable
  10729. //
  10730. // Examples: "10.1.2.80", "/tmp/my.sock"
  10731. NetworkLocalAddressKey = attribute.Key("network.local.address")
  10732. // NetworkLocalPortKey is the attribute Key conforming to the
  10733. // "network.local.port" semantic conventions. It represents the local port
  10734. // number of the network connection.
  10735. //
  10736. // Type: int
  10737. // RequirementLevel: Recommended
  10738. // Stability: Stable
  10739. //
  10740. // Examples: 65123
  10741. NetworkLocalPortKey = attribute.Key("network.local.port")
  10742. // NetworkPeerAddressKey is the attribute Key conforming to the
  10743. // "network.peer.address" semantic conventions. It represents the peer address
  10744. // of the network connection - IP address or Unix domain socket name.
  10745. //
  10746. // Type: string
  10747. // RequirementLevel: Recommended
  10748. // Stability: Stable
  10749. //
  10750. // Examples: "10.1.2.80", "/tmp/my.sock"
  10751. NetworkPeerAddressKey = attribute.Key("network.peer.address")
  10752. // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
  10753. // semantic conventions. It represents the peer port number of the network
  10754. // connection.
  10755. //
  10756. // Type: int
  10757. // RequirementLevel: Recommended
  10758. // Stability: Stable
  10759. //
  10760. // Examples: 65123
  10761. NetworkPeerPortKey = attribute.Key("network.peer.port")
  10762. // NetworkProtocolNameKey is the attribute Key conforming to the
  10763. // "network.protocol.name" semantic conventions. It represents the
  10764. // [OSI application layer] or non-OSI equivalent.
  10765. //
  10766. // Type: string
  10767. // RequirementLevel: Recommended
  10768. // Stability: Stable
  10769. //
  10770. // Examples: "amqp", "http", "mqtt"
  10771. // Note: The value SHOULD be normalized to lowercase.
  10772. //
  10773. // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
  10774. NetworkProtocolNameKey = attribute.Key("network.protocol.name")
  10775. // NetworkProtocolVersionKey is the attribute Key conforming to the
  10776. // "network.protocol.version" semantic conventions. It represents the actual
  10777. // version of the protocol used for network communication.
  10778. //
  10779. // Type: string
  10780. // RequirementLevel: Recommended
  10781. // Stability: Stable
  10782. //
  10783. // Examples: "1.1", "2"
  10784. // Note: If protocol version is subject to negotiation (for example using [ALPN]
  10785. // ), this attribute SHOULD be set to the negotiated version. If the actual
  10786. // protocol version is not known, this attribute SHOULD NOT be set.
  10787. //
  10788. // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
  10789. NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
  10790. // NetworkTransportKey is the attribute Key conforming to the
  10791. // "network.transport" semantic conventions. It represents the
  10792. // [OSI transport layer] or [inter-process communication method].
  10793. //
  10794. // Type: Enum
  10795. // RequirementLevel: Recommended
  10796. // Stability: Stable
  10797. //
  10798. // Examples: "tcp", "udp"
  10799. // Note: The value SHOULD be normalized to lowercase.
  10800. //
  10801. // Consider always setting the transport when setting a port number, since
  10802. // a port number is ambiguous without knowing the transport. For example
  10803. // different processes could be listening on TCP port 12345 and UDP port 12345.
  10804. //
  10805. // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
  10806. // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
  10807. NetworkTransportKey = attribute.Key("network.transport")
  10808. // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
  10809. // conventions. It represents the [OSI network layer] or non-OSI equivalent.
  10810. //
  10811. // Type: Enum
  10812. // RequirementLevel: Recommended
  10813. // Stability: Stable
  10814. //
  10815. // Examples: "ipv4", "ipv6"
  10816. // Note: The value SHOULD be normalized to lowercase.
  10817. //
  10818. // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
  10819. NetworkTypeKey = attribute.Key("network.type")
  10820. )
  10821. // NetworkCarrierICC returns an attribute KeyValue conforming to the
  10822. // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
  10823. // alpha-2 2-character country code associated with the mobile carrier network.
  10824. func NetworkCarrierICC(val string) attribute.KeyValue {
  10825. return NetworkCarrierICCKey.String(val)
  10826. }
  10827. // NetworkCarrierMCC returns an attribute KeyValue conforming to the
  10828. // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
  10829. // country code.
  10830. func NetworkCarrierMCC(val string) attribute.KeyValue {
  10831. return NetworkCarrierMCCKey.String(val)
  10832. }
  10833. // NetworkCarrierMNC returns an attribute KeyValue conforming to the
  10834. // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
  10835. // network code.
  10836. func NetworkCarrierMNC(val string) attribute.KeyValue {
  10837. return NetworkCarrierMNCKey.String(val)
  10838. }
  10839. // NetworkCarrierName returns an attribute KeyValue conforming to the
  10840. // "network.carrier.name" semantic conventions. It represents the name of the
  10841. // mobile carrier.
  10842. func NetworkCarrierName(val string) attribute.KeyValue {
  10843. return NetworkCarrierNameKey.String(val)
  10844. }
  10845. // NetworkInterfaceName returns an attribute KeyValue conforming to the
  10846. // "network.interface.name" semantic conventions. It represents the network
  10847. // interface name.
  10848. func NetworkInterfaceName(val string) attribute.KeyValue {
  10849. return NetworkInterfaceNameKey.String(val)
  10850. }
  10851. // NetworkLocalAddress returns an attribute KeyValue conforming to the
  10852. // "network.local.address" semantic conventions. It represents the local address
  10853. // of the network connection - IP address or Unix domain socket name.
  10854. func NetworkLocalAddress(val string) attribute.KeyValue {
  10855. return NetworkLocalAddressKey.String(val)
  10856. }
  10857. // NetworkLocalPort returns an attribute KeyValue conforming to the
  10858. // "network.local.port" semantic conventions. It represents the local port number
  10859. // of the network connection.
  10860. func NetworkLocalPort(val int) attribute.KeyValue {
  10861. return NetworkLocalPortKey.Int(val)
  10862. }
  10863. // NetworkPeerAddress returns an attribute KeyValue conforming to the
  10864. // "network.peer.address" semantic conventions. It represents the peer address of
  10865. // the network connection - IP address or Unix domain socket name.
  10866. func NetworkPeerAddress(val string) attribute.KeyValue {
  10867. return NetworkPeerAddressKey.String(val)
  10868. }
  10869. // NetworkPeerPort returns an attribute KeyValue conforming to the
  10870. // "network.peer.port" semantic conventions. It represents the peer port number
  10871. // of the network connection.
  10872. func NetworkPeerPort(val int) attribute.KeyValue {
  10873. return NetworkPeerPortKey.Int(val)
  10874. }
  10875. // NetworkProtocolName returns an attribute KeyValue conforming to the
  10876. // "network.protocol.name" semantic conventions. It represents the
  10877. // [OSI application layer] or non-OSI equivalent.
  10878. //
  10879. // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
  10880. func NetworkProtocolName(val string) attribute.KeyValue {
  10881. return NetworkProtocolNameKey.String(val)
  10882. }
  10883. // NetworkProtocolVersion returns an attribute KeyValue conforming to the
  10884. // "network.protocol.version" semantic conventions. It represents the actual
  10885. // version of the protocol used for network communication.
  10886. func NetworkProtocolVersion(val string) attribute.KeyValue {
  10887. return NetworkProtocolVersionKey.String(val)
  10888. }
  10889. // Enum values for network.connection.state
  10890. var (
  10891. // closed
  10892. // Stability: development
  10893. NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
  10894. // close_wait
  10895. // Stability: development
  10896. NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
  10897. // closing
  10898. // Stability: development
  10899. NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
  10900. // established
  10901. // Stability: development
  10902. NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
  10903. // fin_wait_1
  10904. // Stability: development
  10905. NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
  10906. // fin_wait_2
  10907. // Stability: development
  10908. NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
  10909. // last_ack
  10910. // Stability: development
  10911. NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
  10912. // listen
  10913. // Stability: development
  10914. NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
  10915. // syn_received
  10916. // Stability: development
  10917. NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
  10918. // syn_sent
  10919. // Stability: development
  10920. NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
  10921. // time_wait
  10922. // Stability: development
  10923. NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
  10924. )
  10925. // Enum values for network.connection.subtype
  10926. var (
  10927. // GPRS
  10928. // Stability: development
  10929. NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
  10930. // EDGE
  10931. // Stability: development
  10932. NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
  10933. // UMTS
  10934. // Stability: development
  10935. NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
  10936. // CDMA
  10937. // Stability: development
  10938. NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
  10939. // EVDO Rel. 0
  10940. // Stability: development
  10941. NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
  10942. // EVDO Rev. A
  10943. // Stability: development
  10944. NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
  10945. // CDMA2000 1XRTT
  10946. // Stability: development
  10947. NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
  10948. // HSDPA
  10949. // Stability: development
  10950. NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
  10951. // HSUPA
  10952. // Stability: development
  10953. NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
  10954. // HSPA
  10955. // Stability: development
  10956. NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
  10957. // IDEN
  10958. // Stability: development
  10959. NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
  10960. // EVDO Rev. B
  10961. // Stability: development
  10962. NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
  10963. // LTE
  10964. // Stability: development
  10965. NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
  10966. // EHRPD
  10967. // Stability: development
  10968. NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
  10969. // HSPAP
  10970. // Stability: development
  10971. NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
  10972. // GSM
  10973. // Stability: development
  10974. NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
  10975. // TD-SCDMA
  10976. // Stability: development
  10977. NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
  10978. // IWLAN
  10979. // Stability: development
  10980. NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
  10981. // 5G NR (New Radio)
  10982. // Stability: development
  10983. NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
  10984. // 5G NRNSA (New Radio Non-Standalone)
  10985. // Stability: development
  10986. NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
  10987. // LTE CA
  10988. // Stability: development
  10989. NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
  10990. )
  10991. // Enum values for network.connection.type
  10992. var (
  10993. // wifi
  10994. // Stability: development
  10995. NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
  10996. // wired
  10997. // Stability: development
  10998. NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
  10999. // cell
  11000. // Stability: development
  11001. NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
  11002. // unavailable
  11003. // Stability: development
  11004. NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
  11005. // unknown
  11006. // Stability: development
  11007. NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
  11008. )
  11009. // Enum values for network.io.direction
  11010. var (
  11011. // transmit
  11012. // Stability: development
  11013. NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
  11014. // receive
  11015. // Stability: development
  11016. NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
  11017. )
  11018. // Enum values for network.transport
  11019. var (
  11020. // TCP
  11021. // Stability: stable
  11022. NetworkTransportTCP = NetworkTransportKey.String("tcp")
  11023. // UDP
  11024. // Stability: stable
  11025. NetworkTransportUDP = NetworkTransportKey.String("udp")
  11026. // Named or anonymous pipe.
  11027. // Stability: stable
  11028. NetworkTransportPipe = NetworkTransportKey.String("pipe")
  11029. // Unix domain socket
  11030. // Stability: stable
  11031. NetworkTransportUnix = NetworkTransportKey.String("unix")
  11032. // QUIC
  11033. // Stability: stable
  11034. NetworkTransportQUIC = NetworkTransportKey.String("quic")
  11035. )
  11036. // Enum values for network.type
  11037. var (
  11038. // IPv4
  11039. // Stability: stable
  11040. NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
  11041. // IPv6
  11042. // Stability: stable
  11043. NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
  11044. )
  11045. // Namespace: nfs
  11046. const (
  11047. // NfsOperationNameKey is the attribute Key conforming to the
  11048. // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
  11049. // name.
  11050. //
  11051. // Type: string
  11052. // RequirementLevel: Recommended
  11053. // Stability: Development
  11054. //
  11055. // Examples: "OPEN", "READ", "GETATTR"
  11056. NfsOperationNameKey = attribute.Key("nfs.operation.name")
  11057. // NfsServerRepcacheStatusKey is the attribute Key conforming to the
  11058. // "nfs.server.repcache.status" semantic conventions. It represents the linux:
  11059. // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or
  11060. // "nocache" (NFSD_STATS_RC_NOCACHE -- uncacheable).
  11061. //
  11062. // Type: string
  11063. // RequirementLevel: Recommended
  11064. // Stability: Development
  11065. //
  11066. // Examples: hit
  11067. NfsServerRepcacheStatusKey = attribute.Key("nfs.server.repcache.status")
  11068. )
  11069. // NfsOperationName returns an attribute KeyValue conforming to the
  11070. // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
  11071. // name.
  11072. func NfsOperationName(val string) attribute.KeyValue {
  11073. return NfsOperationNameKey.String(val)
  11074. }
  11075. // NfsServerRepcacheStatus returns an attribute KeyValue conforming to the
  11076. // "nfs.server.repcache.status" semantic conventions. It represents the linux:
  11077. // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or "nocache"
  11078. // (NFSD_STATS_RC_NOCACHE -- uncacheable).
  11079. func NfsServerRepcacheStatus(val string) attribute.KeyValue {
  11080. return NfsServerRepcacheStatusKey.String(val)
  11081. }
  11082. // Namespace: oci
  11083. const (
  11084. // OCIManifestDigestKey is the attribute Key conforming to the
  11085. // "oci.manifest.digest" semantic conventions. It represents the digest of the
  11086. // OCI image manifest. For container images specifically is the digest by which
  11087. // the container image is known.
  11088. //
  11089. // Type: string
  11090. // RequirementLevel: Recommended
  11091. // Stability: Development
  11092. //
  11093. // Examples:
  11094. // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
  11095. // Note: Follows [OCI Image Manifest Specification], and specifically the
  11096. // [Digest property].
  11097. // An example can be found in [Example Image Manifest].
  11098. //
  11099. // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
  11100. // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
  11101. // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
  11102. OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
  11103. )
  11104. // OCIManifestDigest returns an attribute KeyValue conforming to the
  11105. // "oci.manifest.digest" semantic conventions. It represents the digest of the
  11106. // OCI image manifest. For container images specifically is the digest by which
  11107. // the container image is known.
  11108. func OCIManifestDigest(val string) attribute.KeyValue {
  11109. return OCIManifestDigestKey.String(val)
  11110. }
  11111. // Namespace: onc_rpc
  11112. const (
  11113. // OncRPCProcedureNameKey is the attribute Key conforming to the
  11114. // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
  11115. // procedure name.
  11116. //
  11117. // Type: string
  11118. // RequirementLevel: Recommended
  11119. // Stability: Development
  11120. //
  11121. // Examples: "OPEN", "READ", "GETATTR"
  11122. OncRPCProcedureNameKey = attribute.Key("onc_rpc.procedure.name")
  11123. // OncRPCProcedureNumberKey is the attribute Key conforming to the
  11124. // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun
  11125. // RPC procedure number.
  11126. //
  11127. // Type: int
  11128. // RequirementLevel: Recommended
  11129. // Stability: Development
  11130. //
  11131. // Examples:
  11132. OncRPCProcedureNumberKey = attribute.Key("onc_rpc.procedure.number")
  11133. // OncRPCProgramNameKey is the attribute Key conforming to the
  11134. // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
  11135. // program name.
  11136. //
  11137. // Type: string
  11138. // RequirementLevel: Recommended
  11139. // Stability: Development
  11140. //
  11141. // Examples: "portmapper", "nfs"
  11142. OncRPCProgramNameKey = attribute.Key("onc_rpc.program.name")
  11143. // OncRPCVersionKey is the attribute Key conforming to the "onc_rpc.version"
  11144. // semantic conventions. It represents the ONC/Sun RPC program version.
  11145. //
  11146. // Type: int
  11147. // RequirementLevel: Recommended
  11148. // Stability: Development
  11149. //
  11150. // Examples:
  11151. OncRPCVersionKey = attribute.Key("onc_rpc.version")
  11152. )
  11153. // OncRPCProcedureName returns an attribute KeyValue conforming to the
  11154. // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
  11155. // procedure name.
  11156. func OncRPCProcedureName(val string) attribute.KeyValue {
  11157. return OncRPCProcedureNameKey.String(val)
  11158. }
  11159. // OncRPCProcedureNumber returns an attribute KeyValue conforming to the
  11160. // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun RPC
  11161. // procedure number.
  11162. func OncRPCProcedureNumber(val int) attribute.KeyValue {
  11163. return OncRPCProcedureNumberKey.Int(val)
  11164. }
  11165. // OncRPCProgramName returns an attribute KeyValue conforming to the
  11166. // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
  11167. // program name.
  11168. func OncRPCProgramName(val string) attribute.KeyValue {
  11169. return OncRPCProgramNameKey.String(val)
  11170. }
  11171. // OncRPCVersion returns an attribute KeyValue conforming to the
  11172. // "onc_rpc.version" semantic conventions. It represents the ONC/Sun RPC program
  11173. // version.
  11174. func OncRPCVersion(val int) attribute.KeyValue {
  11175. return OncRPCVersionKey.Int(val)
  11176. }
  11177. // Namespace: openai
  11178. const (
  11179. // OpenAIAPITypeKey is the attribute Key conforming to the "openai.api.type"
  11180. // semantic conventions. It represents the type of OpenAI API being used.
  11181. //
  11182. // Type: Enum
  11183. // RequirementLevel: Recommended
  11184. // Stability: Development
  11185. //
  11186. // Examples:
  11187. OpenAIAPITypeKey = attribute.Key("openai.api.type")
  11188. // OpenAIRequestServiceTierKey is the attribute Key conforming to the
  11189. // "openai.request.service_tier" semantic conventions. It represents the service
  11190. // tier requested. May be a specific tier, default, or auto.
  11191. //
  11192. // Type: Enum
  11193. // RequirementLevel: Recommended
  11194. // Stability: Development
  11195. //
  11196. // Examples: "auto", "default"
  11197. OpenAIRequestServiceTierKey = attribute.Key("openai.request.service_tier")
  11198. // OpenAIResponseServiceTierKey is the attribute Key conforming to the
  11199. // "openai.response.service_tier" semantic conventions. It represents the
  11200. // service tier used for the response.
  11201. //
  11202. // Type: string
  11203. // RequirementLevel: Recommended
  11204. // Stability: Development
  11205. //
  11206. // Examples: "scale", "default"
  11207. OpenAIResponseServiceTierKey = attribute.Key("openai.response.service_tier")
  11208. // OpenAIResponseSystemFingerprintKey is the attribute Key conforming to the
  11209. // "openai.response.system_fingerprint" semantic conventions. It represents a
  11210. // fingerprint to track any eventual change in the Generative AI environment.
  11211. //
  11212. // Type: string
  11213. // RequirementLevel: Recommended
  11214. // Stability: Development
  11215. //
  11216. // Examples: "fp_44709d6fcb"
  11217. OpenAIResponseSystemFingerprintKey = attribute.Key("openai.response.system_fingerprint")
  11218. )
  11219. // OpenAIResponseServiceTier returns an attribute KeyValue conforming to the
  11220. // "openai.response.service_tier" semantic conventions. It represents the service
  11221. // tier used for the response.
  11222. func OpenAIResponseServiceTier(val string) attribute.KeyValue {
  11223. return OpenAIResponseServiceTierKey.String(val)
  11224. }
  11225. // OpenAIResponseSystemFingerprint returns an attribute KeyValue conforming to
  11226. // the "openai.response.system_fingerprint" semantic conventions. It represents a
  11227. // fingerprint to track any eventual change in the Generative AI environment.
  11228. func OpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
  11229. return OpenAIResponseSystemFingerprintKey.String(val)
  11230. }
  11231. // Enum values for openai.api.type
  11232. var (
  11233. // The OpenAI [Chat Completions API].
  11234. // Stability: development
  11235. //
  11236. // [Chat Completions API]: https://developers.openai.com/api/reference/chat-completions/overview
  11237. OpenAIAPITypeChatCompletions = OpenAIAPITypeKey.String("chat_completions")
  11238. // The OpenAI [Responses API].
  11239. // Stability: development
  11240. //
  11241. // [Responses API]: https://developers.openai.com/api/reference/responses/overview
  11242. OpenAIAPITypeResponses = OpenAIAPITypeKey.String("responses")
  11243. )
  11244. // Enum values for openai.request.service_tier
  11245. var (
  11246. // The system will utilize scale tier credits until they are exhausted.
  11247. // Stability: development
  11248. OpenAIRequestServiceTierAuto = OpenAIRequestServiceTierKey.String("auto")
  11249. // The system will utilize the default scale tier.
  11250. // Stability: development
  11251. OpenAIRequestServiceTierDefault = OpenAIRequestServiceTierKey.String("default")
  11252. )
  11253. // Namespace: openshift
  11254. const (
  11255. // OpenShiftClusterquotaNameKey is the attribute Key conforming to the
  11256. // "openshift.clusterquota.name" semantic conventions. It represents the name of
  11257. // the cluster quota.
  11258. //
  11259. // Type: string
  11260. // RequirementLevel: Recommended
  11261. // Stability: Development
  11262. //
  11263. // Examples: "opentelemetry"
  11264. OpenShiftClusterquotaNameKey = attribute.Key("openshift.clusterquota.name")
  11265. // OpenShiftClusterquotaUIDKey is the attribute Key conforming to the
  11266. // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
  11267. // the cluster quota.
  11268. //
  11269. // Type: string
  11270. // RequirementLevel: Recommended
  11271. // Stability: Development
  11272. //
  11273. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  11274. OpenShiftClusterquotaUIDKey = attribute.Key("openshift.clusterquota.uid")
  11275. )
  11276. // OpenShiftClusterquotaName returns an attribute KeyValue conforming to the
  11277. // "openshift.clusterquota.name" semantic conventions. It represents the name of
  11278. // the cluster quota.
  11279. func OpenShiftClusterquotaName(val string) attribute.KeyValue {
  11280. return OpenShiftClusterquotaNameKey.String(val)
  11281. }
  11282. // OpenShiftClusterquotaUID returns an attribute KeyValue conforming to the
  11283. // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
  11284. // the cluster quota.
  11285. func OpenShiftClusterquotaUID(val string) attribute.KeyValue {
  11286. return OpenShiftClusterquotaUIDKey.String(val)
  11287. }
  11288. // Namespace: opentracing
  11289. const (
  11290. // OpenTracingRefTypeKey is the attribute Key conforming to the
  11291. // "opentracing.ref_type" semantic conventions. It represents the parent-child
  11292. // Reference type.
  11293. //
  11294. // Type: Enum
  11295. // RequirementLevel: Recommended
  11296. // Stability: Development
  11297. //
  11298. // Examples:
  11299. // Note: The causal relationship between a child Span and a parent Span.
  11300. OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
  11301. )
  11302. // Enum values for opentracing.ref_type
  11303. var (
  11304. // The parent Span depends on the child Span in some capacity
  11305. // Stability: development
  11306. OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
  11307. // The parent Span doesn't depend in any way on the result of the child Span
  11308. // Stability: development
  11309. OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
  11310. )
  11311. // Namespace: oracle
  11312. const (
  11313. // OracleDBDomainKey is the attribute Key conforming to the "oracle.db.domain"
  11314. // semantic conventions. It represents the database domain associated with the
  11315. // connection.
  11316. //
  11317. // Type: string
  11318. // RequirementLevel: Recommended
  11319. // Stability: Development
  11320. //
  11321. // Examples: "example.com", "corp.internal", "prod.db.local"
  11322. // Note: This attribute SHOULD be set to the value of the `DB_DOMAIN`
  11323. // initialization parameter,
  11324. // as exposed in `v$parameter`. `DB_DOMAIN` defines the domain portion of the
  11325. // global
  11326. // database name and SHOULD be configured when a database is, or may become,
  11327. // part of a
  11328. // distributed environment. Its value consists of one or more valid identifiers
  11329. // (alphanumeric ASCII characters) separated by periods.
  11330. OracleDBDomainKey = attribute.Key("oracle.db.domain")
  11331. // OracleDBInstanceNameKey is the attribute Key conforming to the
  11332. // "oracle.db.instance.name" semantic conventions. It represents the instance
  11333. // name associated with the connection in an Oracle Real Application Clusters
  11334. // environment.
  11335. //
  11336. // Type: string
  11337. // RequirementLevel: Recommended
  11338. // Stability: Development
  11339. //
  11340. // Examples: "ORCL1", "ORCL2", "ORCL3"
  11341. // Note: There can be multiple instances associated with a single database
  11342. // service. It indicates the
  11343. // unique instance name to which the connection is currently bound. For non-RAC
  11344. // databases, this value
  11345. // defaults to the `oracle.db.name`.
  11346. OracleDBInstanceNameKey = attribute.Key("oracle.db.instance.name")
  11347. // OracleDBNameKey is the attribute Key conforming to the "oracle.db.name"
  11348. // semantic conventions. It represents the database name associated with the
  11349. // connection.
  11350. //
  11351. // Type: string
  11352. // RequirementLevel: Recommended
  11353. // Stability: Development
  11354. //
  11355. // Examples: "ORCL1", "FREE"
  11356. // Note: This attribute SHOULD be set to the value of the parameter `DB_NAME`
  11357. // exposed in `v$parameter`.
  11358. OracleDBNameKey = attribute.Key("oracle.db.name")
  11359. // OracleDBPdbKey is the attribute Key conforming to the "oracle.db.pdb"
  11360. // semantic conventions. It represents the pluggable database (PDB) name
  11361. // associated with the connection.
  11362. //
  11363. // Type: string
  11364. // RequirementLevel: Recommended
  11365. // Stability: Development
  11366. //
  11367. // Examples: "PDB1", "FREEPDB"
  11368. // Note: This attribute SHOULD reflect the PDB that the session is currently
  11369. // connected to.
  11370. // If instrumentation cannot reliably obtain the active PDB name for each
  11371. // operation
  11372. // without issuing an additional query (such as `SELECT SYS_CONTEXT`), it is
  11373. // RECOMMENDED to fall back to the PDB name specified at connection
  11374. // establishment.
  11375. OracleDBPdbKey = attribute.Key("oracle.db.pdb")
  11376. // OracleDBServiceKey is the attribute Key conforming to the "oracle.db.service"
  11377. // semantic conventions. It represents the service name currently associated
  11378. // with the database connection.
  11379. //
  11380. // Type: string
  11381. // RequirementLevel: Recommended
  11382. // Stability: Development
  11383. //
  11384. // Examples: "order-processing-service", "db_low.adb.oraclecloud.com",
  11385. // "db_high.adb.oraclecloud.com"
  11386. // Note: The effective service name for a connection can change during its
  11387. // lifetime,
  11388. // for example after executing sql, `ALTER SESSION`. If an instrumentation
  11389. // cannot reliably
  11390. // obtain the current service name for each operation without issuing an
  11391. // additional
  11392. // query (such as `SELECT SYS_CONTEXT`), it is RECOMMENDED to fall back to the
  11393. // service name originally provided at connection establishment.
  11394. OracleDBServiceKey = attribute.Key("oracle.db.service")
  11395. )
  11396. // OracleDBDomain returns an attribute KeyValue conforming to the
  11397. // "oracle.db.domain" semantic conventions. It represents the database domain
  11398. // associated with the connection.
  11399. func OracleDBDomain(val string) attribute.KeyValue {
  11400. return OracleDBDomainKey.String(val)
  11401. }
  11402. // OracleDBInstanceName returns an attribute KeyValue conforming to the
  11403. // "oracle.db.instance.name" semantic conventions. It represents the instance
  11404. // name associated with the connection in an Oracle Real Application Clusters
  11405. // environment.
  11406. func OracleDBInstanceName(val string) attribute.KeyValue {
  11407. return OracleDBInstanceNameKey.String(val)
  11408. }
  11409. // OracleDBName returns an attribute KeyValue conforming to the "oracle.db.name"
  11410. // semantic conventions. It represents the database name associated with the
  11411. // connection.
  11412. func OracleDBName(val string) attribute.KeyValue {
  11413. return OracleDBNameKey.String(val)
  11414. }
  11415. // OracleDBPdb returns an attribute KeyValue conforming to the "oracle.db.pdb"
  11416. // semantic conventions. It represents the pluggable database (PDB) name
  11417. // associated with the connection.
  11418. func OracleDBPdb(val string) attribute.KeyValue {
  11419. return OracleDBPdbKey.String(val)
  11420. }
  11421. // OracleDBService returns an attribute KeyValue conforming to the
  11422. // "oracle.db.service" semantic conventions. It represents the service name
  11423. // currently associated with the database connection.
  11424. func OracleDBService(val string) attribute.KeyValue {
  11425. return OracleDBServiceKey.String(val)
  11426. }
  11427. // Namespace: oracle_cloud
  11428. const (
  11429. // OracleCloudRealmKey is the attribute Key conforming to the
  11430. // "oracle_cloud.realm" semantic conventions. It represents the OCI realm
  11431. // identifier that indicates the isolated partition in which the tenancy and its
  11432. // resources reside.
  11433. //
  11434. // Type: string
  11435. // RequirementLevel: Recommended
  11436. // Stability: Development
  11437. //
  11438. // Examples: "oc1", "oc2"
  11439. // Note: See [OCI documentation on realms]
  11440. //
  11441. // [OCI documentation on realms]: https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm
  11442. OracleCloudRealmKey = attribute.Key("oracle_cloud.realm")
  11443. )
  11444. // OracleCloudRealm returns an attribute KeyValue conforming to the
  11445. // "oracle_cloud.realm" semantic conventions. It represents the OCI realm
  11446. // identifier that indicates the isolated partition in which the tenancy and its
  11447. // resources reside.
  11448. func OracleCloudRealm(val string) attribute.KeyValue {
  11449. return OracleCloudRealmKey.String(val)
  11450. }
  11451. // Namespace: os
  11452. const (
  11453. // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
  11454. // conventions. It represents the unique identifier for a particular build or
  11455. // compilation of the operating system.
  11456. //
  11457. // Type: string
  11458. // RequirementLevel: Recommended
  11459. // Stability: Development
  11460. //
  11461. // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
  11462. OSBuildIDKey = attribute.Key("os.build_id")
  11463. // OSDescriptionKey is the attribute Key conforming to the "os.description"
  11464. // semantic conventions. It represents the human readable (not intended to be
  11465. // parsed) OS version information, like e.g. reported by `ver` or
  11466. // `lsb_release -a` commands.
  11467. //
  11468. // Type: string
  11469. // RequirementLevel: Recommended
  11470. // Stability: Development
  11471. //
  11472. // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
  11473. OSDescriptionKey = attribute.Key("os.description")
  11474. // OSNameKey is the attribute Key conforming to the "os.name" semantic
  11475. // conventions. It represents the human readable operating system name.
  11476. //
  11477. // Type: string
  11478. // RequirementLevel: Recommended
  11479. // Stability: Development
  11480. //
  11481. // Examples: "iOS", "Android", "Ubuntu"
  11482. OSNameKey = attribute.Key("os.name")
  11483. // OSTypeKey is the attribute Key conforming to the "os.type" semantic
  11484. // conventions. It represents the operating system type.
  11485. //
  11486. // Type: Enum
  11487. // RequirementLevel: Recommended
  11488. // Stability: Development
  11489. //
  11490. // Examples:
  11491. OSTypeKey = attribute.Key("os.type")
  11492. // OSVersionKey is the attribute Key conforming to the "os.version" semantic
  11493. // conventions. It represents the version string of the operating system as
  11494. // defined in [Version Attributes].
  11495. //
  11496. // Type: string
  11497. // RequirementLevel: Recommended
  11498. // Stability: Development
  11499. //
  11500. // Examples: "14.2.1", "18.04.1"
  11501. //
  11502. // [Version Attributes]: /docs/resource/README.md#version-attributes
  11503. OSVersionKey = attribute.Key("os.version")
  11504. )
  11505. // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
  11506. // semantic conventions. It represents the unique identifier for a particular
  11507. // build or compilation of the operating system.
  11508. func OSBuildID(val string) attribute.KeyValue {
  11509. return OSBuildIDKey.String(val)
  11510. }
  11511. // OSDescription returns an attribute KeyValue conforming to the "os.description"
  11512. // semantic conventions. It represents the human readable (not intended to be
  11513. // parsed) OS version information, like e.g. reported by `ver` or
  11514. // `lsb_release -a` commands.
  11515. func OSDescription(val string) attribute.KeyValue {
  11516. return OSDescriptionKey.String(val)
  11517. }
  11518. // OSName returns an attribute KeyValue conforming to the "os.name" semantic
  11519. // conventions. It represents the human readable operating system name.
  11520. func OSName(val string) attribute.KeyValue {
  11521. return OSNameKey.String(val)
  11522. }
  11523. // OSVersion returns an attribute KeyValue conforming to the "os.version"
  11524. // semantic conventions. It represents the version string of the operating system
  11525. // as defined in [Version Attributes].
  11526. //
  11527. // [Version Attributes]: /docs/resource/README.md#version-attributes
  11528. func OSVersion(val string) attribute.KeyValue {
  11529. return OSVersionKey.String(val)
  11530. }
  11531. // Enum values for os.type
  11532. var (
  11533. // Microsoft Windows
  11534. // Stability: development
  11535. OSTypeWindows = OSTypeKey.String("windows")
  11536. // Linux
  11537. // Stability: development
  11538. OSTypeLinux = OSTypeKey.String("linux")
  11539. // Apple Darwin
  11540. // Stability: development
  11541. OSTypeDarwin = OSTypeKey.String("darwin")
  11542. // FreeBSD
  11543. // Stability: development
  11544. OSTypeFreeBSD = OSTypeKey.String("freebsd")
  11545. // NetBSD
  11546. // Stability: development
  11547. OSTypeNetBSD = OSTypeKey.String("netbsd")
  11548. // OpenBSD
  11549. // Stability: development
  11550. OSTypeOpenBSD = OSTypeKey.String("openbsd")
  11551. // DragonFly BSD
  11552. // Stability: development
  11553. OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
  11554. // HP-UX (Hewlett Packard Unix)
  11555. // Stability: development
  11556. OSTypeHPUX = OSTypeKey.String("hpux")
  11557. // AIX (Advanced Interactive eXecutive)
  11558. // Stability: development
  11559. OSTypeAIX = OSTypeKey.String("aix")
  11560. // SunOS, Oracle Solaris
  11561. // Stability: development
  11562. OSTypeSolaris = OSTypeKey.String("solaris")
  11563. // IBM z/OS
  11564. // Stability: development
  11565. OSTypeZOS = OSTypeKey.String("zos")
  11566. )
  11567. // Namespace: otel
  11568. const (
  11569. // OTelComponentNameKey is the attribute Key conforming to the
  11570. // "otel.component.name" semantic conventions. It represents a name uniquely
  11571. // identifying the instance of the OpenTelemetry component within its containing
  11572. // SDK instance.
  11573. //
  11574. // Type: string
  11575. // RequirementLevel: Recommended
  11576. // Stability: Development
  11577. //
  11578. // Examples: "otlp_grpc_span_exporter/0", "custom-name"
  11579. // Note: Implementations SHOULD ensure a low cardinality for this attribute,
  11580. // even across application or SDK restarts.
  11581. // E.g. implementations MUST NOT use UUIDs as values for this attribute.
  11582. //
  11583. // Implementations MAY achieve these goals by following a
  11584. // `<otel.component.type>/<instance-counter>` pattern, e.g.
  11585. // `batching_span_processor/0`.
  11586. // Hereby `otel.component.type` refers to the corresponding attribute value of
  11587. // the component.
  11588. //
  11589. // The value of `instance-counter` MAY be automatically assigned by the
  11590. // component and uniqueness within the enclosing SDK instance MUST be
  11591. // guaranteed.
  11592. // For example, `<instance-counter>` MAY be implemented by using a monotonically
  11593. // increasing counter (starting with `0`), which is incremented every time an
  11594. // instance of the given component type is started.
  11595. //
  11596. // With this implementation, for example the first Batching Span Processor would
  11597. // have `batching_span_processor/0`
  11598. // as `otel.component.name`, the second one `batching_span_processor/1` and so
  11599. // on.
  11600. // These values will therefore be reused in the case of an application restart.
  11601. OTelComponentNameKey = attribute.Key("otel.component.name")
  11602. // OTelComponentTypeKey is the attribute Key conforming to the
  11603. // "otel.component.type" semantic conventions. It represents a name identifying
  11604. // the type of the OpenTelemetry component.
  11605. //
  11606. // Type: Enum
  11607. // RequirementLevel: Recommended
  11608. // Stability: Development
  11609. //
  11610. // Examples: "batching_span_processor", "com.example.MySpanExporter"
  11611. // Note: If none of the standardized values apply, implementations SHOULD use
  11612. // the language-defined name of the type.
  11613. // E.g. for Java the fully qualified classname SHOULD be used in this case.
  11614. OTelComponentTypeKey = attribute.Key("otel.component.type")
  11615. // OTelEventNameKey is the attribute Key conforming to the "otel.event.name"
  11616. // semantic conventions. It represents the identifies the class / type of event.
  11617. //
  11618. // Type: string
  11619. // RequirementLevel: Recommended
  11620. // Stability: Development
  11621. //
  11622. // Examples: "browser.mouse.click", "device.app.lifecycle"
  11623. // Note: This attribute SHOULD be used by non-OTLP exporters when destination
  11624. // does not support `EventName` or equivalent field. This attribute MAY be used
  11625. // by applications using existing logging libraries so that it can be used to
  11626. // set the `EventName` field by Collector or SDK components.
  11627. OTelEventNameKey = attribute.Key("otel.event.name")
  11628. // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
  11629. // semantic conventions. It represents the name of the instrumentation scope - (
  11630. // `InstrumentationScope.Name` in OTLP).
  11631. //
  11632. // Type: string
  11633. // RequirementLevel: Recommended
  11634. // Stability: Stable
  11635. //
  11636. // Examples: "io.opentelemetry.contrib.mongodb"
  11637. OTelScopeNameKey = attribute.Key("otel.scope.name")
  11638. // OTelScopeSchemaURLKey is the attribute Key conforming to the
  11639. // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
  11640. // the instrumentation scope.
  11641. //
  11642. // Type: string
  11643. // RequirementLevel: Recommended
  11644. // Stability: Development
  11645. //
  11646. // Examples: "https://opentelemetry.io/schemas/1.31.0"
  11647. OTelScopeSchemaURLKey = attribute.Key("otel.scope.schema_url")
  11648. // OTelScopeVersionKey is the attribute Key conforming to the
  11649. // "otel.scope.version" semantic conventions. It represents the version of the
  11650. // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
  11651. //
  11652. // Type: string
  11653. // RequirementLevel: Recommended
  11654. // Stability: Stable
  11655. //
  11656. // Examples: "1.0.0"
  11657. OTelScopeVersionKey = attribute.Key("otel.scope.version")
  11658. // OTelSpanParentOriginKey is the attribute Key conforming to the
  11659. // "otel.span.parent.origin" semantic conventions. It represents the determines
  11660. // whether the span has a parent span, and if so,
  11661. // [whether it is a remote parent].
  11662. //
  11663. // Type: Enum
  11664. // RequirementLevel: Recommended
  11665. // Stability: Development
  11666. //
  11667. // Examples:
  11668. //
  11669. // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
  11670. OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
  11671. // OTelSpanSamplingResultKey is the attribute Key conforming to the
  11672. // "otel.span.sampling_result" semantic conventions. It represents the result
  11673. // value of the sampler for this span.
  11674. //
  11675. // Type: Enum
  11676. // RequirementLevel: Recommended
  11677. // Stability: Development
  11678. //
  11679. // Examples:
  11680. OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
  11681. // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
  11682. // semantic conventions. It represents the name of the code, either "OK" or
  11683. // "ERROR". MUST NOT be set if the status code is UNSET.
  11684. //
  11685. // Type: Enum
  11686. // RequirementLevel: Recommended
  11687. // Stability: Stable
  11688. //
  11689. // Examples:
  11690. OTelStatusCodeKey = attribute.Key("otel.status_code")
  11691. // OTelStatusDescriptionKey is the attribute Key conforming to the
  11692. // "otel.status_description" semantic conventions. It represents the description
  11693. // of the Status if it has a value, otherwise not set.
  11694. //
  11695. // Type: string
  11696. // RequirementLevel: Recommended
  11697. // Stability: Stable
  11698. //
  11699. // Examples: "resource not found"
  11700. OTelStatusDescriptionKey = attribute.Key("otel.status_description")
  11701. )
  11702. // OTelComponentName returns an attribute KeyValue conforming to the
  11703. // "otel.component.name" semantic conventions. It represents a name uniquely
  11704. // identifying the instance of the OpenTelemetry component within its containing
  11705. // SDK instance.
  11706. func OTelComponentName(val string) attribute.KeyValue {
  11707. return OTelComponentNameKey.String(val)
  11708. }
  11709. // OTelEventName returns an attribute KeyValue conforming to the
  11710. // "otel.event.name" semantic conventions. It represents the identifies the class
  11711. // / type of event.
  11712. func OTelEventName(val string) attribute.KeyValue {
  11713. return OTelEventNameKey.String(val)
  11714. }
  11715. // OTelScopeName returns an attribute KeyValue conforming to the
  11716. // "otel.scope.name" semantic conventions. It represents the name of the
  11717. // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
  11718. func OTelScopeName(val string) attribute.KeyValue {
  11719. return OTelScopeNameKey.String(val)
  11720. }
  11721. // OTelScopeSchemaURL returns an attribute KeyValue conforming to the
  11722. // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
  11723. // the instrumentation scope.
  11724. func OTelScopeSchemaURL(val string) attribute.KeyValue {
  11725. return OTelScopeSchemaURLKey.String(val)
  11726. }
  11727. // OTelScopeVersion returns an attribute KeyValue conforming to the
  11728. // "otel.scope.version" semantic conventions. It represents the version of the
  11729. // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
  11730. func OTelScopeVersion(val string) attribute.KeyValue {
  11731. return OTelScopeVersionKey.String(val)
  11732. }
  11733. // OTelStatusDescription returns an attribute KeyValue conforming to the
  11734. // "otel.status_description" semantic conventions. It represents the description
  11735. // of the Status if it has a value, otherwise not set.
  11736. func OTelStatusDescription(val string) attribute.KeyValue {
  11737. return OTelStatusDescriptionKey.String(val)
  11738. }
  11739. // Enum values for otel.component.type
  11740. var (
  11741. // The builtin SDK batching span processor
  11742. //
  11743. // Stability: development
  11744. OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
  11745. // The builtin SDK simple span processor
  11746. //
  11747. // Stability: development
  11748. OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
  11749. // The builtin SDK batching log record processor
  11750. //
  11751. // Stability: development
  11752. OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
  11753. // The builtin SDK simple log record processor
  11754. //
  11755. // Stability: development
  11756. OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
  11757. // OTLP span exporter over gRPC with protobuf serialization
  11758. //
  11759. // Stability: development
  11760. OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
  11761. // OTLP span exporter over HTTP with protobuf serialization
  11762. //
  11763. // Stability: development
  11764. OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
  11765. // OTLP span exporter over HTTP with JSON serialization
  11766. //
  11767. // Stability: development
  11768. OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
  11769. // Zipkin span exporter over HTTP
  11770. //
  11771. // Stability: development
  11772. OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
  11773. // OTLP log record exporter over gRPC with protobuf serialization
  11774. //
  11775. // Stability: development
  11776. OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
  11777. // OTLP log record exporter over HTTP with protobuf serialization
  11778. //
  11779. // Stability: development
  11780. OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
  11781. // OTLP log record exporter over HTTP with JSON serialization
  11782. //
  11783. // Stability: development
  11784. OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
  11785. // The builtin SDK periodically exporting metric reader
  11786. //
  11787. // Stability: development
  11788. OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
  11789. // OTLP metric exporter over gRPC with protobuf serialization
  11790. //
  11791. // Stability: development
  11792. OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
  11793. // OTLP metric exporter over HTTP with protobuf serialization
  11794. //
  11795. // Stability: development
  11796. OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
  11797. // OTLP metric exporter over HTTP with JSON serialization
  11798. //
  11799. // Stability: development
  11800. OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
  11801. // Prometheus metric exporter over HTTP with the default text-based format
  11802. //
  11803. // Stability: development
  11804. OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
  11805. )
  11806. // Enum values for otel.span.parent.origin
  11807. var (
  11808. // The span does not have a parent, it is a root span
  11809. // Stability: development
  11810. OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
  11811. // The span has a parent and the parent's span context [isRemote()] is false
  11812. // Stability: development
  11813. //
  11814. // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
  11815. OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
  11816. // The span has a parent and the parent's span context [isRemote()] is true
  11817. // Stability: development
  11818. //
  11819. // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
  11820. OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
  11821. )
  11822. // Enum values for otel.span.sampling_result
  11823. var (
  11824. // The span is not sampled and not recording
  11825. // Stability: development
  11826. OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
  11827. // The span is not sampled, but recording
  11828. // Stability: development
  11829. OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
  11830. // The span is sampled and recording
  11831. // Stability: development
  11832. OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
  11833. )
  11834. // Enum values for otel.status_code
  11835. var (
  11836. // The operation has been validated by an Application developer or Operator to
  11837. // have completed successfully.
  11838. // Stability: stable
  11839. OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
  11840. // The operation contains an error.
  11841. // Stability: stable
  11842. OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
  11843. )
  11844. // Namespace: pprof
  11845. const (
  11846. // PprofLocationIsFoldedKey is the attribute Key conforming to the
  11847. // "pprof.location.is_folded" semantic conventions. It represents the provides
  11848. // an indication that multiple symbols map to this location's address, for
  11849. // example due to identical code folding by the linker. In that case the line
  11850. // information represents one of the multiple symbols. This field must be
  11851. // recomputed when the symbolization state of the profile changes.
  11852. //
  11853. // Type: boolean
  11854. // RequirementLevel: Recommended
  11855. // Stability: Development
  11856. //
  11857. // Examples:
  11858. PprofLocationIsFoldedKey = attribute.Key("pprof.location.is_folded")
  11859. // PprofMappingHasFilenamesKey is the attribute Key conforming to the
  11860. // "pprof.mapping.has_filenames" semantic conventions. It represents the
  11861. // indicates that there are filenames related to this mapping.
  11862. //
  11863. // Type: boolean
  11864. // RequirementLevel: Recommended
  11865. // Stability: Development
  11866. //
  11867. // Examples:
  11868. PprofMappingHasFilenamesKey = attribute.Key("pprof.mapping.has_filenames")
  11869. // PprofMappingHasFunctionsKey is the attribute Key conforming to the
  11870. // "pprof.mapping.has_functions" semantic conventions. It represents the
  11871. // indicates that there are functions related to this mapping.
  11872. //
  11873. // Type: boolean
  11874. // RequirementLevel: Recommended
  11875. // Stability: Development
  11876. //
  11877. // Examples:
  11878. PprofMappingHasFunctionsKey = attribute.Key("pprof.mapping.has_functions")
  11879. // PprofMappingHasInlineFramesKey is the attribute Key conforming to the
  11880. // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
  11881. // indicates that there are inline frames related to this mapping.
  11882. //
  11883. // Type: boolean
  11884. // RequirementLevel: Recommended
  11885. // Stability: Development
  11886. //
  11887. // Examples:
  11888. PprofMappingHasInlineFramesKey = attribute.Key("pprof.mapping.has_inline_frames")
  11889. // PprofMappingHasLineNumbersKey is the attribute Key conforming to the
  11890. // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
  11891. // indicates that there are line numbers related to this mapping.
  11892. //
  11893. // Type: boolean
  11894. // RequirementLevel: Recommended
  11895. // Stability: Development
  11896. //
  11897. // Examples:
  11898. PprofMappingHasLineNumbersKey = attribute.Key("pprof.mapping.has_line_numbers")
  11899. // PprofProfileCommentKey is the attribute Key conforming to the
  11900. // "pprof.profile.comment" semantic conventions. It represents the free-form
  11901. // text associated with the profile. This field should not be used to store any
  11902. // machine-readable information, it is only for human-friendly content.
  11903. //
  11904. // Type: string[]
  11905. // RequirementLevel: Recommended
  11906. // Stability: Development
  11907. //
  11908. // Examples: "hello world", "bazinga"
  11909. PprofProfileCommentKey = attribute.Key("pprof.profile.comment")
  11910. // PprofProfileDocURLKey is the attribute Key conforming to the
  11911. // "pprof.profile.doc_url" semantic conventions. It represents the documentation
  11912. // link for this profile type.
  11913. //
  11914. // Type: string
  11915. // RequirementLevel: Recommended
  11916. // Stability: Development
  11917. //
  11918. // Examples: "http://pprof.example.com/cpu-profile.html"
  11919. // Note: The URL must be absolute and may be missing if the profile was
  11920. // generated by code that did not supply a link
  11921. PprofProfileDocURLKey = attribute.Key("pprof.profile.doc_url")
  11922. // PprofProfileDropFramesKey is the attribute Key conforming to the
  11923. // "pprof.profile.drop_frames" semantic conventions. It represents the frames
  11924. // with Function.function_name fully matching the regexp will be dropped from
  11925. // the samples, along with their successors.
  11926. //
  11927. // Type: string
  11928. // RequirementLevel: Recommended
  11929. // Stability: Development
  11930. //
  11931. // Examples: "/foobar/"
  11932. PprofProfileDropFramesKey = attribute.Key("pprof.profile.drop_frames")
  11933. // PprofProfileKeepFramesKey is the attribute Key conforming to the
  11934. // "pprof.profile.keep_frames" semantic conventions. It represents the frames
  11935. // with Function.function_name fully matching the regexp will be kept, even if
  11936. // it matches drop_frames.
  11937. //
  11938. // Type: string
  11939. // RequirementLevel: Recommended
  11940. // Stability: Development
  11941. //
  11942. // Examples: "/bazinga/"
  11943. PprofProfileKeepFramesKey = attribute.Key("pprof.profile.keep_frames")
  11944. // PprofScopeDefaultSampleTypeKey is the attribute Key conforming to the
  11945. // "pprof.scope.default_sample_type" semantic conventions. It represents the
  11946. // records the pprof's default_sample_type in the original profile. Not set if
  11947. // the default sample type was missing.
  11948. //
  11949. // Type: string
  11950. // RequirementLevel: Recommended
  11951. // Stability: Development
  11952. //
  11953. // Examples: "cpu"
  11954. // Note: This attribute, if present, MUST be set at the scope level
  11955. // (resource_profiles[].scope_profiles[].scope.attributes[]).
  11956. PprofScopeDefaultSampleTypeKey = attribute.Key("pprof.scope.default_sample_type")
  11957. // PprofScopeSampleTypeOrderKey is the attribute Key conforming to the
  11958. // "pprof.scope.sample_type_order" semantic conventions. It represents the
  11959. // records the indexes of the sample types in the original profile.
  11960. //
  11961. // Type: int[]
  11962. // RequirementLevel: Recommended
  11963. // Stability: Development
  11964. //
  11965. // Examples: 3, 0, 1, 2
  11966. // Note: This attribute, if present, MUST be set at the scope level
  11967. // (resource_profiles[].scope_profiles[].scope.attributes[]).
  11968. PprofScopeSampleTypeOrderKey = attribute.Key("pprof.scope.sample_type_order")
  11969. )
  11970. // PprofLocationIsFolded returns an attribute KeyValue conforming to the
  11971. // "pprof.location.is_folded" semantic conventions. It represents the provides an
  11972. // indication that multiple symbols map to this location's address, for example
  11973. // due to identical code folding by the linker. In that case the line information
  11974. // represents one of the multiple symbols. This field must be recomputed when the
  11975. // symbolization state of the profile changes.
  11976. func PprofLocationIsFolded(val bool) attribute.KeyValue {
  11977. return PprofLocationIsFoldedKey.Bool(val)
  11978. }
  11979. // PprofMappingHasFilenames returns an attribute KeyValue conforming to the
  11980. // "pprof.mapping.has_filenames" semantic conventions. It represents the
  11981. // indicates that there are filenames related to this mapping.
  11982. func PprofMappingHasFilenames(val bool) attribute.KeyValue {
  11983. return PprofMappingHasFilenamesKey.Bool(val)
  11984. }
  11985. // PprofMappingHasFunctions returns an attribute KeyValue conforming to the
  11986. // "pprof.mapping.has_functions" semantic conventions. It represents the
  11987. // indicates that there are functions related to this mapping.
  11988. func PprofMappingHasFunctions(val bool) attribute.KeyValue {
  11989. return PprofMappingHasFunctionsKey.Bool(val)
  11990. }
  11991. // PprofMappingHasInlineFrames returns an attribute KeyValue conforming to the
  11992. // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
  11993. // indicates that there are inline frames related to this mapping.
  11994. func PprofMappingHasInlineFrames(val bool) attribute.KeyValue {
  11995. return PprofMappingHasInlineFramesKey.Bool(val)
  11996. }
  11997. // PprofMappingHasLineNumbers returns an attribute KeyValue conforming to the
  11998. // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
  11999. // indicates that there are line numbers related to this mapping.
  12000. func PprofMappingHasLineNumbers(val bool) attribute.KeyValue {
  12001. return PprofMappingHasLineNumbersKey.Bool(val)
  12002. }
  12003. // PprofProfileComment returns an attribute KeyValue conforming to the
  12004. // "pprof.profile.comment" semantic conventions. It represents the free-form text
  12005. // associated with the profile. This field should not be used to store any
  12006. // machine-readable information, it is only for human-friendly content.
  12007. func PprofProfileComment(val ...string) attribute.KeyValue {
  12008. return PprofProfileCommentKey.StringSlice(val)
  12009. }
  12010. // PprofProfileDocURL returns an attribute KeyValue conforming to the
  12011. // "pprof.profile.doc_url" semantic conventions. It represents the documentation
  12012. // link for this profile type.
  12013. func PprofProfileDocURL(val string) attribute.KeyValue {
  12014. return PprofProfileDocURLKey.String(val)
  12015. }
  12016. // PprofProfileDropFrames returns an attribute KeyValue conforming to the
  12017. // "pprof.profile.drop_frames" semantic conventions. It represents the frames
  12018. // with Function.function_name fully matching the regexp will be dropped from the
  12019. // samples, along with their successors.
  12020. func PprofProfileDropFrames(val string) attribute.KeyValue {
  12021. return PprofProfileDropFramesKey.String(val)
  12022. }
  12023. // PprofProfileKeepFrames returns an attribute KeyValue conforming to the
  12024. // "pprof.profile.keep_frames" semantic conventions. It represents the frames
  12025. // with Function.function_name fully matching the regexp will be kept, even if it
  12026. // matches drop_frames.
  12027. func PprofProfileKeepFrames(val string) attribute.KeyValue {
  12028. return PprofProfileKeepFramesKey.String(val)
  12029. }
  12030. // PprofScopeDefaultSampleType returns an attribute KeyValue conforming to the
  12031. // "pprof.scope.default_sample_type" semantic conventions. It represents the
  12032. // records the pprof's default_sample_type in the original profile. Not set if
  12033. // the default sample type was missing.
  12034. func PprofScopeDefaultSampleType(val string) attribute.KeyValue {
  12035. return PprofScopeDefaultSampleTypeKey.String(val)
  12036. }
  12037. // PprofScopeSampleTypeOrder returns an attribute KeyValue conforming to the
  12038. // "pprof.scope.sample_type_order" semantic conventions. It represents the
  12039. // records the indexes of the sample types in the original profile.
  12040. func PprofScopeSampleTypeOrder(val ...int) attribute.KeyValue {
  12041. return PprofScopeSampleTypeOrderKey.IntSlice(val)
  12042. }
  12043. // Namespace: process
  12044. const (
  12045. // ProcessArgsCountKey is the attribute Key conforming to the
  12046. // "process.args_count" semantic conventions. It represents the length of the
  12047. // process.command_args array.
  12048. //
  12049. // Type: int
  12050. // RequirementLevel: Recommended
  12051. // Stability: Development
  12052. //
  12053. // Examples: 4
  12054. // Note: This field can be useful for querying or performing bucket analysis on
  12055. // how many arguments were provided to start a process. More arguments may be an
  12056. // indication of suspicious activity.
  12057. ProcessArgsCountKey = attribute.Key("process.args_count")
  12058. // ProcessCommandKey is the attribute Key conforming to the "process.command"
  12059. // semantic conventions. It represents the command used to launch the process
  12060. // (i.e. the command name). On Linux based systems, can be set to the zeroth
  12061. // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
  12062. // extracted from `GetCommandLineW`.
  12063. //
  12064. // Type: string
  12065. // RequirementLevel: Recommended
  12066. // Stability: Development
  12067. //
  12068. // Examples: "cmd/otelcol"
  12069. ProcessCommandKey = attribute.Key("process.command")
  12070. // ProcessCommandArgsKey is the attribute Key conforming to the
  12071. // "process.command_args" semantic conventions. It represents the all the
  12072. // command arguments (including the command/executable itself) as received by
  12073. // the process. On Linux-based systems (and some other Unixoid systems
  12074. // supporting procfs), can be set according to the list of null-delimited
  12075. // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
  12076. // would be the full argv vector passed to `main`. SHOULD NOT be collected by
  12077. // default unless there is sanitization that excludes sensitive data.
  12078. //
  12079. // Type: string[]
  12080. // RequirementLevel: Recommended
  12081. // Stability: Development
  12082. //
  12083. // Examples: "cmd/otecol", "--config=config.yaml"
  12084. ProcessCommandArgsKey = attribute.Key("process.command_args")
  12085. // ProcessCommandLineKey is the attribute Key conforming to the
  12086. // "process.command_line" semantic conventions. It represents the full command
  12087. // used to launch the process as a single string representing the full command.
  12088. // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
  12089. // you have to assemble it just for monitoring; use `process.command_args`
  12090. // instead. SHOULD NOT be collected by default unless there is sanitization that
  12091. // excludes sensitive data.
  12092. //
  12093. // Type: string
  12094. // RequirementLevel: Recommended
  12095. // Stability: Development
  12096. //
  12097. // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
  12098. ProcessCommandLineKey = attribute.Key("process.command_line")
  12099. // ProcessContextSwitchTypeKey is the attribute Key conforming to the
  12100. // "process.context_switch.type" semantic conventions. It represents the
  12101. // specifies whether the context switches for this data point were voluntary or
  12102. // involuntary.
  12103. //
  12104. // Type: Enum
  12105. // RequirementLevel: Recommended
  12106. // Stability: Development
  12107. //
  12108. // Examples:
  12109. ProcessContextSwitchTypeKey = attribute.Key("process.context_switch.type")
  12110. // ProcessCreationTimeKey is the attribute Key conforming to the
  12111. // "process.creation.time" semantic conventions. It represents the date and time
  12112. // the process was created, in ISO 8601 format.
  12113. //
  12114. // Type: string
  12115. // RequirementLevel: Recommended
  12116. // Stability: Development
  12117. //
  12118. // Examples: "2023-11-21T09:25:34.853Z"
  12119. ProcessCreationTimeKey = attribute.Key("process.creation.time")
  12120. // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
  12121. // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
  12122. // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
  12123. //
  12124. // Type: string
  12125. // RequirementLevel: Recommended
  12126. // Stability: Development
  12127. //
  12128. // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
  12129. ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
  12130. // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
  12131. // "process.executable.build_id.go" semantic conventions. It represents the Go
  12132. // build ID as retrieved by `go tool buildid <go executable>`.
  12133. //
  12134. // Type: string
  12135. // RequirementLevel: Recommended
  12136. // Stability: Development
  12137. //
  12138. // Examples:
  12139. // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
  12140. ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
  12141. // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
  12142. // "process.executable.build_id.htlhash" semantic conventions. It represents the
  12143. // profiling specific build ID for executables. See the OTel specification for
  12144. // Profiles for more information.
  12145. //
  12146. // Type: string
  12147. // RequirementLevel: Recommended
  12148. // Stability: Development
  12149. //
  12150. // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
  12151. ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
  12152. // ProcessExecutableNameKey is the attribute Key conforming to the
  12153. // "process.executable.name" semantic conventions. It represents the name of the
  12154. // process executable. On Linux based systems, this SHOULD be set to the base
  12155. // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
  12156. // the base name of `GetProcessImageFileNameW`.
  12157. //
  12158. // Type: string
  12159. // RequirementLevel: Recommended
  12160. // Stability: Development
  12161. //
  12162. // Examples: "otelcol"
  12163. ProcessExecutableNameKey = attribute.Key("process.executable.name")
  12164. // ProcessExecutablePathKey is the attribute Key conforming to the
  12165. // "process.executable.path" semantic conventions. It represents the full path
  12166. // to the process executable. On Linux based systems, can be set to the target
  12167. // of `proc/[pid]/exe`. On Windows, can be set to the result of
  12168. // `GetProcessImageFileNameW`.
  12169. //
  12170. // Type: string
  12171. // RequirementLevel: Recommended
  12172. // Stability: Development
  12173. //
  12174. // Examples: "/usr/bin/cmd/otelcol"
  12175. ProcessExecutablePathKey = attribute.Key("process.executable.path")
  12176. // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
  12177. // semantic conventions. It represents the exit code of the process.
  12178. //
  12179. // Type: int
  12180. // RequirementLevel: Recommended
  12181. // Stability: Development
  12182. //
  12183. // Examples: 127
  12184. ProcessExitCodeKey = attribute.Key("process.exit.code")
  12185. // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
  12186. // semantic conventions. It represents the date and time the process exited, in
  12187. // ISO 8601 format.
  12188. //
  12189. // Type: string
  12190. // RequirementLevel: Recommended
  12191. // Stability: Development
  12192. //
  12193. // Examples: "2023-11-21T09:26:12.315Z"
  12194. ProcessExitTimeKey = attribute.Key("process.exit.time")
  12195. // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
  12196. // "process.group_leader.pid" semantic conventions. It represents the PID of the
  12197. // process's group leader. This is also the process group ID (PGID) of the
  12198. // process.
  12199. //
  12200. // Type: int
  12201. // RequirementLevel: Recommended
  12202. // Stability: Development
  12203. //
  12204. // Examples: 23
  12205. ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
  12206. // ProcessInteractiveKey is the attribute Key conforming to the
  12207. // "process.interactive" semantic conventions. It represents the whether the
  12208. // process is connected to an interactive shell.
  12209. //
  12210. // Type: boolean
  12211. // RequirementLevel: Recommended
  12212. // Stability: Development
  12213. //
  12214. // Examples:
  12215. ProcessInteractiveKey = attribute.Key("process.interactive")
  12216. // ProcessLinuxCgroupKey is the attribute Key conforming to the
  12217. // "process.linux.cgroup" semantic conventions. It represents the control group
  12218. // associated with the process.
  12219. //
  12220. // Type: string
  12221. // RequirementLevel: Recommended
  12222. // Stability: Development
  12223. //
  12224. // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
  12225. // "0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
  12226. // Note: Control groups (cgroups) are a kernel feature used to organize and
  12227. // manage process resources. This attribute provides the path(s) to the
  12228. // cgroup(s) associated with the process, which should match the contents of the
  12229. // [/proc/[PID]/cgroup] file.
  12230. //
  12231. // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
  12232. ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
  12233. // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
  12234. // semantic conventions. It represents the username of the user that owns the
  12235. // process.
  12236. //
  12237. // Type: string
  12238. // RequirementLevel: Recommended
  12239. // Stability: Development
  12240. //
  12241. // Examples: "root"
  12242. ProcessOwnerKey = attribute.Key("process.owner")
  12243. // ProcessParentPIDKey is the attribute Key conforming to the
  12244. // "process.parent_pid" semantic conventions. It represents the parent Process
  12245. // identifier (PPID).
  12246. //
  12247. // Type: int
  12248. // RequirementLevel: Recommended
  12249. // Stability: Development
  12250. //
  12251. // Examples: 111
  12252. ProcessParentPIDKey = attribute.Key("process.parent_pid")
  12253. // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
  12254. // conventions. It represents the process identifier (PID).
  12255. //
  12256. // Type: int
  12257. // RequirementLevel: Recommended
  12258. // Stability: Development
  12259. //
  12260. // Examples: 1234
  12261. ProcessPIDKey = attribute.Key("process.pid")
  12262. // ProcessRealUserIDKey is the attribute Key conforming to the
  12263. // "process.real_user.id" semantic conventions. It represents the real user ID
  12264. // (RUID) of the process.
  12265. //
  12266. // Type: int
  12267. // RequirementLevel: Recommended
  12268. // Stability: Development
  12269. //
  12270. // Examples: 1000
  12271. ProcessRealUserIDKey = attribute.Key("process.real_user.id")
  12272. // ProcessRealUserNameKey is the attribute Key conforming to the
  12273. // "process.real_user.name" semantic conventions. It represents the username of
  12274. // the real user of the process.
  12275. //
  12276. // Type: string
  12277. // RequirementLevel: Recommended
  12278. // Stability: Development
  12279. //
  12280. // Examples: "operator"
  12281. ProcessRealUserNameKey = attribute.Key("process.real_user.name")
  12282. // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
  12283. // "process.runtime.description" semantic conventions. It represents an
  12284. // additional description about the runtime of the process, for example a
  12285. // specific vendor customization of the runtime environment.
  12286. //
  12287. // Type: string
  12288. // RequirementLevel: Recommended
  12289. // Stability: Development
  12290. //
  12291. // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
  12292. ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
  12293. // ProcessRuntimeNameKey is the attribute Key conforming to the
  12294. // "process.runtime.name" semantic conventions. It represents the name of the
  12295. // runtime of this process.
  12296. //
  12297. // Type: string
  12298. // RequirementLevel: Recommended
  12299. // Stability: Development
  12300. //
  12301. // Examples: "OpenJDK Runtime Environment"
  12302. ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
  12303. // ProcessRuntimeVersionKey is the attribute Key conforming to the
  12304. // "process.runtime.version" semantic conventions. It represents the version of
  12305. // the runtime of this process, as returned by the runtime without modification.
  12306. //
  12307. // Type: string
  12308. // RequirementLevel: Recommended
  12309. // Stability: Development
  12310. //
  12311. // Examples: 14.0.2
  12312. ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
  12313. // ProcessSavedUserIDKey is the attribute Key conforming to the
  12314. // "process.saved_user.id" semantic conventions. It represents the saved user ID
  12315. // (SUID) of the process.
  12316. //
  12317. // Type: int
  12318. // RequirementLevel: Recommended
  12319. // Stability: Development
  12320. //
  12321. // Examples: 1002
  12322. ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
  12323. // ProcessSavedUserNameKey is the attribute Key conforming to the
  12324. // "process.saved_user.name" semantic conventions. It represents the username of
  12325. // the saved user.
  12326. //
  12327. // Type: string
  12328. // RequirementLevel: Recommended
  12329. // Stability: Development
  12330. //
  12331. // Examples: "operator"
  12332. ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
  12333. // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
  12334. // "process.session_leader.pid" semantic conventions. It represents the PID of
  12335. // the process's session leader. This is also the session ID (SID) of the
  12336. // process.
  12337. //
  12338. // Type: int
  12339. // RequirementLevel: Recommended
  12340. // Stability: Development
  12341. //
  12342. // Examples: 14
  12343. ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
  12344. // ProcessStateKey is the attribute Key conforming to the "process.state"
  12345. // semantic conventions. It represents the process state, e.g.,
  12346. // [Linux Process State Codes].
  12347. //
  12348. // Type: Enum
  12349. // RequirementLevel: Recommended
  12350. // Stability: Development
  12351. //
  12352. // Examples: "running"
  12353. //
  12354. // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
  12355. ProcessStateKey = attribute.Key("process.state")
  12356. // ProcessTitleKey is the attribute Key conforming to the "process.title"
  12357. // semantic conventions. It represents the process title (proctitle).
  12358. //
  12359. // Type: string
  12360. // RequirementLevel: Recommended
  12361. // Stability: Development
  12362. //
  12363. // Examples: "cat /etc/hostname", "xfce4-session", "bash"
  12364. // Note: In many Unix-like systems, process title (proctitle), is the string
  12365. // that represents the name or command line of a running process, displayed by
  12366. // system monitoring tools like ps, top, and htop.
  12367. ProcessTitleKey = attribute.Key("process.title")
  12368. // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
  12369. // semantic conventions. It represents the effective user ID (EUID) of the
  12370. // process.
  12371. //
  12372. // Type: int
  12373. // RequirementLevel: Recommended
  12374. // Stability: Development
  12375. //
  12376. // Examples: 1001
  12377. ProcessUserIDKey = attribute.Key("process.user.id")
  12378. // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
  12379. // semantic conventions. It represents the username of the effective user of the
  12380. // process.
  12381. //
  12382. // Type: string
  12383. // RequirementLevel: Recommended
  12384. // Stability: Development
  12385. //
  12386. // Examples: "root"
  12387. ProcessUserNameKey = attribute.Key("process.user.name")
  12388. // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
  12389. // conventions. It represents the virtual process identifier.
  12390. //
  12391. // Type: int
  12392. // RequirementLevel: Recommended
  12393. // Stability: Development
  12394. //
  12395. // Examples: 12
  12396. // Note: The process ID within a PID namespace. This is not necessarily unique
  12397. // across all processes on the host but it is unique within the process
  12398. // namespace that the process exists within.
  12399. ProcessVpidKey = attribute.Key("process.vpid")
  12400. // ProcessWorkingDirectoryKey is the attribute Key conforming to the
  12401. // "process.working_directory" semantic conventions. It represents the working
  12402. // directory of the process.
  12403. //
  12404. // Type: string
  12405. // RequirementLevel: Recommended
  12406. // Stability: Development
  12407. //
  12408. // Examples: "/root"
  12409. ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
  12410. )
  12411. // ProcessArgsCount returns an attribute KeyValue conforming to the
  12412. // "process.args_count" semantic conventions. It represents the length of the
  12413. // process.command_args array.
  12414. func ProcessArgsCount(val int) attribute.KeyValue {
  12415. return ProcessArgsCountKey.Int(val)
  12416. }
  12417. // ProcessCommand returns an attribute KeyValue conforming to the
  12418. // "process.command" semantic conventions. It represents the command used to
  12419. // launch the process (i.e. the command name). On Linux based systems, can be set
  12420. // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
  12421. // first parameter extracted from `GetCommandLineW`.
  12422. func ProcessCommand(val string) attribute.KeyValue {
  12423. return ProcessCommandKey.String(val)
  12424. }
  12425. // ProcessCommandArgs returns an attribute KeyValue conforming to the
  12426. // "process.command_args" semantic conventions. It represents the all the command
  12427. // arguments (including the command/executable itself) as received by the
  12428. // process. On Linux-based systems (and some other Unixoid systems supporting
  12429. // procfs), can be set according to the list of null-delimited strings extracted
  12430. // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
  12431. // argv vector passed to `main`. SHOULD NOT be collected by default unless there
  12432. // is sanitization that excludes sensitive data.
  12433. func ProcessCommandArgs(val ...string) attribute.KeyValue {
  12434. return ProcessCommandArgsKey.StringSlice(val)
  12435. }
  12436. // ProcessCommandLine returns an attribute KeyValue conforming to the
  12437. // "process.command_line" semantic conventions. It represents the full command
  12438. // used to launch the process as a single string representing the full command.
  12439. // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
  12440. // you have to assemble it just for monitoring; use `process.command_args`
  12441. // instead. SHOULD NOT be collected by default unless there is sanitization that
  12442. // excludes sensitive data.
  12443. func ProcessCommandLine(val string) attribute.KeyValue {
  12444. return ProcessCommandLineKey.String(val)
  12445. }
  12446. // ProcessCreationTime returns an attribute KeyValue conforming to the
  12447. // "process.creation.time" semantic conventions. It represents the date and time
  12448. // the process was created, in ISO 8601 format.
  12449. func ProcessCreationTime(val string) attribute.KeyValue {
  12450. return ProcessCreationTimeKey.String(val)
  12451. }
  12452. // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
  12453. // "process.environment_variable" semantic conventions. It represents the process
  12454. // environment variables, `<key>` being the environment variable name, the value
  12455. // being the environment variable value.
  12456. func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
  12457. return attribute.String("process.environment_variable."+key, val)
  12458. }
  12459. // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
  12460. // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
  12461. // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
  12462. func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
  12463. return ProcessExecutableBuildIDGNUKey.String(val)
  12464. }
  12465. // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
  12466. // "process.executable.build_id.go" semantic conventions. It represents the Go
  12467. // build ID as retrieved by `go tool buildid <go executable>`.
  12468. func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
  12469. return ProcessExecutableBuildIDGoKey.String(val)
  12470. }
  12471. // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
  12472. // the "process.executable.build_id.htlhash" semantic conventions. It represents
  12473. // the profiling specific build ID for executables. See the OTel specification
  12474. // for Profiles for more information.
  12475. func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
  12476. return ProcessExecutableBuildIDHtlhashKey.String(val)
  12477. }
  12478. // ProcessExecutableName returns an attribute KeyValue conforming to the
  12479. // "process.executable.name" semantic conventions. It represents the name of the
  12480. // process executable. On Linux based systems, this SHOULD be set to the base
  12481. // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
  12482. // base name of `GetProcessImageFileNameW`.
  12483. func ProcessExecutableName(val string) attribute.KeyValue {
  12484. return ProcessExecutableNameKey.String(val)
  12485. }
  12486. // ProcessExecutablePath returns an attribute KeyValue conforming to the
  12487. // "process.executable.path" semantic conventions. It represents the full path to
  12488. // the process executable. On Linux based systems, can be set to the target of
  12489. // `proc/[pid]/exe`. On Windows, can be set to the result of
  12490. // `GetProcessImageFileNameW`.
  12491. func ProcessExecutablePath(val string) attribute.KeyValue {
  12492. return ProcessExecutablePathKey.String(val)
  12493. }
  12494. // ProcessExitCode returns an attribute KeyValue conforming to the
  12495. // "process.exit.code" semantic conventions. It represents the exit code of the
  12496. // process.
  12497. func ProcessExitCode(val int) attribute.KeyValue {
  12498. return ProcessExitCodeKey.Int(val)
  12499. }
  12500. // ProcessExitTime returns an attribute KeyValue conforming to the
  12501. // "process.exit.time" semantic conventions. It represents the date and time the
  12502. // process exited, in ISO 8601 format.
  12503. func ProcessExitTime(val string) attribute.KeyValue {
  12504. return ProcessExitTimeKey.String(val)
  12505. }
  12506. // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
  12507. // "process.group_leader.pid" semantic conventions. It represents the PID of the
  12508. // process's group leader. This is also the process group ID (PGID) of the
  12509. // process.
  12510. func ProcessGroupLeaderPID(val int) attribute.KeyValue {
  12511. return ProcessGroupLeaderPIDKey.Int(val)
  12512. }
  12513. // ProcessInteractive returns an attribute KeyValue conforming to the
  12514. // "process.interactive" semantic conventions. It represents the whether the
  12515. // process is connected to an interactive shell.
  12516. func ProcessInteractive(val bool) attribute.KeyValue {
  12517. return ProcessInteractiveKey.Bool(val)
  12518. }
  12519. // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
  12520. // "process.linux.cgroup" semantic conventions. It represents the control group
  12521. // associated with the process.
  12522. func ProcessLinuxCgroup(val string) attribute.KeyValue {
  12523. return ProcessLinuxCgroupKey.String(val)
  12524. }
  12525. // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
  12526. // semantic conventions. It represents the username of the user that owns the
  12527. // process.
  12528. func ProcessOwner(val string) attribute.KeyValue {
  12529. return ProcessOwnerKey.String(val)
  12530. }
  12531. // ProcessParentPID returns an attribute KeyValue conforming to the
  12532. // "process.parent_pid" semantic conventions. It represents the parent Process
  12533. // identifier (PPID).
  12534. func ProcessParentPID(val int) attribute.KeyValue {
  12535. return ProcessParentPIDKey.Int(val)
  12536. }
  12537. // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
  12538. // semantic conventions. It represents the process identifier (PID).
  12539. func ProcessPID(val int) attribute.KeyValue {
  12540. return ProcessPIDKey.Int(val)
  12541. }
  12542. // ProcessRealUserID returns an attribute KeyValue conforming to the
  12543. // "process.real_user.id" semantic conventions. It represents the real user ID
  12544. // (RUID) of the process.
  12545. func ProcessRealUserID(val int) attribute.KeyValue {
  12546. return ProcessRealUserIDKey.Int(val)
  12547. }
  12548. // ProcessRealUserName returns an attribute KeyValue conforming to the
  12549. // "process.real_user.name" semantic conventions. It represents the username of
  12550. // the real user of the process.
  12551. func ProcessRealUserName(val string) attribute.KeyValue {
  12552. return ProcessRealUserNameKey.String(val)
  12553. }
  12554. // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
  12555. // "process.runtime.description" semantic conventions. It represents an
  12556. // additional description about the runtime of the process, for example a
  12557. // specific vendor customization of the runtime environment.
  12558. func ProcessRuntimeDescription(val string) attribute.KeyValue {
  12559. return ProcessRuntimeDescriptionKey.String(val)
  12560. }
  12561. // ProcessRuntimeName returns an attribute KeyValue conforming to the
  12562. // "process.runtime.name" semantic conventions. It represents the name of the
  12563. // runtime of this process.
  12564. func ProcessRuntimeName(val string) attribute.KeyValue {
  12565. return ProcessRuntimeNameKey.String(val)
  12566. }
  12567. // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
  12568. // "process.runtime.version" semantic conventions. It represents the version of
  12569. // the runtime of this process, as returned by the runtime without modification.
  12570. func ProcessRuntimeVersion(val string) attribute.KeyValue {
  12571. return ProcessRuntimeVersionKey.String(val)
  12572. }
  12573. // ProcessSavedUserID returns an attribute KeyValue conforming to the
  12574. // "process.saved_user.id" semantic conventions. It represents the saved user ID
  12575. // (SUID) of the process.
  12576. func ProcessSavedUserID(val int) attribute.KeyValue {
  12577. return ProcessSavedUserIDKey.Int(val)
  12578. }
  12579. // ProcessSavedUserName returns an attribute KeyValue conforming to the
  12580. // "process.saved_user.name" semantic conventions. It represents the username of
  12581. // the saved user.
  12582. func ProcessSavedUserName(val string) attribute.KeyValue {
  12583. return ProcessSavedUserNameKey.String(val)
  12584. }
  12585. // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
  12586. // "process.session_leader.pid" semantic conventions. It represents the PID of
  12587. // the process's session leader. This is also the session ID (SID) of the
  12588. // process.
  12589. func ProcessSessionLeaderPID(val int) attribute.KeyValue {
  12590. return ProcessSessionLeaderPIDKey.Int(val)
  12591. }
  12592. // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
  12593. // semantic conventions. It represents the process title (proctitle).
  12594. func ProcessTitle(val string) attribute.KeyValue {
  12595. return ProcessTitleKey.String(val)
  12596. }
  12597. // ProcessUserID returns an attribute KeyValue conforming to the
  12598. // "process.user.id" semantic conventions. It represents the effective user ID
  12599. // (EUID) of the process.
  12600. func ProcessUserID(val int) attribute.KeyValue {
  12601. return ProcessUserIDKey.Int(val)
  12602. }
  12603. // ProcessUserName returns an attribute KeyValue conforming to the
  12604. // "process.user.name" semantic conventions. It represents the username of the
  12605. // effective user of the process.
  12606. func ProcessUserName(val string) attribute.KeyValue {
  12607. return ProcessUserNameKey.String(val)
  12608. }
  12609. // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
  12610. // semantic conventions. It represents the virtual process identifier.
  12611. func ProcessVpid(val int) attribute.KeyValue {
  12612. return ProcessVpidKey.Int(val)
  12613. }
  12614. // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
  12615. // "process.working_directory" semantic conventions. It represents the working
  12616. // directory of the process.
  12617. func ProcessWorkingDirectory(val string) attribute.KeyValue {
  12618. return ProcessWorkingDirectoryKey.String(val)
  12619. }
  12620. // Enum values for process.context_switch.type
  12621. var (
  12622. // voluntary
  12623. // Stability: development
  12624. ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
  12625. // involuntary
  12626. // Stability: development
  12627. ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
  12628. )
  12629. // Enum values for process.state
  12630. var (
  12631. // running
  12632. // Stability: development
  12633. ProcessStateRunning = ProcessStateKey.String("running")
  12634. // sleeping
  12635. // Stability: development
  12636. ProcessStateSleeping = ProcessStateKey.String("sleeping")
  12637. // stopped
  12638. // Stability: development
  12639. ProcessStateStopped = ProcessStateKey.String("stopped")
  12640. // defunct
  12641. // Stability: development
  12642. ProcessStateDefunct = ProcessStateKey.String("defunct")
  12643. )
  12644. // Namespace: profile
  12645. const (
  12646. // ProfileFrameTypeKey is the attribute Key conforming to the
  12647. // "profile.frame.type" semantic conventions. It represents the describes the
  12648. // interpreter or compiler of a single frame.
  12649. //
  12650. // Type: Enum
  12651. // RequirementLevel: Recommended
  12652. // Stability: Development
  12653. //
  12654. // Examples: "cpython"
  12655. ProfileFrameTypeKey = attribute.Key("profile.frame.type")
  12656. )
  12657. // Enum values for profile.frame.type
  12658. var (
  12659. // [.NET]
  12660. //
  12661. // Stability: development
  12662. //
  12663. // [.NET]: https://wikipedia.org/wiki/.NET
  12664. ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
  12665. // [JVM]
  12666. //
  12667. // Stability: development
  12668. //
  12669. // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
  12670. ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
  12671. // [Kernel]
  12672. //
  12673. // Stability: development
  12674. //
  12675. // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
  12676. ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
  12677. // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
  12678. // more precise value MUST be used.
  12679. //
  12680. // Stability: development
  12681. //
  12682. // [C]: https://wikipedia.org/wiki/C_(programming_language)
  12683. // [C++]: https://wikipedia.org/wiki/C%2B%2B
  12684. // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
  12685. // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
  12686. ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
  12687. // [Perl]
  12688. //
  12689. // Stability: development
  12690. //
  12691. // [Perl]: https://wikipedia.org/wiki/Perl
  12692. ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
  12693. // [PHP]
  12694. //
  12695. // Stability: development
  12696. //
  12697. // [PHP]: https://wikipedia.org/wiki/PHP
  12698. ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
  12699. // [Python]
  12700. //
  12701. // Stability: development
  12702. //
  12703. // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
  12704. ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
  12705. // [Ruby]
  12706. //
  12707. // Stability: development
  12708. //
  12709. // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
  12710. ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
  12711. // [V8JS]
  12712. //
  12713. // Stability: development
  12714. //
  12715. // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
  12716. ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
  12717. // [Erlang]
  12718. //
  12719. // Stability: development
  12720. //
  12721. // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
  12722. ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
  12723. // [Go],
  12724. //
  12725. // Stability: development
  12726. //
  12727. // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
  12728. ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
  12729. // [Rust]
  12730. //
  12731. // Stability: development
  12732. //
  12733. // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
  12734. ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
  12735. )
  12736. // Namespace: rpc
  12737. const (
  12738. // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
  12739. // conventions. It represents the fully-qualified logical name of the method
  12740. // from the RPC interface perspective.
  12741. //
  12742. // Type: string
  12743. // RequirementLevel: Recommended
  12744. // Stability: Release_Candidate
  12745. //
  12746. // Examples: "com.example.ExampleService/exampleMethod", "EchoService/Echo",
  12747. // "_OTHER"
  12748. // Note: The method name MAY have unbounded cardinality in edge or error cases.
  12749. //
  12750. // Some RPC frameworks or libraries provide a fixed set of recognized methods
  12751. // for client stubs and server implementations. Instrumentations for such
  12752. // frameworks MUST set this attribute to the original method name only
  12753. // when the method is recognized by the framework or library.
  12754. //
  12755. // When the method is not recognized, for example, when the server receives
  12756. // a request for a method that is not predefined on the server, or when
  12757. // instrumentation is not able to reliably detect if the method is predefined,
  12758. // the attribute MUST be set to `_OTHER`. In such cases, tracing
  12759. // instrumentations MUST also set `rpc.method_original` attribute to
  12760. // the original method value.
  12761. //
  12762. // If the RPC instrumentation could end up converting valid RPC methods to
  12763. // `_OTHER`, then it SHOULD provide a way to configure the list of recognized
  12764. // RPC methods.
  12765. //
  12766. // The `rpc.method` can be different from the name of any implementing
  12767. // method/function.
  12768. // The `code.function.name` attribute may be used to record the fully-qualified
  12769. // method actually executing the call on the server side, or the
  12770. // RPC client stub method on the client side.
  12771. RPCMethodKey = attribute.Key("rpc.method")
  12772. // RPCMethodOriginalKey is the attribute Key conforming to the
  12773. // "rpc.method_original" semantic conventions. It represents the original name
  12774. // of the method used by the client.
  12775. //
  12776. // Type: string
  12777. // RequirementLevel: Recommended
  12778. // Stability: Release_Candidate
  12779. //
  12780. // Examples: "com.myservice.EchoService/catchAll",
  12781. // "com.myservice.EchoService/unknownMethod", "InvalidMethod"
  12782. RPCMethodOriginalKey = attribute.Key("rpc.method_original")
  12783. // RPCResponseStatusCodeKey is the attribute Key conforming to the
  12784. // "rpc.response.status_code" semantic conventions. It represents the status
  12785. // code of the RPC returned by the RPC server or generated by the client.
  12786. //
  12787. // Type: string
  12788. // RequirementLevel: Recommended
  12789. // Stability: Release_Candidate
  12790. //
  12791. // Examples: "OK", "DEADLINE_EXCEEDED", "-32602"
  12792. // Note: Usually it represents an error code, but may also represent partial
  12793. // success, warning, or differentiate between various types of successful
  12794. // outcomes.
  12795. // Semantic conventions for individual RPC frameworks SHOULD document what
  12796. // `rpc.response.status_code` means in the context of that system and which
  12797. // values are considered to represent errors.
  12798. RPCResponseStatusCodeKey = attribute.Key("rpc.response.status_code")
  12799. // RPCSystemNameKey is the attribute Key conforming to the "rpc.system.name"
  12800. // semantic conventions. It represents the Remote Procedure Call (RPC) system.
  12801. //
  12802. // Type: Enum
  12803. // RequirementLevel: Recommended
  12804. // Stability: Release_Candidate
  12805. //
  12806. // Examples:
  12807. // Note: The client and server RPC systems may differ for the same RPC
  12808. // interaction. For example, a client may use Apache Dubbo or Connect RPC to
  12809. // communicate with a server that uses gRPC since both protocols provide
  12810. // compatibility with gRPC.
  12811. RPCSystemNameKey = attribute.Key("rpc.system.name")
  12812. )
  12813. // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
  12814. // semantic conventions. It represents the fully-qualified logical name of the
  12815. // method from the RPC interface perspective.
  12816. func RPCMethod(val string) attribute.KeyValue {
  12817. return RPCMethodKey.String(val)
  12818. }
  12819. // RPCMethodOriginal returns an attribute KeyValue conforming to the
  12820. // "rpc.method_original" semantic conventions. It represents the original name of
  12821. // the method used by the client.
  12822. func RPCMethodOriginal(val string) attribute.KeyValue {
  12823. return RPCMethodOriginalKey.String(val)
  12824. }
  12825. // RPCRequestMetadata returns an attribute KeyValue conforming to the
  12826. // "rpc.request.metadata" semantic conventions. It represents the RPC request
  12827. // metadata, `<key>` being the normalized RPC metadata key (lowercase), the value
  12828. // being the metadata values.
  12829. func RPCRequestMetadata(key string, val ...string) attribute.KeyValue {
  12830. return attribute.StringSlice("rpc.request.metadata."+key, val)
  12831. }
  12832. // RPCResponseMetadata returns an attribute KeyValue conforming to the
  12833. // "rpc.response.metadata" semantic conventions. It represents the RPC response
  12834. // metadata, `<key>` being the normalized RPC metadata key (lowercase), the value
  12835. // being the metadata values.
  12836. func RPCResponseMetadata(key string, val ...string) attribute.KeyValue {
  12837. return attribute.StringSlice("rpc.response.metadata."+key, val)
  12838. }
  12839. // RPCResponseStatusCode returns an attribute KeyValue conforming to the
  12840. // "rpc.response.status_code" semantic conventions. It represents the status code
  12841. // of the RPC returned by the RPC server or generated by the client.
  12842. func RPCResponseStatusCode(val string) attribute.KeyValue {
  12843. return RPCResponseStatusCodeKey.String(val)
  12844. }
  12845. // Enum values for rpc.system.name
  12846. var (
  12847. // [gRPC]
  12848. // Stability: release_candidate
  12849. //
  12850. // [gRPC]: https://grpc.io/
  12851. RPCSystemNameGRPC = RPCSystemNameKey.String("grpc")
  12852. // [Apache Dubbo]
  12853. // Stability: release_candidate
  12854. //
  12855. // [Apache Dubbo]: https://dubbo.apache.org/
  12856. RPCSystemNameDubbo = RPCSystemNameKey.String("dubbo")
  12857. // [Connect RPC]
  12858. // Stability: development
  12859. //
  12860. // [Connect RPC]: https://connectrpc.com/
  12861. RPCSystemNameConnectrpc = RPCSystemNameKey.String("connectrpc")
  12862. // [JSON-RPC]
  12863. // Stability: development
  12864. //
  12865. // [JSON-RPC]: https://www.jsonrpc.org/
  12866. RPCSystemNameJSONRPC = RPCSystemNameKey.String("jsonrpc")
  12867. )
  12868. // Namespace: security_rule
  12869. const (
  12870. // SecurityRuleCategoryKey is the attribute Key conforming to the
  12871. // "security_rule.category" semantic conventions. It represents a categorization
  12872. // value keyword used by the entity using the rule for detection of this event.
  12873. //
  12874. // Type: string
  12875. // RequirementLevel: Recommended
  12876. // Stability: Development
  12877. //
  12878. // Examples: "Attempted Information Leak"
  12879. SecurityRuleCategoryKey = attribute.Key("security_rule.category")
  12880. // SecurityRuleDescriptionKey is the attribute Key conforming to the
  12881. // "security_rule.description" semantic conventions. It represents the
  12882. // description of the rule generating the event.
  12883. //
  12884. // Type: string
  12885. // RequirementLevel: Recommended
  12886. // Stability: Development
  12887. //
  12888. // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
  12889. SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
  12890. // SecurityRuleLicenseKey is the attribute Key conforming to the
  12891. // "security_rule.license" semantic conventions. It represents the name of the
  12892. // license under which the rule used to generate this event is made available.
  12893. //
  12894. // Type: string
  12895. // RequirementLevel: Recommended
  12896. // Stability: Development
  12897. //
  12898. // Examples: "Apache 2.0"
  12899. SecurityRuleLicenseKey = attribute.Key("security_rule.license")
  12900. // SecurityRuleNameKey is the attribute Key conforming to the
  12901. // "security_rule.name" semantic conventions. It represents the name of the rule
  12902. // or signature generating the event.
  12903. //
  12904. // Type: string
  12905. // RequirementLevel: Recommended
  12906. // Stability: Development
  12907. //
  12908. // Examples: "BLOCK_DNS_over_TLS"
  12909. SecurityRuleNameKey = attribute.Key("security_rule.name")
  12910. // SecurityRuleReferenceKey is the attribute Key conforming to the
  12911. // "security_rule.reference" semantic conventions. It represents the reference
  12912. // URL to additional information about the rule used to generate this event.
  12913. //
  12914. // Type: string
  12915. // RequirementLevel: Recommended
  12916. // Stability: Development
  12917. //
  12918. // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
  12919. // Note: The URL can point to the vendor’s documentation about the rule. If
  12920. // that’s not available, it can also be a link to a more general page
  12921. // describing this type of alert.
  12922. SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
  12923. // SecurityRuleRulesetNameKey is the attribute Key conforming to the
  12924. // "security_rule.ruleset.name" semantic conventions. It represents the name of
  12925. // the ruleset, policy, group, or parent category in which the rule used to
  12926. // generate this event is a member.
  12927. //
  12928. // Type: string
  12929. // RequirementLevel: Recommended
  12930. // Stability: Development
  12931. //
  12932. // Examples: "Standard_Protocol_Filters"
  12933. SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
  12934. // SecurityRuleUUIDKey is the attribute Key conforming to the
  12935. // "security_rule.uuid" semantic conventions. It represents a rule ID that is
  12936. // unique within the scope of a set or group of agents, observers, or other
  12937. // entities using the rule for detection of this event.
  12938. //
  12939. // Type: string
  12940. // RequirementLevel: Recommended
  12941. // Stability: Development
  12942. //
  12943. // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
  12944. SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
  12945. // SecurityRuleVersionKey is the attribute Key conforming to the
  12946. // "security_rule.version" semantic conventions. It represents the version /
  12947. // revision of the rule being used for analysis.
  12948. //
  12949. // Type: string
  12950. // RequirementLevel: Recommended
  12951. // Stability: Development
  12952. //
  12953. // Examples: "1.0.0"
  12954. SecurityRuleVersionKey = attribute.Key("security_rule.version")
  12955. )
  12956. // SecurityRuleCategory returns an attribute KeyValue conforming to the
  12957. // "security_rule.category" semantic conventions. It represents a categorization
  12958. // value keyword used by the entity using the rule for detection of this event.
  12959. func SecurityRuleCategory(val string) attribute.KeyValue {
  12960. return SecurityRuleCategoryKey.String(val)
  12961. }
  12962. // SecurityRuleDescription returns an attribute KeyValue conforming to the
  12963. // "security_rule.description" semantic conventions. It represents the
  12964. // description of the rule generating the event.
  12965. func SecurityRuleDescription(val string) attribute.KeyValue {
  12966. return SecurityRuleDescriptionKey.String(val)
  12967. }
  12968. // SecurityRuleLicense returns an attribute KeyValue conforming to the
  12969. // "security_rule.license" semantic conventions. It represents the name of the
  12970. // license under which the rule used to generate this event is made available.
  12971. func SecurityRuleLicense(val string) attribute.KeyValue {
  12972. return SecurityRuleLicenseKey.String(val)
  12973. }
  12974. // SecurityRuleName returns an attribute KeyValue conforming to the
  12975. // "security_rule.name" semantic conventions. It represents the name of the rule
  12976. // or signature generating the event.
  12977. func SecurityRuleName(val string) attribute.KeyValue {
  12978. return SecurityRuleNameKey.String(val)
  12979. }
  12980. // SecurityRuleReference returns an attribute KeyValue conforming to the
  12981. // "security_rule.reference" semantic conventions. It represents the reference
  12982. // URL to additional information about the rule used to generate this event.
  12983. func SecurityRuleReference(val string) attribute.KeyValue {
  12984. return SecurityRuleReferenceKey.String(val)
  12985. }
  12986. // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
  12987. // "security_rule.ruleset.name" semantic conventions. It represents the name of
  12988. // the ruleset, policy, group, or parent category in which the rule used to
  12989. // generate this event is a member.
  12990. func SecurityRuleRulesetName(val string) attribute.KeyValue {
  12991. return SecurityRuleRulesetNameKey.String(val)
  12992. }
  12993. // SecurityRuleUUID returns an attribute KeyValue conforming to the
  12994. // "security_rule.uuid" semantic conventions. It represents a rule ID that is
  12995. // unique within the scope of a set or group of agents, observers, or other
  12996. // entities using the rule for detection of this event.
  12997. func SecurityRuleUUID(val string) attribute.KeyValue {
  12998. return SecurityRuleUUIDKey.String(val)
  12999. }
  13000. // SecurityRuleVersion returns an attribute KeyValue conforming to the
  13001. // "security_rule.version" semantic conventions. It represents the version /
  13002. // revision of the rule being used for analysis.
  13003. func SecurityRuleVersion(val string) attribute.KeyValue {
  13004. return SecurityRuleVersionKey.String(val)
  13005. }
  13006. // Namespace: server
  13007. const (
  13008. // ServerAddressKey is the attribute Key conforming to the "server.address"
  13009. // semantic conventions. It represents the server domain name if available
  13010. // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
  13011. //
  13012. // Type: string
  13013. // RequirementLevel: Recommended
  13014. // Stability: Stable
  13015. //
  13016. // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
  13017. // Note: When observed from the client side, and when communicating through an
  13018. // intermediary, `server.address` SHOULD represent the server address behind any
  13019. // intermediaries, for example proxies, if it's available.
  13020. ServerAddressKey = attribute.Key("server.address")
  13021. // ServerPortKey is the attribute Key conforming to the "server.port" semantic
  13022. // conventions. It represents the server port number.
  13023. //
  13024. // Type: int
  13025. // RequirementLevel: Recommended
  13026. // Stability: Stable
  13027. //
  13028. // Examples: 80, 8080, 443
  13029. // Note: When observed from the client side, and when communicating through an
  13030. // intermediary, `server.port` SHOULD represent the server port behind any
  13031. // intermediaries, for example proxies, if it's available.
  13032. ServerPortKey = attribute.Key("server.port")
  13033. )
  13034. // ServerAddress returns an attribute KeyValue conforming to the "server.address"
  13035. // semantic conventions. It represents the server domain name if available
  13036. // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
  13037. func ServerAddress(val string) attribute.KeyValue {
  13038. return ServerAddressKey.String(val)
  13039. }
  13040. // ServerPort returns an attribute KeyValue conforming to the "server.port"
  13041. // semantic conventions. It represents the server port number.
  13042. func ServerPort(val int) attribute.KeyValue {
  13043. return ServerPortKey.Int(val)
  13044. }
  13045. // Namespace: service
  13046. const (
  13047. // ServiceCriticalityKey is the attribute Key conforming to the
  13048. // "service.criticality" semantic conventions. It represents the operational
  13049. // criticality of the service.
  13050. //
  13051. // Type: Enum
  13052. // RequirementLevel: Recommended
  13053. // Stability: Development
  13054. //
  13055. // Examples: "critical", "high", "medium", "low"
  13056. // Note: Application developers are encouraged to set `service.criticality` to
  13057. // express the operational importance of their services. Telemetry consumers MAY
  13058. // use this attribute to optimize telemetry collection or improve user
  13059. // experience.
  13060. ServiceCriticalityKey = attribute.Key("service.criticality")
  13061. // ServiceInstanceIDKey is the attribute Key conforming to the
  13062. // "service.instance.id" semantic conventions. It represents the string ID of
  13063. // the service instance.
  13064. //
  13065. // Type: string
  13066. // RequirementLevel: Recommended
  13067. // Stability: Stable
  13068. //
  13069. // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
  13070. // Note: MUST be unique for each instance of the same
  13071. // `service.namespace,service.name` pair (in other words
  13072. // `service.namespace,service.name,service.instance.id` triplet MUST be globally
  13073. // unique). The ID helps to
  13074. // distinguish instances of the same service that exist at the same time (e.g.
  13075. // instances of a horizontally scaled
  13076. // service).
  13077. //
  13078. // Implementations, such as SDKs, are recommended to generate a random Version 1
  13079. // or Version 4 [RFC
  13080. // 4122] UUID, but are free to use an inherent unique ID as
  13081. // the source of
  13082. // this value if stability is desirable. In that case, the ID SHOULD be used as
  13083. // source of a UUID Version 5 and
  13084. // SHOULD use the following UUID as the namespace:
  13085. // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
  13086. //
  13087. // UUIDs are typically recommended, as only an opaque value for the purposes of
  13088. // identifying a service instance is
  13089. // needed. Similar to what can be seen in the man page for the
  13090. // [`/etc/machine-id`] file, the underlying
  13091. // data, such as pod name and namespace should be treated as confidential, being
  13092. // the user's choice to expose it
  13093. // or not via another resource attribute.
  13094. //
  13095. // For applications running behind an application server (like unicorn), we do
  13096. // not recommend using one identifier
  13097. // for all processes participating in the application. Instead, it's recommended
  13098. // each division (e.g. a worker
  13099. // thread in unicorn) to have its own instance.id.
  13100. //
  13101. // It's not recommended for a Collector to set `service.instance.id` if it can't
  13102. // unambiguously determine the
  13103. // service instance that is generating that telemetry. For instance, creating an
  13104. // UUID based on `pod.name` will
  13105. // likely be wrong, as the Collector might not know from which container within
  13106. // that pod the telemetry originated.
  13107. // However, Collectors can set the `service.instance.id` if they can
  13108. // unambiguously determine the service instance
  13109. // for that telemetry. This is typically the case for scraping receivers, as
  13110. // they know the target address and
  13111. // port.
  13112. //
  13113. // [RFC
  13114. // 4122]: https://www.ietf.org/rfc/rfc4122.txt
  13115. // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
  13116. ServiceInstanceIDKey = attribute.Key("service.instance.id")
  13117. // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
  13118. // conventions. It represents the logical name of the service.
  13119. //
  13120. // Type: string
  13121. // RequirementLevel: Recommended
  13122. // Stability: Stable
  13123. //
  13124. // Examples: "shoppingcart"
  13125. // Note: MUST be the same for all instances of horizontally scaled services. If
  13126. // the value was not specified, SDKs MUST fallback to `unknown_service:`
  13127. // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
  13128. // If `process.executable.name` is not available, the value MUST be set to
  13129. // `unknown_service`.
  13130. //
  13131. // [`process.executable.name`]: process.md
  13132. ServiceNameKey = attribute.Key("service.name")
  13133. // ServiceNamespaceKey is the attribute Key conforming to the
  13134. // "service.namespace" semantic conventions. It represents a namespace for
  13135. // `service.name`.
  13136. //
  13137. // Type: string
  13138. // RequirementLevel: Recommended
  13139. // Stability: Stable
  13140. //
  13141. // Examples: "Shop"
  13142. // Note: A string value having a meaning that helps to distinguish a group of
  13143. // services, for example the team name that owns a group of services.
  13144. // `service.name` is expected to be unique within the same namespace. If
  13145. // `service.namespace` is not specified in the Resource then `service.name` is
  13146. // expected to be unique for all services that have no explicit namespace
  13147. // defined (so the empty/unspecified namespace is simply one more valid
  13148. // namespace). Zero-length namespace string is assumed equal to unspecified
  13149. // namespace.
  13150. ServiceNamespaceKey = attribute.Key("service.namespace")
  13151. // ServicePeerNameKey is the attribute Key conforming to the "service.peer.name"
  13152. // semantic conventions. It represents the logical name of the service on the
  13153. // other side of the connection. SHOULD be equal to the actual [`service.name`]
  13154. // resource attribute of the remote service if any.
  13155. //
  13156. // Type: string
  13157. // RequirementLevel: Recommended
  13158. // Stability: Development
  13159. //
  13160. // Examples: "shoppingcart"
  13161. //
  13162. // [`service.name`]: /docs/resource/README.md#service
  13163. ServicePeerNameKey = attribute.Key("service.peer.name")
  13164. // ServicePeerNamespaceKey is the attribute Key conforming to the
  13165. // "service.peer.namespace" semantic conventions. It represents the logical
  13166. // namespace of the service on the other side of the connection. SHOULD be equal
  13167. // to the actual [`service.namespace`] resource attribute of the remote service
  13168. // if any.
  13169. //
  13170. // Type: string
  13171. // RequirementLevel: Recommended
  13172. // Stability: Development
  13173. //
  13174. // Examples: "Shop"
  13175. //
  13176. // [`service.namespace`]: /docs/resource/README.md#service
  13177. ServicePeerNamespaceKey = attribute.Key("service.peer.namespace")
  13178. // ServiceVersionKey is the attribute Key conforming to the "service.version"
  13179. // semantic conventions. It represents the version string of the service
  13180. // component. The format is not defined by these conventions.
  13181. //
  13182. // Type: string
  13183. // RequirementLevel: Recommended
  13184. // Stability: Stable
  13185. //
  13186. // Examples: "2.0.0", "a01dbef8a"
  13187. ServiceVersionKey = attribute.Key("service.version")
  13188. )
  13189. // ServiceInstanceID returns an attribute KeyValue conforming to the
  13190. // "service.instance.id" semantic conventions. It represents the string ID of the
  13191. // service instance.
  13192. func ServiceInstanceID(val string) attribute.KeyValue {
  13193. return ServiceInstanceIDKey.String(val)
  13194. }
  13195. // ServiceName returns an attribute KeyValue conforming to the "service.name"
  13196. // semantic conventions. It represents the logical name of the service.
  13197. func ServiceName(val string) attribute.KeyValue {
  13198. return ServiceNameKey.String(val)
  13199. }
  13200. // ServiceNamespace returns an attribute KeyValue conforming to the
  13201. // "service.namespace" semantic conventions. It represents a namespace for
  13202. // `service.name`.
  13203. func ServiceNamespace(val string) attribute.KeyValue {
  13204. return ServiceNamespaceKey.String(val)
  13205. }
  13206. // ServicePeerName returns an attribute KeyValue conforming to the
  13207. // "service.peer.name" semantic conventions. It represents the logical name of
  13208. // the service on the other side of the connection. SHOULD be equal to the actual
  13209. // [`service.name`] resource attribute of the remote service if any.
  13210. //
  13211. // [`service.name`]: /docs/resource/README.md#service
  13212. func ServicePeerName(val string) attribute.KeyValue {
  13213. return ServicePeerNameKey.String(val)
  13214. }
  13215. // ServicePeerNamespace returns an attribute KeyValue conforming to the
  13216. // "service.peer.namespace" semantic conventions. It represents the logical
  13217. // namespace of the service on the other side of the connection. SHOULD be equal
  13218. // to the actual [`service.namespace`] resource attribute of the remote service
  13219. // if any.
  13220. //
  13221. // [`service.namespace`]: /docs/resource/README.md#service
  13222. func ServicePeerNamespace(val string) attribute.KeyValue {
  13223. return ServicePeerNamespaceKey.String(val)
  13224. }
  13225. // ServiceVersion returns an attribute KeyValue conforming to the
  13226. // "service.version" semantic conventions. It represents the version string of
  13227. // the service component. The format is not defined by these conventions.
  13228. func ServiceVersion(val string) attribute.KeyValue {
  13229. return ServiceVersionKey.String(val)
  13230. }
  13231. // Enum values for service.criticality
  13232. var (
  13233. // Service is business-critical; downtime directly impacts revenue, user
  13234. // experience, or core functionality.
  13235. //
  13236. // Stability: development
  13237. ServiceCriticalityCritical = ServiceCriticalityKey.String("critical")
  13238. // Service is important but has degradation tolerance or fallback mechanisms.
  13239. //
  13240. // Stability: development
  13241. ServiceCriticalityHigh = ServiceCriticalityKey.String("high")
  13242. // Service provides supplementary functionality; degradation has limited user
  13243. // impact.
  13244. //
  13245. // Stability: development
  13246. ServiceCriticalityMedium = ServiceCriticalityKey.String("medium")
  13247. // Service is non-essential to core operations; used for background tasks or
  13248. // internal tools.
  13249. //
  13250. // Stability: development
  13251. ServiceCriticalityLow = ServiceCriticalityKey.String("low")
  13252. )
  13253. // Namespace: session
  13254. const (
  13255. // SessionIDKey is the attribute Key conforming to the "session.id" semantic
  13256. // conventions. It represents a unique id to identify a session.
  13257. //
  13258. // Type: string
  13259. // RequirementLevel: Recommended
  13260. // Stability: Development
  13261. //
  13262. // Examples: 00112233-4455-6677-8899-aabbccddeeff
  13263. SessionIDKey = attribute.Key("session.id")
  13264. // SessionPreviousIDKey is the attribute Key conforming to the
  13265. // "session.previous_id" semantic conventions. It represents the previous
  13266. // `session.id` for this user, when known.
  13267. //
  13268. // Type: string
  13269. // RequirementLevel: Recommended
  13270. // Stability: Development
  13271. //
  13272. // Examples: 00112233-4455-6677-8899-aabbccddeeff
  13273. SessionPreviousIDKey = attribute.Key("session.previous_id")
  13274. )
  13275. // SessionID returns an attribute KeyValue conforming to the "session.id"
  13276. // semantic conventions. It represents a unique id to identify a session.
  13277. func SessionID(val string) attribute.KeyValue {
  13278. return SessionIDKey.String(val)
  13279. }
  13280. // SessionPreviousID returns an attribute KeyValue conforming to the
  13281. // "session.previous_id" semantic conventions. It represents the previous
  13282. // `session.id` for this user, when known.
  13283. func SessionPreviousID(val string) attribute.KeyValue {
  13284. return SessionPreviousIDKey.String(val)
  13285. }
  13286. // Namespace: signalr
  13287. const (
  13288. // SignalRConnectionStatusKey is the attribute Key conforming to the
  13289. // "signalr.connection.status" semantic conventions. It represents the signalR
  13290. // HTTP connection closure status.
  13291. //
  13292. // Type: Enum
  13293. // RequirementLevel: Recommended
  13294. // Stability: Stable
  13295. //
  13296. // Examples: "app_shutdown", "timeout"
  13297. SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
  13298. // SignalRTransportKey is the attribute Key conforming to the
  13299. // "signalr.transport" semantic conventions. It represents the
  13300. // [SignalR transport type].
  13301. //
  13302. // Type: Enum
  13303. // RequirementLevel: Recommended
  13304. // Stability: Stable
  13305. //
  13306. // Examples: "web_sockets", "long_polling"
  13307. //
  13308. // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
  13309. SignalRTransportKey = attribute.Key("signalr.transport")
  13310. )
  13311. // Enum values for signalr.connection.status
  13312. var (
  13313. // The connection was closed normally.
  13314. // Stability: stable
  13315. SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
  13316. // The connection was closed due to a timeout.
  13317. // Stability: stable
  13318. SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
  13319. // The connection was closed because the app is shutting down.
  13320. // Stability: stable
  13321. SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
  13322. )
  13323. // Enum values for signalr.transport
  13324. var (
  13325. // ServerSentEvents protocol
  13326. // Stability: stable
  13327. SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
  13328. // LongPolling protocol
  13329. // Stability: stable
  13330. SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
  13331. // WebSockets protocol
  13332. // Stability: stable
  13333. SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
  13334. )
  13335. // Namespace: source
  13336. const (
  13337. // SourceAddressKey is the attribute Key conforming to the "source.address"
  13338. // semantic conventions. It represents the source address - domain name if
  13339. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  13340. // socket name.
  13341. //
  13342. // Type: string
  13343. // RequirementLevel: Recommended
  13344. // Stability: Development
  13345. //
  13346. // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
  13347. // Note: When observed from the destination side, and when communicating through
  13348. // an intermediary, `source.address` SHOULD represent the source address behind
  13349. // any intermediaries, for example proxies, if it's available.
  13350. SourceAddressKey = attribute.Key("source.address")
  13351. // SourcePortKey is the attribute Key conforming to the "source.port" semantic
  13352. // conventions. It represents the source port number.
  13353. //
  13354. // Type: int
  13355. // RequirementLevel: Recommended
  13356. // Stability: Development
  13357. //
  13358. // Examples: 3389, 2888
  13359. SourcePortKey = attribute.Key("source.port")
  13360. )
  13361. // SourceAddress returns an attribute KeyValue conforming to the "source.address"
  13362. // semantic conventions. It represents the source address - domain name if
  13363. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  13364. // socket name.
  13365. func SourceAddress(val string) attribute.KeyValue {
  13366. return SourceAddressKey.String(val)
  13367. }
  13368. // SourcePort returns an attribute KeyValue conforming to the "source.port"
  13369. // semantic conventions. It represents the source port number.
  13370. func SourcePort(val int) attribute.KeyValue {
  13371. return SourcePortKey.Int(val)
  13372. }
  13373. // Namespace: system
  13374. const (
  13375. // SystemDeviceKey is the attribute Key conforming to the "system.device"
  13376. // semantic conventions. It represents the device identifier.
  13377. //
  13378. // Type: string
  13379. // RequirementLevel: Recommended
  13380. // Stability: Development
  13381. //
  13382. // Examples: "(identifier)"
  13383. SystemDeviceKey = attribute.Key("system.device")
  13384. // SystemFilesystemModeKey is the attribute Key conforming to the
  13385. // "system.filesystem.mode" semantic conventions. It represents the filesystem
  13386. // mode.
  13387. //
  13388. // Type: string
  13389. // RequirementLevel: Recommended
  13390. // Stability: Development
  13391. //
  13392. // Examples: "rw, ro"
  13393. SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
  13394. // SystemFilesystemMountpointKey is the attribute Key conforming to the
  13395. // "system.filesystem.mountpoint" semantic conventions. It represents the
  13396. // filesystem mount path.
  13397. //
  13398. // Type: string
  13399. // RequirementLevel: Recommended
  13400. // Stability: Development
  13401. //
  13402. // Examples: "/mnt/data"
  13403. SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
  13404. // SystemFilesystemStateKey is the attribute Key conforming to the
  13405. // "system.filesystem.state" semantic conventions. It represents the filesystem
  13406. // state.
  13407. //
  13408. // Type: Enum
  13409. // RequirementLevel: Recommended
  13410. // Stability: Development
  13411. //
  13412. // Examples: "used"
  13413. SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
  13414. // SystemFilesystemTypeKey is the attribute Key conforming to the
  13415. // "system.filesystem.type" semantic conventions. It represents the filesystem
  13416. // type.
  13417. //
  13418. // Type: Enum
  13419. // RequirementLevel: Recommended
  13420. // Stability: Development
  13421. //
  13422. // Examples: "ext4"
  13423. SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
  13424. // SystemMemoryLinuxSlabStateKey is the attribute Key conforming to the
  13425. // "system.memory.linux.slab.state" semantic conventions. It represents the
  13426. // Linux Slab memory state.
  13427. //
  13428. // Type: Enum
  13429. // RequirementLevel: Recommended
  13430. // Stability: Development
  13431. //
  13432. // Examples: "reclaimable", "unreclaimable"
  13433. SystemMemoryLinuxSlabStateKey = attribute.Key("system.memory.linux.slab.state")
  13434. // SystemMemoryStateKey is the attribute Key conforming to the
  13435. // "system.memory.state" semantic conventions. It represents the memory state.
  13436. //
  13437. // Type: Enum
  13438. // RequirementLevel: Recommended
  13439. // Stability: Development
  13440. //
  13441. // Examples: "free", "cached"
  13442. SystemMemoryStateKey = attribute.Key("system.memory.state")
  13443. // SystemPagingDirectionKey is the attribute Key conforming to the
  13444. // "system.paging.direction" semantic conventions. It represents the paging
  13445. // access direction.
  13446. //
  13447. // Type: Enum
  13448. // RequirementLevel: Recommended
  13449. // Stability: Development
  13450. //
  13451. // Examples: "in"
  13452. SystemPagingDirectionKey = attribute.Key("system.paging.direction")
  13453. // SystemPagingFaultTypeKey is the attribute Key conforming to the
  13454. // "system.paging.fault.type" semantic conventions. It represents the paging
  13455. // fault type.
  13456. //
  13457. // Type: Enum
  13458. // RequirementLevel: Recommended
  13459. // Stability: Development
  13460. //
  13461. // Examples: "minor"
  13462. SystemPagingFaultTypeKey = attribute.Key("system.paging.fault.type")
  13463. // SystemPagingStateKey is the attribute Key conforming to the
  13464. // "system.paging.state" semantic conventions. It represents the memory paging
  13465. // state.
  13466. //
  13467. // Type: Enum
  13468. // RequirementLevel: Recommended
  13469. // Stability: Development
  13470. //
  13471. // Examples: "free"
  13472. SystemPagingStateKey = attribute.Key("system.paging.state")
  13473. )
  13474. // SystemDevice returns an attribute KeyValue conforming to the "system.device"
  13475. // semantic conventions. It represents the device identifier.
  13476. func SystemDevice(val string) attribute.KeyValue {
  13477. return SystemDeviceKey.String(val)
  13478. }
  13479. // SystemFilesystemMode returns an attribute KeyValue conforming to the
  13480. // "system.filesystem.mode" semantic conventions. It represents the filesystem
  13481. // mode.
  13482. func SystemFilesystemMode(val string) attribute.KeyValue {
  13483. return SystemFilesystemModeKey.String(val)
  13484. }
  13485. // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
  13486. // "system.filesystem.mountpoint" semantic conventions. It represents the
  13487. // filesystem mount path.
  13488. func SystemFilesystemMountpoint(val string) attribute.KeyValue {
  13489. return SystemFilesystemMountpointKey.String(val)
  13490. }
  13491. // Enum values for system.filesystem.state
  13492. var (
  13493. // used
  13494. // Stability: development
  13495. SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
  13496. // free
  13497. // Stability: development
  13498. SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
  13499. // reserved
  13500. // Stability: development
  13501. SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
  13502. )
  13503. // Enum values for system.filesystem.type
  13504. var (
  13505. // fat32
  13506. // Stability: development
  13507. SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
  13508. // exfat
  13509. // Stability: development
  13510. SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
  13511. // ntfs
  13512. // Stability: development
  13513. SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
  13514. // refs
  13515. // Stability: development
  13516. SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
  13517. // hfsplus
  13518. // Stability: development
  13519. SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
  13520. // ext4
  13521. // Stability: development
  13522. SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
  13523. )
  13524. // Enum values for system.memory.linux.slab.state
  13525. var (
  13526. // reclaimable
  13527. // Stability: development
  13528. SystemMemoryLinuxSlabStateReclaimable = SystemMemoryLinuxSlabStateKey.String("reclaimable")
  13529. // unreclaimable
  13530. // Stability: development
  13531. SystemMemoryLinuxSlabStateUnreclaimable = SystemMemoryLinuxSlabStateKey.String("unreclaimable")
  13532. )
  13533. // Enum values for system.memory.state
  13534. var (
  13535. // Actual used virtual memory in bytes.
  13536. // Stability: development
  13537. SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
  13538. // free
  13539. // Stability: development
  13540. SystemMemoryStateFree = SystemMemoryStateKey.String("free")
  13541. // buffers
  13542. // Stability: development
  13543. SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
  13544. // cached
  13545. // Stability: development
  13546. SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
  13547. )
  13548. // Enum values for system.paging.direction
  13549. var (
  13550. // in
  13551. // Stability: development
  13552. SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
  13553. // out
  13554. // Stability: development
  13555. SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
  13556. )
  13557. // Enum values for system.paging.fault.type
  13558. var (
  13559. // major
  13560. // Stability: development
  13561. SystemPagingFaultTypeMajor = SystemPagingFaultTypeKey.String("major")
  13562. // minor
  13563. // Stability: development
  13564. SystemPagingFaultTypeMinor = SystemPagingFaultTypeKey.String("minor")
  13565. )
  13566. // Enum values for system.paging.state
  13567. var (
  13568. // used
  13569. // Stability: development
  13570. SystemPagingStateUsed = SystemPagingStateKey.String("used")
  13571. // free
  13572. // Stability: development
  13573. SystemPagingStateFree = SystemPagingStateKey.String("free")
  13574. )
  13575. // Namespace: telemetry
  13576. const (
  13577. // TelemetryDistroNameKey is the attribute Key conforming to the
  13578. // "telemetry.distro.name" semantic conventions. It represents the name of the
  13579. // auto instrumentation agent or distribution, if used.
  13580. //
  13581. // Type: string
  13582. // RequirementLevel: Recommended
  13583. // Stability: Development
  13584. //
  13585. // Examples: "parts-unlimited-java"
  13586. // Note: Official auto instrumentation agents and distributions SHOULD set the
  13587. // `telemetry.distro.name` attribute to
  13588. // a string starting with `opentelemetry-`, e.g.
  13589. // `opentelemetry-java-instrumentation`.
  13590. TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
  13591. // TelemetryDistroVersionKey is the attribute Key conforming to the
  13592. // "telemetry.distro.version" semantic conventions. It represents the version
  13593. // string of the auto instrumentation agent or distribution, if used.
  13594. //
  13595. // Type: string
  13596. // RequirementLevel: Recommended
  13597. // Stability: Development
  13598. //
  13599. // Examples: "1.2.3"
  13600. TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
  13601. // TelemetrySDKLanguageKey is the attribute Key conforming to the
  13602. // "telemetry.sdk.language" semantic conventions. It represents the language of
  13603. // the telemetry SDK.
  13604. //
  13605. // Type: Enum
  13606. // RequirementLevel: Recommended
  13607. // Stability: Stable
  13608. //
  13609. // Examples:
  13610. TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
  13611. // TelemetrySDKNameKey is the attribute Key conforming to the
  13612. // "telemetry.sdk.name" semantic conventions. It represents the name of the
  13613. // telemetry SDK as defined above.
  13614. //
  13615. // Type: string
  13616. // RequirementLevel: Recommended
  13617. // Stability: Stable
  13618. //
  13619. // Examples: "opentelemetry"
  13620. // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
  13621. // `opentelemetry`.
  13622. // If another SDK, like a fork or a vendor-provided implementation, is used,
  13623. // this SDK MUST set the
  13624. // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
  13625. // this SDK's main entry point
  13626. // or another suitable identifier depending on the language.
  13627. // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
  13628. // All custom identifiers SHOULD be stable across different versions of an
  13629. // implementation.
  13630. TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
  13631. // TelemetrySDKVersionKey is the attribute Key conforming to the
  13632. // "telemetry.sdk.version" semantic conventions. It represents the version
  13633. // string of the telemetry SDK.
  13634. //
  13635. // Type: string
  13636. // RequirementLevel: Recommended
  13637. // Stability: Stable
  13638. //
  13639. // Examples: "1.2.3"
  13640. TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
  13641. )
  13642. // TelemetryDistroName returns an attribute KeyValue conforming to the
  13643. // "telemetry.distro.name" semantic conventions. It represents the name of the
  13644. // auto instrumentation agent or distribution, if used.
  13645. func TelemetryDistroName(val string) attribute.KeyValue {
  13646. return TelemetryDistroNameKey.String(val)
  13647. }
  13648. // TelemetryDistroVersion returns an attribute KeyValue conforming to the
  13649. // "telemetry.distro.version" semantic conventions. It represents the version
  13650. // string of the auto instrumentation agent or distribution, if used.
  13651. func TelemetryDistroVersion(val string) attribute.KeyValue {
  13652. return TelemetryDistroVersionKey.String(val)
  13653. }
  13654. // TelemetrySDKName returns an attribute KeyValue conforming to the
  13655. // "telemetry.sdk.name" semantic conventions. It represents the name of the
  13656. // telemetry SDK as defined above.
  13657. func TelemetrySDKName(val string) attribute.KeyValue {
  13658. return TelemetrySDKNameKey.String(val)
  13659. }
  13660. // TelemetrySDKVersion returns an attribute KeyValue conforming to the
  13661. // "telemetry.sdk.version" semantic conventions. It represents the version string
  13662. // of the telemetry SDK.
  13663. func TelemetrySDKVersion(val string) attribute.KeyValue {
  13664. return TelemetrySDKVersionKey.String(val)
  13665. }
  13666. // Enum values for telemetry.sdk.language
  13667. var (
  13668. // cpp
  13669. // Stability: stable
  13670. TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
  13671. // dotnet
  13672. // Stability: stable
  13673. TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
  13674. // erlang
  13675. // Stability: stable
  13676. TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
  13677. // go
  13678. // Stability: stable
  13679. TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
  13680. // java
  13681. // Stability: stable
  13682. TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
  13683. // nodejs
  13684. // Stability: stable
  13685. TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
  13686. // php
  13687. // Stability: stable
  13688. TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
  13689. // python
  13690. // Stability: stable
  13691. TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
  13692. // ruby
  13693. // Stability: stable
  13694. TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
  13695. // rust
  13696. // Stability: stable
  13697. TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
  13698. // swift
  13699. // Stability: stable
  13700. TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
  13701. // webjs
  13702. // Stability: stable
  13703. TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
  13704. )
  13705. // Namespace: test
  13706. const (
  13707. // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
  13708. // semantic conventions. It represents the fully qualified human readable name
  13709. // of the [test case].
  13710. //
  13711. // Type: string
  13712. // RequirementLevel: Recommended
  13713. // Stability: Development
  13714. //
  13715. // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
  13716. // "ExampleTestCase1_test1"
  13717. //
  13718. // [test case]: https://wikipedia.org/wiki/Test_case
  13719. TestCaseNameKey = attribute.Key("test.case.name")
  13720. // TestCaseResultStatusKey is the attribute Key conforming to the
  13721. // "test.case.result.status" semantic conventions. It represents the status of
  13722. // the actual test case result from test execution.
  13723. //
  13724. // Type: Enum
  13725. // RequirementLevel: Recommended
  13726. // Stability: Development
  13727. //
  13728. // Examples: "pass", "fail"
  13729. TestCaseResultStatusKey = attribute.Key("test.case.result.status")
  13730. // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
  13731. // semantic conventions. It represents the human readable name of a [test suite]
  13732. // .
  13733. //
  13734. // Type: string
  13735. // RequirementLevel: Recommended
  13736. // Stability: Development
  13737. //
  13738. // Examples: "TestSuite1"
  13739. //
  13740. // [test suite]: https://wikipedia.org/wiki/Test_suite
  13741. TestSuiteNameKey = attribute.Key("test.suite.name")
  13742. // TestSuiteRunStatusKey is the attribute Key conforming to the
  13743. // "test.suite.run.status" semantic conventions. It represents the status of the
  13744. // test suite run.
  13745. //
  13746. // Type: Enum
  13747. // RequirementLevel: Recommended
  13748. // Stability: Development
  13749. //
  13750. // Examples: "success", "failure", "skipped", "aborted", "timed_out",
  13751. // "in_progress"
  13752. TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
  13753. )
  13754. // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
  13755. // semantic conventions. It represents the fully qualified human readable name of
  13756. // the [test case].
  13757. //
  13758. // [test case]: https://wikipedia.org/wiki/Test_case
  13759. func TestCaseName(val string) attribute.KeyValue {
  13760. return TestCaseNameKey.String(val)
  13761. }
  13762. // TestSuiteName returns an attribute KeyValue conforming to the
  13763. // "test.suite.name" semantic conventions. It represents the human readable name
  13764. // of a [test suite].
  13765. //
  13766. // [test suite]: https://wikipedia.org/wiki/Test_suite
  13767. func TestSuiteName(val string) attribute.KeyValue {
  13768. return TestSuiteNameKey.String(val)
  13769. }
  13770. // Enum values for test.case.result.status
  13771. var (
  13772. // pass
  13773. // Stability: development
  13774. TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
  13775. // fail
  13776. // Stability: development
  13777. TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
  13778. )
  13779. // Enum values for test.suite.run.status
  13780. var (
  13781. // success
  13782. // Stability: development
  13783. TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
  13784. // failure
  13785. // Stability: development
  13786. TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
  13787. // skipped
  13788. // Stability: development
  13789. TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
  13790. // aborted
  13791. // Stability: development
  13792. TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
  13793. // timed_out
  13794. // Stability: development
  13795. TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
  13796. // in_progress
  13797. // Stability: development
  13798. TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
  13799. )
  13800. // Namespace: thread
  13801. const (
  13802. // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
  13803. // conventions. It represents the current "managed" thread ID (as opposed to OS
  13804. // thread ID).
  13805. //
  13806. // Type: int
  13807. // RequirementLevel: Recommended
  13808. // Stability: Development
  13809. //
  13810. // Note:
  13811. // Examples of where the value can be extracted from:
  13812. //
  13813. // | Language or platform | Source |
  13814. // | --- | --- |
  13815. // | JVM | `Thread.currentThread().threadId()` |
  13816. // | .NET | `Thread.CurrentThread.ManagedThreadId` |
  13817. // | Python | `threading.current_thread().ident` |
  13818. // | Ruby | `Thread.current.object_id` |
  13819. // | C++ | `std::this_thread::get_id()` |
  13820. // | Erlang | `erlang:self()` |
  13821. ThreadIDKey = attribute.Key("thread.id")
  13822. // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
  13823. // conventions. It represents the current thread name.
  13824. //
  13825. // Type: string
  13826. // RequirementLevel: Recommended
  13827. // Stability: Development
  13828. //
  13829. // Examples: main
  13830. // Note:
  13831. // Examples of where the value can be extracted from:
  13832. //
  13833. // | Language or platform | Source |
  13834. // | --- | --- |
  13835. // | JVM | `Thread.currentThread().getName()` |
  13836. // | .NET | `Thread.CurrentThread.Name` |
  13837. // | Python | `threading.current_thread().name` |
  13838. // | Ruby | `Thread.current.name` |
  13839. // | Erlang | `erlang:process_info(self(), registered_name)` |
  13840. ThreadNameKey = attribute.Key("thread.name")
  13841. )
  13842. // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
  13843. // conventions. It represents the current "managed" thread ID (as opposed to OS
  13844. // thread ID).
  13845. func ThreadID(val int) attribute.KeyValue {
  13846. return ThreadIDKey.Int(val)
  13847. }
  13848. // ThreadName returns an attribute KeyValue conforming to the "thread.name"
  13849. // semantic conventions. It represents the current thread name.
  13850. func ThreadName(val string) attribute.KeyValue {
  13851. return ThreadNameKey.String(val)
  13852. }
  13853. // Namespace: tls
  13854. const (
  13855. // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
  13856. // conventions. It represents the string indicating the [cipher] used during the
  13857. // current connection.
  13858. //
  13859. // Type: string
  13860. // RequirementLevel: Recommended
  13861. // Stability: Development
  13862. //
  13863. // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
  13864. // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
  13865. // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
  13866. // of the [registered TLS Cipher Suits].
  13867. //
  13868. // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
  13869. // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
  13870. TLSCipherKey = attribute.Key("tls.cipher")
  13871. // TLSClientCertificateKey is the attribute Key conforming to the
  13872. // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
  13873. // stand-alone certificate offered by the client. This is usually
  13874. // mutually-exclusive of `client.certificate_chain` since this value also exists
  13875. // in that list.
  13876. //
  13877. // Type: string
  13878. // RequirementLevel: Recommended
  13879. // Stability: Development
  13880. //
  13881. // Examples: "MII..."
  13882. TLSClientCertificateKey = attribute.Key("tls.client.certificate")
  13883. // TLSClientCertificateChainKey is the attribute Key conforming to the
  13884. // "tls.client.certificate_chain" semantic conventions. It represents the array
  13885. // of PEM-encoded certificates that make up the certificate chain offered by the
  13886. // client. This is usually mutually-exclusive of `client.certificate` since that
  13887. // value should be the first certificate in the chain.
  13888. //
  13889. // Type: string[]
  13890. // RequirementLevel: Recommended
  13891. // Stability: Development
  13892. //
  13893. // Examples: "MII...", "MI..."
  13894. TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
  13895. // TLSClientHashMd5Key is the attribute Key conforming to the
  13896. // "tls.client.hash.md5" semantic conventions. It represents the certificate
  13897. // fingerprint using the MD5 digest of DER-encoded version of certificate
  13898. // offered by the client. For consistency with other hash values, this value
  13899. // should be formatted as an uppercase hash.
  13900. //
  13901. // Type: string
  13902. // RequirementLevel: Recommended
  13903. // Stability: Development
  13904. //
  13905. // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
  13906. TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
  13907. // TLSClientHashSha1Key is the attribute Key conforming to the
  13908. // "tls.client.hash.sha1" semantic conventions. It represents the certificate
  13909. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  13910. // offered by the client. For consistency with other hash values, this value
  13911. // should be formatted as an uppercase hash.
  13912. //
  13913. // Type: string
  13914. // RequirementLevel: Recommended
  13915. // Stability: Development
  13916. //
  13917. // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
  13918. TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
  13919. // TLSClientHashSha256Key is the attribute Key conforming to the
  13920. // "tls.client.hash.sha256" semantic conventions. It represents the certificate
  13921. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  13922. // offered by the client. For consistency with other hash values, this value
  13923. // should be formatted as an uppercase hash.
  13924. //
  13925. // Type: string
  13926. // RequirementLevel: Recommended
  13927. // Stability: Development
  13928. //
  13929. // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
  13930. TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
  13931. // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
  13932. // semantic conventions. It represents the distinguished name of [subject] of
  13933. // the issuer of the x.509 certificate presented by the client.
  13934. //
  13935. // Type: string
  13936. // RequirementLevel: Recommended
  13937. // Stability: Development
  13938. //
  13939. // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
  13940. //
  13941. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  13942. TLSClientIssuerKey = attribute.Key("tls.client.issuer")
  13943. // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
  13944. // semantic conventions. It represents a hash that identifies clients based on
  13945. // how they perform an SSL/TLS handshake.
  13946. //
  13947. // Type: string
  13948. // RequirementLevel: Recommended
  13949. // Stability: Development
  13950. //
  13951. // Examples: "d4e5b18d6b55c71272893221c96ba240"
  13952. TLSClientJa3Key = attribute.Key("tls.client.ja3")
  13953. // TLSClientNotAfterKey is the attribute Key conforming to the
  13954. // "tls.client.not_after" semantic conventions. It represents the date/Time
  13955. // indicating when client certificate is no longer considered valid.
  13956. //
  13957. // Type: string
  13958. // RequirementLevel: Recommended
  13959. // Stability: Development
  13960. //
  13961. // Examples: "2021-01-01T00:00:00.000Z"
  13962. TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
  13963. // TLSClientNotBeforeKey is the attribute Key conforming to the
  13964. // "tls.client.not_before" semantic conventions. It represents the date/Time
  13965. // indicating when client certificate is first considered valid.
  13966. //
  13967. // Type: string
  13968. // RequirementLevel: Recommended
  13969. // Stability: Development
  13970. //
  13971. // Examples: "1970-01-01T00:00:00.000Z"
  13972. TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
  13973. // TLSClientSubjectKey is the attribute Key conforming to the
  13974. // "tls.client.subject" semantic conventions. It represents the distinguished
  13975. // name of subject of the x.509 certificate presented by the client.
  13976. //
  13977. // Type: string
  13978. // RequirementLevel: Recommended
  13979. // Stability: Development
  13980. //
  13981. // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
  13982. TLSClientSubjectKey = attribute.Key("tls.client.subject")
  13983. // TLSClientSupportedCiphersKey is the attribute Key conforming to the
  13984. // "tls.client.supported_ciphers" semantic conventions. It represents the array
  13985. // of ciphers offered by the client during the client hello.
  13986. //
  13987. // Type: string[]
  13988. // RequirementLevel: Recommended
  13989. // Stability: Development
  13990. //
  13991. // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
  13992. // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
  13993. TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
  13994. // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
  13995. // conventions. It represents the string indicating the curve used for the given
  13996. // cipher, when applicable.
  13997. //
  13998. // Type: string
  13999. // RequirementLevel: Recommended
  14000. // Stability: Development
  14001. //
  14002. // Examples: "secp256r1"
  14003. TLSCurveKey = attribute.Key("tls.curve")
  14004. // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
  14005. // semantic conventions. It represents the boolean flag indicating if the TLS
  14006. // negotiation was successful and transitioned to an encrypted tunnel.
  14007. //
  14008. // Type: boolean
  14009. // RequirementLevel: Recommended
  14010. // Stability: Development
  14011. //
  14012. // Examples: true
  14013. TLSEstablishedKey = attribute.Key("tls.established")
  14014. // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
  14015. // semantic conventions. It represents the string indicating the protocol being
  14016. // tunneled. Per the values in the [IANA registry], this string should be lower
  14017. // case.
  14018. //
  14019. // Type: string
  14020. // RequirementLevel: Recommended
  14021. // Stability: Development
  14022. //
  14023. // Examples: "http/1.1"
  14024. //
  14025. // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
  14026. TLSNextProtocolKey = attribute.Key("tls.next_protocol")
  14027. // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
  14028. // semantic conventions. It represents the normalized lowercase protocol name
  14029. // parsed from original string of the negotiated [SSL/TLS protocol version].
  14030. //
  14031. // Type: Enum
  14032. // RequirementLevel: Recommended
  14033. // Stability: Development
  14034. //
  14035. // Examples:
  14036. //
  14037. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  14038. TLSProtocolNameKey = attribute.Key("tls.protocol.name")
  14039. // TLSProtocolVersionKey is the attribute Key conforming to the
  14040. // "tls.protocol.version" semantic conventions. It represents the numeric part
  14041. // of the version parsed from the original string of the negotiated
  14042. // [SSL/TLS protocol version].
  14043. //
  14044. // Type: string
  14045. // RequirementLevel: Recommended
  14046. // Stability: Development
  14047. //
  14048. // Examples: "1.2", "3"
  14049. //
  14050. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  14051. TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
  14052. // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
  14053. // conventions. It represents the boolean flag indicating if this TLS connection
  14054. // was resumed from an existing TLS negotiation.
  14055. //
  14056. // Type: boolean
  14057. // RequirementLevel: Recommended
  14058. // Stability: Development
  14059. //
  14060. // Examples: true
  14061. TLSResumedKey = attribute.Key("tls.resumed")
  14062. // TLSServerCertificateKey is the attribute Key conforming to the
  14063. // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
  14064. // stand-alone certificate offered by the server. This is usually
  14065. // mutually-exclusive of `server.certificate_chain` since this value also exists
  14066. // in that list.
  14067. //
  14068. // Type: string
  14069. // RequirementLevel: Recommended
  14070. // Stability: Development
  14071. //
  14072. // Examples: "MII..."
  14073. TLSServerCertificateKey = attribute.Key("tls.server.certificate")
  14074. // TLSServerCertificateChainKey is the attribute Key conforming to the
  14075. // "tls.server.certificate_chain" semantic conventions. It represents the array
  14076. // of PEM-encoded certificates that make up the certificate chain offered by the
  14077. // server. This is usually mutually-exclusive of `server.certificate` since that
  14078. // value should be the first certificate in the chain.
  14079. //
  14080. // Type: string[]
  14081. // RequirementLevel: Recommended
  14082. // Stability: Development
  14083. //
  14084. // Examples: "MII...", "MI..."
  14085. TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
  14086. // TLSServerHashMd5Key is the attribute Key conforming to the
  14087. // "tls.server.hash.md5" semantic conventions. It represents the certificate
  14088. // fingerprint using the MD5 digest of DER-encoded version of certificate
  14089. // offered by the server. For consistency with other hash values, this value
  14090. // should be formatted as an uppercase hash.
  14091. //
  14092. // Type: string
  14093. // RequirementLevel: Recommended
  14094. // Stability: Development
  14095. //
  14096. // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
  14097. TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
  14098. // TLSServerHashSha1Key is the attribute Key conforming to the
  14099. // "tls.server.hash.sha1" semantic conventions. It represents the certificate
  14100. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  14101. // offered by the server. For consistency with other hash values, this value
  14102. // should be formatted as an uppercase hash.
  14103. //
  14104. // Type: string
  14105. // RequirementLevel: Recommended
  14106. // Stability: Development
  14107. //
  14108. // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
  14109. TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
  14110. // TLSServerHashSha256Key is the attribute Key conforming to the
  14111. // "tls.server.hash.sha256" semantic conventions. It represents the certificate
  14112. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  14113. // offered by the server. For consistency with other hash values, this value
  14114. // should be formatted as an uppercase hash.
  14115. //
  14116. // Type: string
  14117. // RequirementLevel: Recommended
  14118. // Stability: Development
  14119. //
  14120. // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
  14121. TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
  14122. // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
  14123. // semantic conventions. It represents the distinguished name of [subject] of
  14124. // the issuer of the x.509 certificate presented by the client.
  14125. //
  14126. // Type: string
  14127. // RequirementLevel: Recommended
  14128. // Stability: Development
  14129. //
  14130. // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
  14131. //
  14132. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  14133. TLSServerIssuerKey = attribute.Key("tls.server.issuer")
  14134. // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
  14135. // semantic conventions. It represents a hash that identifies servers based on
  14136. // how they perform an SSL/TLS handshake.
  14137. //
  14138. // Type: string
  14139. // RequirementLevel: Recommended
  14140. // Stability: Development
  14141. //
  14142. // Examples: "d4e5b18d6b55c71272893221c96ba240"
  14143. TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
  14144. // TLSServerNotAfterKey is the attribute Key conforming to the
  14145. // "tls.server.not_after" semantic conventions. It represents the date/Time
  14146. // indicating when server certificate is no longer considered valid.
  14147. //
  14148. // Type: string
  14149. // RequirementLevel: Recommended
  14150. // Stability: Development
  14151. //
  14152. // Examples: "2021-01-01T00:00:00.000Z"
  14153. TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
  14154. // TLSServerNotBeforeKey is the attribute Key conforming to the
  14155. // "tls.server.not_before" semantic conventions. It represents the date/Time
  14156. // indicating when server certificate is first considered valid.
  14157. //
  14158. // Type: string
  14159. // RequirementLevel: Recommended
  14160. // Stability: Development
  14161. //
  14162. // Examples: "1970-01-01T00:00:00.000Z"
  14163. TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
  14164. // TLSServerSubjectKey is the attribute Key conforming to the
  14165. // "tls.server.subject" semantic conventions. It represents the distinguished
  14166. // name of subject of the x.509 certificate presented by the server.
  14167. //
  14168. // Type: string
  14169. // RequirementLevel: Recommended
  14170. // Stability: Development
  14171. //
  14172. // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
  14173. TLSServerSubjectKey = attribute.Key("tls.server.subject")
  14174. )
  14175. // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
  14176. // semantic conventions. It represents the string indicating the [cipher] used
  14177. // during the current connection.
  14178. //
  14179. // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
  14180. func TLSCipher(val string) attribute.KeyValue {
  14181. return TLSCipherKey.String(val)
  14182. }
  14183. // TLSClientCertificate returns an attribute KeyValue conforming to the
  14184. // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
  14185. // stand-alone certificate offered by the client. This is usually
  14186. // mutually-exclusive of `client.certificate_chain` since this value also exists
  14187. // in that list.
  14188. func TLSClientCertificate(val string) attribute.KeyValue {
  14189. return TLSClientCertificateKey.String(val)
  14190. }
  14191. // TLSClientCertificateChain returns an attribute KeyValue conforming to the
  14192. // "tls.client.certificate_chain" semantic conventions. It represents the array
  14193. // of PEM-encoded certificates that make up the certificate chain offered by the
  14194. // client. This is usually mutually-exclusive of `client.certificate` since that
  14195. // value should be the first certificate in the chain.
  14196. func TLSClientCertificateChain(val ...string) attribute.KeyValue {
  14197. return TLSClientCertificateChainKey.StringSlice(val)
  14198. }
  14199. // TLSClientHashMd5 returns an attribute KeyValue conforming to the
  14200. // "tls.client.hash.md5" semantic conventions. It represents the certificate
  14201. // fingerprint using the MD5 digest of DER-encoded version of certificate offered
  14202. // by the client. For consistency with other hash values, this value should be
  14203. // formatted as an uppercase hash.
  14204. func TLSClientHashMd5(val string) attribute.KeyValue {
  14205. return TLSClientHashMd5Key.String(val)
  14206. }
  14207. // TLSClientHashSha1 returns an attribute KeyValue conforming to the
  14208. // "tls.client.hash.sha1" semantic conventions. It represents the certificate
  14209. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  14210. // offered by the client. For consistency with other hash values, this value
  14211. // should be formatted as an uppercase hash.
  14212. func TLSClientHashSha1(val string) attribute.KeyValue {
  14213. return TLSClientHashSha1Key.String(val)
  14214. }
  14215. // TLSClientHashSha256 returns an attribute KeyValue conforming to the
  14216. // "tls.client.hash.sha256" semantic conventions. It represents the certificate
  14217. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  14218. // offered by the client. For consistency with other hash values, this value
  14219. // should be formatted as an uppercase hash.
  14220. func TLSClientHashSha256(val string) attribute.KeyValue {
  14221. return TLSClientHashSha256Key.String(val)
  14222. }
  14223. // TLSClientIssuer returns an attribute KeyValue conforming to the
  14224. // "tls.client.issuer" semantic conventions. It represents the distinguished name
  14225. // of [subject] of the issuer of the x.509 certificate presented by the client.
  14226. //
  14227. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  14228. func TLSClientIssuer(val string) attribute.KeyValue {
  14229. return TLSClientIssuerKey.String(val)
  14230. }
  14231. // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
  14232. // semantic conventions. It represents a hash that identifies clients based on
  14233. // how they perform an SSL/TLS handshake.
  14234. func TLSClientJa3(val string) attribute.KeyValue {
  14235. return TLSClientJa3Key.String(val)
  14236. }
  14237. // TLSClientNotAfter returns an attribute KeyValue conforming to the
  14238. // "tls.client.not_after" semantic conventions. It represents the date/Time
  14239. // indicating when client certificate is no longer considered valid.
  14240. func TLSClientNotAfter(val string) attribute.KeyValue {
  14241. return TLSClientNotAfterKey.String(val)
  14242. }
  14243. // TLSClientNotBefore returns an attribute KeyValue conforming to the
  14244. // "tls.client.not_before" semantic conventions. It represents the date/Time
  14245. // indicating when client certificate is first considered valid.
  14246. func TLSClientNotBefore(val string) attribute.KeyValue {
  14247. return TLSClientNotBeforeKey.String(val)
  14248. }
  14249. // TLSClientSubject returns an attribute KeyValue conforming to the
  14250. // "tls.client.subject" semantic conventions. It represents the distinguished
  14251. // name of subject of the x.509 certificate presented by the client.
  14252. func TLSClientSubject(val string) attribute.KeyValue {
  14253. return TLSClientSubjectKey.String(val)
  14254. }
  14255. // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
  14256. // "tls.client.supported_ciphers" semantic conventions. It represents the array
  14257. // of ciphers offered by the client during the client hello.
  14258. func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
  14259. return TLSClientSupportedCiphersKey.StringSlice(val)
  14260. }
  14261. // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
  14262. // conventions. It represents the string indicating the curve used for the given
  14263. // cipher, when applicable.
  14264. func TLSCurve(val string) attribute.KeyValue {
  14265. return TLSCurveKey.String(val)
  14266. }
  14267. // TLSEstablished returns an attribute KeyValue conforming to the
  14268. // "tls.established" semantic conventions. It represents the boolean flag
  14269. // indicating if the TLS negotiation was successful and transitioned to an
  14270. // encrypted tunnel.
  14271. func TLSEstablished(val bool) attribute.KeyValue {
  14272. return TLSEstablishedKey.Bool(val)
  14273. }
  14274. // TLSNextProtocol returns an attribute KeyValue conforming to the
  14275. // "tls.next_protocol" semantic conventions. It represents the string indicating
  14276. // the protocol being tunneled. Per the values in the [IANA registry], this
  14277. // string should be lower case.
  14278. //
  14279. // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
  14280. func TLSNextProtocol(val string) attribute.KeyValue {
  14281. return TLSNextProtocolKey.String(val)
  14282. }
  14283. // TLSProtocolVersion returns an attribute KeyValue conforming to the
  14284. // "tls.protocol.version" semantic conventions. It represents the numeric part of
  14285. // the version parsed from the original string of the negotiated
  14286. // [SSL/TLS protocol version].
  14287. //
  14288. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  14289. func TLSProtocolVersion(val string) attribute.KeyValue {
  14290. return TLSProtocolVersionKey.String(val)
  14291. }
  14292. // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
  14293. // semantic conventions. It represents the boolean flag indicating if this TLS
  14294. // connection was resumed from an existing TLS negotiation.
  14295. func TLSResumed(val bool) attribute.KeyValue {
  14296. return TLSResumedKey.Bool(val)
  14297. }
  14298. // TLSServerCertificate returns an attribute KeyValue conforming to the
  14299. // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
  14300. // stand-alone certificate offered by the server. This is usually
  14301. // mutually-exclusive of `server.certificate_chain` since this value also exists
  14302. // in that list.
  14303. func TLSServerCertificate(val string) attribute.KeyValue {
  14304. return TLSServerCertificateKey.String(val)
  14305. }
  14306. // TLSServerCertificateChain returns an attribute KeyValue conforming to the
  14307. // "tls.server.certificate_chain" semantic conventions. It represents the array
  14308. // of PEM-encoded certificates that make up the certificate chain offered by the
  14309. // server. This is usually mutually-exclusive of `server.certificate` since that
  14310. // value should be the first certificate in the chain.
  14311. func TLSServerCertificateChain(val ...string) attribute.KeyValue {
  14312. return TLSServerCertificateChainKey.StringSlice(val)
  14313. }
  14314. // TLSServerHashMd5 returns an attribute KeyValue conforming to the
  14315. // "tls.server.hash.md5" semantic conventions. It represents the certificate
  14316. // fingerprint using the MD5 digest of DER-encoded version of certificate offered
  14317. // by the server. For consistency with other hash values, this value should be
  14318. // formatted as an uppercase hash.
  14319. func TLSServerHashMd5(val string) attribute.KeyValue {
  14320. return TLSServerHashMd5Key.String(val)
  14321. }
  14322. // TLSServerHashSha1 returns an attribute KeyValue conforming to the
  14323. // "tls.server.hash.sha1" semantic conventions. It represents the certificate
  14324. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  14325. // offered by the server. For consistency with other hash values, this value
  14326. // should be formatted as an uppercase hash.
  14327. func TLSServerHashSha1(val string) attribute.KeyValue {
  14328. return TLSServerHashSha1Key.String(val)
  14329. }
  14330. // TLSServerHashSha256 returns an attribute KeyValue conforming to the
  14331. // "tls.server.hash.sha256" semantic conventions. It represents the certificate
  14332. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  14333. // offered by the server. For consistency with other hash values, this value
  14334. // should be formatted as an uppercase hash.
  14335. func TLSServerHashSha256(val string) attribute.KeyValue {
  14336. return TLSServerHashSha256Key.String(val)
  14337. }
  14338. // TLSServerIssuer returns an attribute KeyValue conforming to the
  14339. // "tls.server.issuer" semantic conventions. It represents the distinguished name
  14340. // of [subject] of the issuer of the x.509 certificate presented by the client.
  14341. //
  14342. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  14343. func TLSServerIssuer(val string) attribute.KeyValue {
  14344. return TLSServerIssuerKey.String(val)
  14345. }
  14346. // TLSServerJa3s returns an attribute KeyValue conforming to the
  14347. // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
  14348. // servers based on how they perform an SSL/TLS handshake.
  14349. func TLSServerJa3s(val string) attribute.KeyValue {
  14350. return TLSServerJa3sKey.String(val)
  14351. }
  14352. // TLSServerNotAfter returns an attribute KeyValue conforming to the
  14353. // "tls.server.not_after" semantic conventions. It represents the date/Time
  14354. // indicating when server certificate is no longer considered valid.
  14355. func TLSServerNotAfter(val string) attribute.KeyValue {
  14356. return TLSServerNotAfterKey.String(val)
  14357. }
  14358. // TLSServerNotBefore returns an attribute KeyValue conforming to the
  14359. // "tls.server.not_before" semantic conventions. It represents the date/Time
  14360. // indicating when server certificate is first considered valid.
  14361. func TLSServerNotBefore(val string) attribute.KeyValue {
  14362. return TLSServerNotBeforeKey.String(val)
  14363. }
  14364. // TLSServerSubject returns an attribute KeyValue conforming to the
  14365. // "tls.server.subject" semantic conventions. It represents the distinguished
  14366. // name of subject of the x.509 certificate presented by the server.
  14367. func TLSServerSubject(val string) attribute.KeyValue {
  14368. return TLSServerSubjectKey.String(val)
  14369. }
  14370. // Enum values for tls.protocol.name
  14371. var (
  14372. // ssl
  14373. // Stability: development
  14374. TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
  14375. // tls
  14376. // Stability: development
  14377. TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
  14378. )
  14379. // Namespace: url
  14380. const (
  14381. // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
  14382. // conventions. It represents the domain extracted from the `url.full`, such as
  14383. // "opentelemetry.io".
  14384. //
  14385. // Type: string
  14386. // RequirementLevel: Recommended
  14387. // Stability: Development
  14388. //
  14389. // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
  14390. // "[1080:0:0:0:8:800:200C:417A]"
  14391. // Note: In some cases a URL may refer to an IP and/or port directly, without a
  14392. // domain name. In this case, the IP address would go to the domain field. If
  14393. // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
  14394. // and `]` characters should also be captured in the domain field.
  14395. //
  14396. // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
  14397. URLDomainKey = attribute.Key("url.domain")
  14398. // URLExtensionKey is the attribute Key conforming to the "url.extension"
  14399. // semantic conventions. It represents the file extension extracted from the
  14400. // `url.full`, excluding the leading dot.
  14401. //
  14402. // Type: string
  14403. // RequirementLevel: Recommended
  14404. // Stability: Development
  14405. //
  14406. // Examples: "png", "gz"
  14407. // Note: The file extension is only set if it exists, as not every url has a
  14408. // file extension. When the file name has multiple extensions `example.tar.gz`,
  14409. // only the last one should be captured `gz`, not `tar.gz`.
  14410. URLExtensionKey = attribute.Key("url.extension")
  14411. // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
  14412. // conventions. It represents the [URI fragment] component.
  14413. //
  14414. // Type: string
  14415. // RequirementLevel: Recommended
  14416. // Stability: Stable
  14417. //
  14418. // Examples: "SemConv"
  14419. //
  14420. // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
  14421. URLFragmentKey = attribute.Key("url.fragment")
  14422. // URLFullKey is the attribute Key conforming to the "url.full" semantic
  14423. // conventions. It represents the absolute URL describing a network resource
  14424. // according to [RFC3986].
  14425. //
  14426. // Type: string
  14427. // RequirementLevel: Recommended
  14428. // Stability: Stable
  14429. //
  14430. // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
  14431. // Note: For network calls, URL usually has
  14432. // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
  14433. // is not transmitted over HTTP, but if it is known, it SHOULD be included
  14434. // nevertheless.
  14435. //
  14436. // `url.full` MUST NOT contain credentials passed via URL in form of
  14437. // `https://username:password@www.example.com/`.
  14438. // In such case username and password SHOULD be redacted and attribute's value
  14439. // SHOULD be `https://REDACTED:REDACTED@www.example.com/`.
  14440. //
  14441. // `url.full` SHOULD capture the absolute URL when it is available (or can be
  14442. // reconstructed).
  14443. //
  14444. // Sensitive content provided in `url.full` SHOULD be scrubbed when
  14445. // instrumentations can identify it.
  14446. //
  14447. //
  14448. // Query string values for the following keys SHOULD be redacted by default and
  14449. // replaced by the
  14450. // value `REDACTED`:
  14451. //
  14452. // - [`AWSAccessKeyId`]
  14453. // - [`Signature`]
  14454. // - [`sig`]
  14455. // - [`X-Goog-Signature`]
  14456. //
  14457. // This list is subject to change over time.
  14458. //
  14459. // Matching of query parameter keys against the sensitive list SHOULD be
  14460. // case-sensitive.
  14461. //
  14462. //
  14463. // Instrumentation MAY provide a way to override this list via declarative
  14464. // configuration.
  14465. // If so, it SHOULD use the `sensitive_query_parameters` property
  14466. // (an array of case-sensitive strings with minimum items 0) under
  14467. // `.instrumentation/development.general.sanitization.url`.
  14468. // This list is a full override of the default sensitive query parameter keys,
  14469. // it is not a list of keys in addition to the defaults.
  14470. //
  14471. // When a query string value is redacted, the query string key SHOULD still be
  14472. // preserved, e.g.
  14473. // `https://www.example.com/path?color=blue&sig=REDACTED`.
  14474. //
  14475. // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
  14476. // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  14477. // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  14478. // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
  14479. // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
  14480. URLFullKey = attribute.Key("url.full")
  14481. // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
  14482. // conventions. It represents the unmodified original URL as seen in the event
  14483. // source.
  14484. //
  14485. // Type: string
  14486. // RequirementLevel: Recommended
  14487. // Stability: Development
  14488. //
  14489. // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
  14490. // "search?q=OpenTelemetry"
  14491. // Note: In network monitoring, the observed URL may be a full URL, whereas in
  14492. // access logs, the URL is often just represented as a path. This field is meant
  14493. // to represent the URL as it was observed, complete or not.
  14494. // `url.original` might contain credentials passed via URL in form of
  14495. // `https://username:password@www.example.com/`. In such case password and
  14496. // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
  14497. URLOriginalKey = attribute.Key("url.original")
  14498. // URLPathKey is the attribute Key conforming to the "url.path" semantic
  14499. // conventions. It represents the [URI path] component.
  14500. //
  14501. // Type: string
  14502. // RequirementLevel: Recommended
  14503. // Stability: Stable
  14504. //
  14505. // Examples: "/search"
  14506. // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
  14507. // instrumentations can identify it.
  14508. //
  14509. // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
  14510. URLPathKey = attribute.Key("url.path")
  14511. // URLPortKey is the attribute Key conforming to the "url.port" semantic
  14512. // conventions. It represents the port extracted from the `url.full`.
  14513. //
  14514. // Type: int
  14515. // RequirementLevel: Recommended
  14516. // Stability: Development
  14517. //
  14518. // Examples: 443
  14519. URLPortKey = attribute.Key("url.port")
  14520. // URLQueryKey is the attribute Key conforming to the "url.query" semantic
  14521. // conventions. It represents the [URI query] component.
  14522. //
  14523. // Type: string
  14524. // RequirementLevel: Recommended
  14525. // Stability: Stable
  14526. //
  14527. // Examples: "q=OpenTelemetry"
  14528. // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
  14529. // instrumentations can identify it.
  14530. //
  14531. //
  14532. // Query string values for the following keys SHOULD be redacted by default and
  14533. // replaced by the value `REDACTED`:
  14534. //
  14535. // - [`AWSAccessKeyId`]
  14536. // - [`Signature`]
  14537. // - [`sig`]
  14538. // - [`X-Goog-Signature`]
  14539. //
  14540. // This list is subject to change over time.
  14541. //
  14542. // Matching of query parameter keys against the sensitive list SHOULD be
  14543. // case-sensitive.
  14544. //
  14545. // Instrumentation MAY provide a way to override this list via declarative
  14546. // configuration.
  14547. // If so, it SHOULD use the `sensitive_query_parameters` property
  14548. // (an array of case-sensitive strings with minimum items 0) under
  14549. // `.instrumentation/development.general.sanitization.url`.
  14550. // This list is a full override of the default sensitive query parameter keys,
  14551. // it is not a list of keys in addition to the defaults.
  14552. //
  14553. // When a query string value is redacted, the query string key SHOULD still be
  14554. // preserved, e.g.
  14555. // `q=OpenTelemetry&sig=REDACTED`.
  14556. //
  14557. // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
  14558. // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  14559. // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  14560. // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
  14561. // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
  14562. URLQueryKey = attribute.Key("url.query")
  14563. // URLRegisteredDomainKey is the attribute Key conforming to the
  14564. // "url.registered_domain" semantic conventions. It represents the highest
  14565. // registered url domain, stripped of the subdomain.
  14566. //
  14567. // Type: string
  14568. // RequirementLevel: Recommended
  14569. // Stability: Development
  14570. //
  14571. // Examples: "example.com", "foo.co.uk"
  14572. // Note: This value can be determined precisely with the [public suffix list].
  14573. // For example, the registered domain for `foo.example.com` is `example.com`.
  14574. // Trying to approximate this by simply taking the last two labels will not work
  14575. // well for TLDs such as `co.uk`.
  14576. //
  14577. // [public suffix list]: https://publicsuffix.org/
  14578. URLRegisteredDomainKey = attribute.Key("url.registered_domain")
  14579. // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
  14580. // conventions. It represents the [URI scheme] component identifying the used
  14581. // protocol.
  14582. //
  14583. // Type: string
  14584. // RequirementLevel: Recommended
  14585. // Stability: Stable
  14586. //
  14587. // Examples: "https", "ftp", "telnet"
  14588. //
  14589. // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
  14590. URLSchemeKey = attribute.Key("url.scheme")
  14591. // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
  14592. // semantic conventions. It represents the subdomain portion of a fully
  14593. // qualified domain name includes all of the names except the host name under
  14594. // the registered_domain. In a partially qualified domain, or if the
  14595. // qualification level of the full name cannot be determined, subdomain contains
  14596. // all of the names below the registered domain.
  14597. //
  14598. // Type: string
  14599. // RequirementLevel: Recommended
  14600. // Stability: Development
  14601. //
  14602. // Examples: "east", "sub2.sub1"
  14603. // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
  14604. // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
  14605. // subdomain field should contain `sub2.sub1`, with no trailing period.
  14606. URLSubdomainKey = attribute.Key("url.subdomain")
  14607. // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
  14608. // conventions. It represents the low-cardinality template of an
  14609. // [absolute path reference].
  14610. //
  14611. // Type: string
  14612. // RequirementLevel: Recommended
  14613. // Stability: Development
  14614. //
  14615. // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
  14616. //
  14617. // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
  14618. URLTemplateKey = attribute.Key("url.template")
  14619. // URLTopLevelDomainKey is the attribute Key conforming to the
  14620. // "url.top_level_domain" semantic conventions. It represents the effective top
  14621. // level domain (eTLD), also known as the domain suffix, is the last part of the
  14622. // domain name. For example, the top level domain for example.com is `com`.
  14623. //
  14624. // Type: string
  14625. // RequirementLevel: Recommended
  14626. // Stability: Development
  14627. //
  14628. // Examples: "com", "co.uk"
  14629. // Note: This value can be determined precisely with the [public suffix list].
  14630. //
  14631. // [public suffix list]: https://publicsuffix.org/
  14632. URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
  14633. )
  14634. // URLDomain returns an attribute KeyValue conforming to the "url.domain"
  14635. // semantic conventions. It represents the domain extracted from the `url.full`,
  14636. // such as "opentelemetry.io".
  14637. func URLDomain(val string) attribute.KeyValue {
  14638. return URLDomainKey.String(val)
  14639. }
  14640. // URLExtension returns an attribute KeyValue conforming to the "url.extension"
  14641. // semantic conventions. It represents the file extension extracted from the
  14642. // `url.full`, excluding the leading dot.
  14643. func URLExtension(val string) attribute.KeyValue {
  14644. return URLExtensionKey.String(val)
  14645. }
  14646. // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
  14647. // semantic conventions. It represents the [URI fragment] component.
  14648. //
  14649. // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
  14650. func URLFragment(val string) attribute.KeyValue {
  14651. return URLFragmentKey.String(val)
  14652. }
  14653. // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
  14654. // conventions. It represents the absolute URL describing a network resource
  14655. // according to [RFC3986].
  14656. //
  14657. // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
  14658. func URLFull(val string) attribute.KeyValue {
  14659. return URLFullKey.String(val)
  14660. }
  14661. // URLOriginal returns an attribute KeyValue conforming to the "url.original"
  14662. // semantic conventions. It represents the unmodified original URL as seen in the
  14663. // event source.
  14664. func URLOriginal(val string) attribute.KeyValue {
  14665. return URLOriginalKey.String(val)
  14666. }
  14667. // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
  14668. // conventions. It represents the [URI path] component.
  14669. //
  14670. // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
  14671. func URLPath(val string) attribute.KeyValue {
  14672. return URLPathKey.String(val)
  14673. }
  14674. // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
  14675. // conventions. It represents the port extracted from the `url.full`.
  14676. func URLPort(val int) attribute.KeyValue {
  14677. return URLPortKey.Int(val)
  14678. }
  14679. // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
  14680. // conventions. It represents the [URI query] component.
  14681. //
  14682. // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
  14683. func URLQuery(val string) attribute.KeyValue {
  14684. return URLQueryKey.String(val)
  14685. }
  14686. // URLRegisteredDomain returns an attribute KeyValue conforming to the
  14687. // "url.registered_domain" semantic conventions. It represents the highest
  14688. // registered url domain, stripped of the subdomain.
  14689. func URLRegisteredDomain(val string) attribute.KeyValue {
  14690. return URLRegisteredDomainKey.String(val)
  14691. }
  14692. // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
  14693. // semantic conventions. It represents the [URI scheme] component identifying the
  14694. // used protocol.
  14695. //
  14696. // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
  14697. func URLScheme(val string) attribute.KeyValue {
  14698. return URLSchemeKey.String(val)
  14699. }
  14700. // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
  14701. // semantic conventions. It represents the subdomain portion of a fully qualified
  14702. // domain name includes all of the names except the host name under the
  14703. // registered_domain. In a partially qualified domain, or if the qualification
  14704. // level of the full name cannot be determined, subdomain contains all of the
  14705. // names below the registered domain.
  14706. func URLSubdomain(val string) attribute.KeyValue {
  14707. return URLSubdomainKey.String(val)
  14708. }
  14709. // URLTemplate returns an attribute KeyValue conforming to the "url.template"
  14710. // semantic conventions. It represents the low-cardinality template of an
  14711. // [absolute path reference].
  14712. //
  14713. // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
  14714. func URLTemplate(val string) attribute.KeyValue {
  14715. return URLTemplateKey.String(val)
  14716. }
  14717. // URLTopLevelDomain returns an attribute KeyValue conforming to the
  14718. // "url.top_level_domain" semantic conventions. It represents the effective top
  14719. // level domain (eTLD), also known as the domain suffix, is the last part of the
  14720. // domain name. For example, the top level domain for example.com is `com`.
  14721. func URLTopLevelDomain(val string) attribute.KeyValue {
  14722. return URLTopLevelDomainKey.String(val)
  14723. }
  14724. // Namespace: user
  14725. const (
  14726. // UserEmailKey is the attribute Key conforming to the "user.email" semantic
  14727. // conventions. It represents the user email address.
  14728. //
  14729. // Type: string
  14730. // RequirementLevel: Recommended
  14731. // Stability: Development
  14732. //
  14733. // Examples: "a.einstein@example.com"
  14734. UserEmailKey = attribute.Key("user.email")
  14735. // UserFullNameKey is the attribute Key conforming to the "user.full_name"
  14736. // semantic conventions. It represents the user's full name.
  14737. //
  14738. // Type: string
  14739. // RequirementLevel: Recommended
  14740. // Stability: Development
  14741. //
  14742. // Examples: "Albert Einstein"
  14743. UserFullNameKey = attribute.Key("user.full_name")
  14744. // UserHashKey is the attribute Key conforming to the "user.hash" semantic
  14745. // conventions. It represents the unique user hash to correlate information for
  14746. // a user in anonymized form.
  14747. //
  14748. // Type: string
  14749. // RequirementLevel: Recommended
  14750. // Stability: Development
  14751. //
  14752. // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
  14753. // Note: Useful if `user.id` or `user.name` contain confidential information and
  14754. // cannot be used.
  14755. UserHashKey = attribute.Key("user.hash")
  14756. // UserIDKey is the attribute Key conforming to the "user.id" semantic
  14757. // conventions. It represents the unique identifier of the user.
  14758. //
  14759. // Type: string
  14760. // RequirementLevel: Recommended
  14761. // Stability: Development
  14762. //
  14763. // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
  14764. UserIDKey = attribute.Key("user.id")
  14765. // UserNameKey is the attribute Key conforming to the "user.name" semantic
  14766. // conventions. It represents the short name or login/username of the user.
  14767. //
  14768. // Type: string
  14769. // RequirementLevel: Recommended
  14770. // Stability: Development
  14771. //
  14772. // Examples: "a.einstein"
  14773. UserNameKey = attribute.Key("user.name")
  14774. // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
  14775. // conventions. It represents the array of user roles at the time of the event.
  14776. //
  14777. // Type: string[]
  14778. // RequirementLevel: Recommended
  14779. // Stability: Development
  14780. //
  14781. // Examples: "admin", "reporting_user"
  14782. UserRolesKey = attribute.Key("user.roles")
  14783. )
  14784. // UserEmail returns an attribute KeyValue conforming to the "user.email"
  14785. // semantic conventions. It represents the user email address.
  14786. func UserEmail(val string) attribute.KeyValue {
  14787. return UserEmailKey.String(val)
  14788. }
  14789. // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
  14790. // semantic conventions. It represents the user's full name.
  14791. func UserFullName(val string) attribute.KeyValue {
  14792. return UserFullNameKey.String(val)
  14793. }
  14794. // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
  14795. // conventions. It represents the unique user hash to correlate information for a
  14796. // user in anonymized form.
  14797. func UserHash(val string) attribute.KeyValue {
  14798. return UserHashKey.String(val)
  14799. }
  14800. // UserID returns an attribute KeyValue conforming to the "user.id" semantic
  14801. // conventions. It represents the unique identifier of the user.
  14802. func UserID(val string) attribute.KeyValue {
  14803. return UserIDKey.String(val)
  14804. }
  14805. // UserName returns an attribute KeyValue conforming to the "user.name" semantic
  14806. // conventions. It represents the short name or login/username of the user.
  14807. func UserName(val string) attribute.KeyValue {
  14808. return UserNameKey.String(val)
  14809. }
  14810. // UserRoles returns an attribute KeyValue conforming to the "user.roles"
  14811. // semantic conventions. It represents the array of user roles at the time of the
  14812. // event.
  14813. func UserRoles(val ...string) attribute.KeyValue {
  14814. return UserRolesKey.StringSlice(val)
  14815. }
  14816. // Namespace: user_agent
  14817. const (
  14818. // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
  14819. // semantic conventions. It represents the name of the user-agent extracted from
  14820. // original. Usually refers to the browser's name.
  14821. //
  14822. // Type: string
  14823. // RequirementLevel: Recommended
  14824. // Stability: Development
  14825. //
  14826. // Examples: "Safari", "YourApp"
  14827. // Note: [Example] of extracting browser's name from original string. In the
  14828. // case of using a user-agent for non-browser products, such as microservices
  14829. // with multiple names/versions inside the `user_agent.original`, the most
  14830. // significant name SHOULD be selected. In such a scenario it should align with
  14831. // `user_agent.version`
  14832. //
  14833. // [Example]: https://uaparser.dev/#demo
  14834. UserAgentNameKey = attribute.Key("user_agent.name")
  14835. // UserAgentOriginalKey is the attribute Key conforming to the
  14836. // "user_agent.original" semantic conventions. It represents the value of the
  14837. // [HTTP User-Agent] header sent by the client.
  14838. //
  14839. // Type: string
  14840. // RequirementLevel: Recommended
  14841. // Stability: Stable
  14842. //
  14843. // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
  14844. // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
  14845. // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
  14846. // grpc-java-okhttp/1.27.2"
  14847. //
  14848. // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
  14849. UserAgentOriginalKey = attribute.Key("user_agent.original")
  14850. // UserAgentOSNameKey is the attribute Key conforming to the
  14851. // "user_agent.os.name" semantic conventions. It represents the human readable
  14852. // operating system name.
  14853. //
  14854. // Type: string
  14855. // RequirementLevel: Recommended
  14856. // Stability: Development
  14857. //
  14858. // Examples: "iOS", "Android", "Ubuntu"
  14859. // Note: For mapping user agent strings to OS names, libraries such as
  14860. // [ua-parser] can be utilized.
  14861. //
  14862. // [ua-parser]: https://github.com/ua-parser
  14863. UserAgentOSNameKey = attribute.Key("user_agent.os.name")
  14864. // UserAgentOSVersionKey is the attribute Key conforming to the
  14865. // "user_agent.os.version" semantic conventions. It represents the version
  14866. // string of the operating system as defined in [Version Attributes].
  14867. //
  14868. // Type: string
  14869. // RequirementLevel: Recommended
  14870. // Stability: Development
  14871. //
  14872. // Examples: "14.2.1", "18.04.1"
  14873. // Note: For mapping user agent strings to OS versions, libraries such as
  14874. // [ua-parser] can be utilized.
  14875. //
  14876. // [Version Attributes]: /docs/resource/README.md#version-attributes
  14877. // [ua-parser]: https://github.com/ua-parser
  14878. UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
  14879. // UserAgentSyntheticTypeKey is the attribute Key conforming to the
  14880. // "user_agent.synthetic.type" semantic conventions. It represents the specifies
  14881. // the category of synthetic traffic, such as tests or bots.
  14882. //
  14883. // Type: Enum
  14884. // RequirementLevel: Recommended
  14885. // Stability: Development
  14886. //
  14887. // Examples:
  14888. // Note: This attribute MAY be derived from the contents of the
  14889. // `user_agent.original` attribute. Components that populate the attribute are
  14890. // responsible for determining what they consider to be synthetic bot or test
  14891. // traffic. This attribute can either be set for self-identification purposes,
  14892. // or on telemetry detected to be generated as a result of a synthetic request.
  14893. // This attribute is useful for distinguishing between genuine client traffic
  14894. // and synthetic traffic generated by bots or tests.
  14895. UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
  14896. // UserAgentVersionKey is the attribute Key conforming to the
  14897. // "user_agent.version" semantic conventions. It represents the version of the
  14898. // user-agent extracted from original. Usually refers to the browser's version.
  14899. //
  14900. // Type: string
  14901. // RequirementLevel: Recommended
  14902. // Stability: Development
  14903. //
  14904. // Examples: "14.1.2", "1.0.0"
  14905. // Note: [Example] of extracting browser's version from original string. In the
  14906. // case of using a user-agent for non-browser products, such as microservices
  14907. // with multiple names/versions inside the `user_agent.original`, the most
  14908. // significant version SHOULD be selected. In such a scenario it should align
  14909. // with `user_agent.name`
  14910. //
  14911. // [Example]: https://uaparser.dev/#demo
  14912. UserAgentVersionKey = attribute.Key("user_agent.version")
  14913. )
  14914. // UserAgentName returns an attribute KeyValue conforming to the
  14915. // "user_agent.name" semantic conventions. It represents the name of the
  14916. // user-agent extracted from original. Usually refers to the browser's name.
  14917. func UserAgentName(val string) attribute.KeyValue {
  14918. return UserAgentNameKey.String(val)
  14919. }
  14920. // UserAgentOriginal returns an attribute KeyValue conforming to the
  14921. // "user_agent.original" semantic conventions. It represents the value of the
  14922. // [HTTP User-Agent] header sent by the client.
  14923. //
  14924. // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
  14925. func UserAgentOriginal(val string) attribute.KeyValue {
  14926. return UserAgentOriginalKey.String(val)
  14927. }
  14928. // UserAgentOSName returns an attribute KeyValue conforming to the
  14929. // "user_agent.os.name" semantic conventions. It represents the human readable
  14930. // operating system name.
  14931. func UserAgentOSName(val string) attribute.KeyValue {
  14932. return UserAgentOSNameKey.String(val)
  14933. }
  14934. // UserAgentOSVersion returns an attribute KeyValue conforming to the
  14935. // "user_agent.os.version" semantic conventions. It represents the version string
  14936. // of the operating system as defined in [Version Attributes].
  14937. //
  14938. // [Version Attributes]: /docs/resource/README.md#version-attributes
  14939. func UserAgentOSVersion(val string) attribute.KeyValue {
  14940. return UserAgentOSVersionKey.String(val)
  14941. }
  14942. // UserAgentVersion returns an attribute KeyValue conforming to the
  14943. // "user_agent.version" semantic conventions. It represents the version of the
  14944. // user-agent extracted from original. Usually refers to the browser's version.
  14945. func UserAgentVersion(val string) attribute.KeyValue {
  14946. return UserAgentVersionKey.String(val)
  14947. }
  14948. // Enum values for user_agent.synthetic.type
  14949. var (
  14950. // Bot source.
  14951. // Stability: development
  14952. UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
  14953. // Synthetic test source.
  14954. // Stability: development
  14955. UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
  14956. )
  14957. // Namespace: vcs
  14958. const (
  14959. // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
  14960. // semantic conventions. It represents the ID of the change (pull request/merge
  14961. // request/changelist) if applicable. This is usually a unique (within
  14962. // repository) identifier generated by the VCS system.
  14963. //
  14964. // Type: string
  14965. // RequirementLevel: Recommended
  14966. // Stability: Development
  14967. //
  14968. // Examples: "123"
  14969. VCSChangeIDKey = attribute.Key("vcs.change.id")
  14970. // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
  14971. // semantic conventions. It represents the state of the change (pull
  14972. // request/merge request/changelist).
  14973. //
  14974. // Type: Enum
  14975. // RequirementLevel: Recommended
  14976. // Stability: Development
  14977. //
  14978. // Examples: "open", "closed", "merged"
  14979. VCSChangeStateKey = attribute.Key("vcs.change.state")
  14980. // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
  14981. // semantic conventions. It represents the human readable title of the change
  14982. // (pull request/merge request/changelist). This title is often a brief summary
  14983. // of the change and may get merged in to a ref as the commit summary.
  14984. //
  14985. // Type: string
  14986. // RequirementLevel: Recommended
  14987. // Stability: Development
  14988. //
  14989. // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
  14990. // dependency"
  14991. VCSChangeTitleKey = attribute.Key("vcs.change.title")
  14992. // VCSLineChangeTypeKey is the attribute Key conforming to the
  14993. // "vcs.line_change.type" semantic conventions. It represents the type of line
  14994. // change being measured on a branch or change.
  14995. //
  14996. // Type: Enum
  14997. // RequirementLevel: Recommended
  14998. // Stability: Development
  14999. //
  15000. // Examples: "added", "removed"
  15001. VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
  15002. // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
  15003. // semantic conventions. It represents the group owner within the version
  15004. // control system.
  15005. //
  15006. // Type: string
  15007. // RequirementLevel: Recommended
  15008. // Stability: Development
  15009. //
  15010. // Examples: "my-org", "myteam", "business-unit"
  15011. VCSOwnerNameKey = attribute.Key("vcs.owner.name")
  15012. // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
  15013. // semantic conventions. It represents the name of the version control system
  15014. // provider.
  15015. //
  15016. // Type: Enum
  15017. // RequirementLevel: Recommended
  15018. // Stability: Development
  15019. //
  15020. // Examples: "github", "gitlab", "gitea", "bitbucket"
  15021. VCSProviderNameKey = attribute.Key("vcs.provider.name")
  15022. // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
  15023. // semantic conventions. It represents the name of the [reference] such as
  15024. // **branch** or **tag** in the repository.
  15025. //
  15026. // Type: string
  15027. // RequirementLevel: Recommended
  15028. // Stability: Development
  15029. //
  15030. // Examples: "my-feature-branch", "tag-1-test"
  15031. // Note: `base` refers to the starting point of a change. For example, `main`
  15032. // would be the base reference of type branch if you've created a new
  15033. // reference of type branch from it and created new commits.
  15034. //
  15035. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15036. VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
  15037. // VCSRefBaseRevisionKey is the attribute Key conforming to the
  15038. // "vcs.ref.base.revision" semantic conventions. It represents the revision,
  15039. // literally [revised version], The revision most often refers to a commit
  15040. // object in Git, or a revision number in SVN.
  15041. //
  15042. // Type: string
  15043. // RequirementLevel: Recommended
  15044. // Stability: Development
  15045. //
  15046. // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
  15047. // "main", "123", "HEAD"
  15048. // Note: `base` refers to the starting point of a change. For example, `main`
  15049. // would be the base reference of type branch if you've created a new
  15050. // reference of type branch from it and created new commits. The
  15051. // revision can be a full [hash value (see
  15052. // glossary)],
  15053. // of the recorded change to a ref within a repository pointing to a
  15054. // commit [commit] object. It does
  15055. // not necessarily have to be a hash; it can simply define a [revision
  15056. // number]
  15057. // which is an integer that is monotonically increasing. In cases where
  15058. // it is identical to the `ref.base.name`, it SHOULD still be included.
  15059. // It is up to the implementer to decide which value to set as the
  15060. // revision based on the VCS system and situational context.
  15061. //
  15062. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  15063. // [hash value (see
  15064. // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  15065. // [commit]: https://git-scm.com/docs/git-commit
  15066. // [revision
  15067. // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
  15068. VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
  15069. // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
  15070. // semantic conventions. It represents the type of the [reference] in the
  15071. // repository.
  15072. //
  15073. // Type: Enum
  15074. // RequirementLevel: Recommended
  15075. // Stability: Development
  15076. //
  15077. // Examples: "branch", "tag"
  15078. // Note: `base` refers to the starting point of a change. For example, `main`
  15079. // would be the base reference of type branch if you've created a new
  15080. // reference of type branch from it and created new commits.
  15081. //
  15082. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15083. VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
  15084. // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
  15085. // semantic conventions. It represents the name of the [reference] such as
  15086. // **branch** or **tag** in the repository.
  15087. //
  15088. // Type: string
  15089. // RequirementLevel: Recommended
  15090. // Stability: Development
  15091. //
  15092. // Examples: "my-feature-branch", "tag-1-test"
  15093. // Note: `head` refers to where you are right now; the current reference at a
  15094. // given time.
  15095. //
  15096. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15097. VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
  15098. // VCSRefHeadRevisionKey is the attribute Key conforming to the
  15099. // "vcs.ref.head.revision" semantic conventions. It represents the revision,
  15100. // literally [revised version], The revision most often refers to a commit
  15101. // object in Git, or a revision number in SVN.
  15102. //
  15103. // Type: string
  15104. // RequirementLevel: Recommended
  15105. // Stability: Development
  15106. //
  15107. // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
  15108. // "main", "123", "HEAD"
  15109. // Note: `head` refers to where you are right now; the current reference at a
  15110. // given time.The revision can be a full [hash value (see
  15111. // glossary)],
  15112. // of the recorded change to a ref within a repository pointing to a
  15113. // commit [commit] object. It does
  15114. // not necessarily have to be a hash; it can simply define a [revision
  15115. // number]
  15116. // which is an integer that is monotonically increasing. In cases where
  15117. // it is identical to the `ref.head.name`, it SHOULD still be included.
  15118. // It is up to the implementer to decide which value to set as the
  15119. // revision based on the VCS system and situational context.
  15120. //
  15121. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  15122. // [hash value (see
  15123. // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  15124. // [commit]: https://git-scm.com/docs/git-commit
  15125. // [revision
  15126. // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
  15127. VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
  15128. // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
  15129. // semantic conventions. It represents the type of the [reference] in the
  15130. // repository.
  15131. //
  15132. // Type: Enum
  15133. // RequirementLevel: Recommended
  15134. // Stability: Development
  15135. //
  15136. // Examples: "branch", "tag"
  15137. // Note: `head` refers to where you are right now; the current reference at a
  15138. // given time.
  15139. //
  15140. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15141. VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
  15142. // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
  15143. // conventions. It represents the type of the [reference] in the repository.
  15144. //
  15145. // Type: Enum
  15146. // RequirementLevel: Recommended
  15147. // Stability: Development
  15148. //
  15149. // Examples: "branch", "tag"
  15150. //
  15151. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15152. VCSRefTypeKey = attribute.Key("vcs.ref.type")
  15153. // VCSRepositoryNameKey is the attribute Key conforming to the
  15154. // "vcs.repository.name" semantic conventions. It represents the human readable
  15155. // name of the repository. It SHOULD NOT include any additional identifier like
  15156. // Group/SubGroup in GitLab or organization in GitHub.
  15157. //
  15158. // Type: string
  15159. // RequirementLevel: Recommended
  15160. // Stability: Development
  15161. //
  15162. // Examples: "semantic-conventions", "my-cool-repo"
  15163. // Note: Due to it only being the name, it can clash with forks of the same
  15164. // repository if collecting telemetry across multiple orgs or groups in
  15165. // the same backends.
  15166. VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
  15167. // VCSRepositoryURLFullKey is the attribute Key conforming to the
  15168. // "vcs.repository.url.full" semantic conventions. It represents the
  15169. // [canonical URL] of the repository providing the complete HTTP(S) address in
  15170. // order to locate and identify the repository through a browser.
  15171. //
  15172. // Type: string
  15173. // RequirementLevel: Recommended
  15174. // Stability: Development
  15175. //
  15176. // Examples:
  15177. // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
  15178. // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
  15179. // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
  15180. // the `.git` extension.
  15181. //
  15182. // [canonical URL]: https://support.google.com/webmasters/answer/10347851
  15183. VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
  15184. // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
  15185. // "vcs.revision_delta.direction" semantic conventions. It represents the type
  15186. // of revision comparison.
  15187. //
  15188. // Type: Enum
  15189. // RequirementLevel: Recommended
  15190. // Stability: Development
  15191. //
  15192. // Examples: "ahead", "behind"
  15193. VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
  15194. )
  15195. // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
  15196. // semantic conventions. It represents the ID of the change (pull request/merge
  15197. // request/changelist) if applicable. This is usually a unique (within
  15198. // repository) identifier generated by the VCS system.
  15199. func VCSChangeID(val string) attribute.KeyValue {
  15200. return VCSChangeIDKey.String(val)
  15201. }
  15202. // VCSChangeTitle returns an attribute KeyValue conforming to the
  15203. // "vcs.change.title" semantic conventions. It represents the human readable
  15204. // title of the change (pull request/merge request/changelist). This title is
  15205. // often a brief summary of the change and may get merged in to a ref as the
  15206. // commit summary.
  15207. func VCSChangeTitle(val string) attribute.KeyValue {
  15208. return VCSChangeTitleKey.String(val)
  15209. }
  15210. // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
  15211. // semantic conventions. It represents the group owner within the version control
  15212. // system.
  15213. func VCSOwnerName(val string) attribute.KeyValue {
  15214. return VCSOwnerNameKey.String(val)
  15215. }
  15216. // VCSRefBaseName returns an attribute KeyValue conforming to the
  15217. // "vcs.ref.base.name" semantic conventions. It represents the name of the
  15218. // [reference] such as **branch** or **tag** in the repository.
  15219. //
  15220. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15221. func VCSRefBaseName(val string) attribute.KeyValue {
  15222. return VCSRefBaseNameKey.String(val)
  15223. }
  15224. // VCSRefBaseRevision returns an attribute KeyValue conforming to the
  15225. // "vcs.ref.base.revision" semantic conventions. It represents the revision,
  15226. // literally [revised version], The revision most often refers to a commit object
  15227. // in Git, or a revision number in SVN.
  15228. //
  15229. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  15230. func VCSRefBaseRevision(val string) attribute.KeyValue {
  15231. return VCSRefBaseRevisionKey.String(val)
  15232. }
  15233. // VCSRefHeadName returns an attribute KeyValue conforming to the
  15234. // "vcs.ref.head.name" semantic conventions. It represents the name of the
  15235. // [reference] such as **branch** or **tag** in the repository.
  15236. //
  15237. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  15238. func VCSRefHeadName(val string) attribute.KeyValue {
  15239. return VCSRefHeadNameKey.String(val)
  15240. }
  15241. // VCSRefHeadRevision returns an attribute KeyValue conforming to the
  15242. // "vcs.ref.head.revision" semantic conventions. It represents the revision,
  15243. // literally [revised version], The revision most often refers to a commit object
  15244. // in Git, or a revision number in SVN.
  15245. //
  15246. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  15247. func VCSRefHeadRevision(val string) attribute.KeyValue {
  15248. return VCSRefHeadRevisionKey.String(val)
  15249. }
  15250. // VCSRepositoryName returns an attribute KeyValue conforming to the
  15251. // "vcs.repository.name" semantic conventions. It represents the human readable
  15252. // name of the repository. It SHOULD NOT include any additional identifier like
  15253. // Group/SubGroup in GitLab or organization in GitHub.
  15254. func VCSRepositoryName(val string) attribute.KeyValue {
  15255. return VCSRepositoryNameKey.String(val)
  15256. }
  15257. // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
  15258. // "vcs.repository.url.full" semantic conventions. It represents the
  15259. // [canonical URL] of the repository providing the complete HTTP(S) address in
  15260. // order to locate and identify the repository through a browser.
  15261. //
  15262. // [canonical URL]: https://support.google.com/webmasters/answer/10347851
  15263. func VCSRepositoryURLFull(val string) attribute.KeyValue {
  15264. return VCSRepositoryURLFullKey.String(val)
  15265. }
  15266. // Enum values for vcs.change.state
  15267. var (
  15268. // Open means the change is currently active and under review. It hasn't been
  15269. // merged into the target branch yet, and it's still possible to make changes or
  15270. // add comments.
  15271. // Stability: development
  15272. VCSChangeStateOpen = VCSChangeStateKey.String("open")
  15273. // WIP (work-in-progress, draft) means the change is still in progress and not
  15274. // yet ready for a full review. It might still undergo significant changes.
  15275. // Stability: development
  15276. VCSChangeStateWip = VCSChangeStateKey.String("wip")
  15277. // Closed means the merge request has been closed without merging. This can
  15278. // happen for various reasons, such as the changes being deemed unnecessary, the
  15279. // issue being resolved in another way, or the author deciding to withdraw the
  15280. // request.
  15281. // Stability: development
  15282. VCSChangeStateClosed = VCSChangeStateKey.String("closed")
  15283. // Merged indicates that the change has been successfully integrated into the
  15284. // target codebase.
  15285. // Stability: development
  15286. VCSChangeStateMerged = VCSChangeStateKey.String("merged")
  15287. )
  15288. // Enum values for vcs.line_change.type
  15289. var (
  15290. // How many lines were added.
  15291. // Stability: development
  15292. VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
  15293. // How many lines were removed.
  15294. // Stability: development
  15295. VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
  15296. )
  15297. // Enum values for vcs.provider.name
  15298. var (
  15299. // [GitHub]
  15300. // Stability: development
  15301. //
  15302. // [GitHub]: https://github.com
  15303. VCSProviderNameGithub = VCSProviderNameKey.String("github")
  15304. // [GitLab]
  15305. // Stability: development
  15306. //
  15307. // [GitLab]: https://gitlab.com
  15308. VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
  15309. // [Gitea]
  15310. // Stability: development
  15311. //
  15312. // [Gitea]: https://gitea.io
  15313. VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
  15314. // [Bitbucket]
  15315. // Stability: development
  15316. //
  15317. // [Bitbucket]: https://bitbucket.org
  15318. VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
  15319. )
  15320. // Enum values for vcs.ref.base.type
  15321. var (
  15322. // [branch]
  15323. // Stability: development
  15324. //
  15325. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  15326. VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
  15327. // [tag]
  15328. // Stability: development
  15329. //
  15330. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  15331. VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
  15332. )
  15333. // Enum values for vcs.ref.head.type
  15334. var (
  15335. // [branch]
  15336. // Stability: development
  15337. //
  15338. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  15339. VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
  15340. // [tag]
  15341. // Stability: development
  15342. //
  15343. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  15344. VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
  15345. )
  15346. // Enum values for vcs.ref.type
  15347. var (
  15348. // [branch]
  15349. // Stability: development
  15350. //
  15351. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  15352. VCSRefTypeBranch = VCSRefTypeKey.String("branch")
  15353. // [tag]
  15354. // Stability: development
  15355. //
  15356. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  15357. VCSRefTypeTag = VCSRefTypeKey.String("tag")
  15358. )
  15359. // Enum values for vcs.revision_delta.direction
  15360. var (
  15361. // How many revisions the change is behind the target ref.
  15362. // Stability: development
  15363. VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
  15364. // How many revisions the change is ahead of the target ref.
  15365. // Stability: development
  15366. VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
  15367. )
  15368. // Namespace: webengine
  15369. const (
  15370. // WebEngineDescriptionKey is the attribute Key conforming to the
  15371. // "webengine.description" semantic conventions. It represents the additional
  15372. // description of the web engine (e.g. detailed version and edition
  15373. // information).
  15374. //
  15375. // Type: string
  15376. // RequirementLevel: Recommended
  15377. // Stability: Development
  15378. //
  15379. // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
  15380. // 2.2.2.Final"
  15381. WebEngineDescriptionKey = attribute.Key("webengine.description")
  15382. // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
  15383. // semantic conventions. It represents the name of the web engine.
  15384. //
  15385. // Type: string
  15386. // RequirementLevel: Recommended
  15387. // Stability: Development
  15388. //
  15389. // Examples: "WildFly"
  15390. WebEngineNameKey = attribute.Key("webengine.name")
  15391. // WebEngineVersionKey is the attribute Key conforming to the
  15392. // "webengine.version" semantic conventions. It represents the version of the
  15393. // web engine.
  15394. //
  15395. // Type: string
  15396. // RequirementLevel: Recommended
  15397. // Stability: Development
  15398. //
  15399. // Examples: "21.0.0"
  15400. WebEngineVersionKey = attribute.Key("webengine.version")
  15401. )
  15402. // WebEngineDescription returns an attribute KeyValue conforming to the
  15403. // "webengine.description" semantic conventions. It represents the additional
  15404. // description of the web engine (e.g. detailed version and edition information).
  15405. func WebEngineDescription(val string) attribute.KeyValue {
  15406. return WebEngineDescriptionKey.String(val)
  15407. }
  15408. // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
  15409. // semantic conventions. It represents the name of the web engine.
  15410. func WebEngineName(val string) attribute.KeyValue {
  15411. return WebEngineNameKey.String(val)
  15412. }
  15413. // WebEngineVersion returns an attribute KeyValue conforming to the
  15414. // "webengine.version" semantic conventions. It represents the version of the web
  15415. // engine.
  15416. func WebEngineVersion(val string) attribute.KeyValue {
  15417. return WebEngineVersionKey.String(val)
  15418. }
  15419. // Namespace: zos
  15420. const (
  15421. // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
  15422. // conventions. It represents the System Management Facility (SMF) Identifier
  15423. // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
  15424. // and is used for system and performance analysis.
  15425. //
  15426. // Type: string
  15427. // RequirementLevel: Recommended
  15428. // Stability: Development
  15429. //
  15430. // Examples: "SYS1"
  15431. ZOSSmfIDKey = attribute.Key("zos.smf.id")
  15432. // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
  15433. // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
  15434. // system belongs too.
  15435. //
  15436. // Type: string
  15437. // RequirementLevel: Recommended
  15438. // Stability: Development
  15439. //
  15440. // Examples: "SYSPLEX1"
  15441. ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
  15442. )
  15443. // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
  15444. // conventions. It represents the System Management Facility (SMF) Identifier
  15445. // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
  15446. // and is used for system and performance analysis.
  15447. func ZOSSmfID(val string) attribute.KeyValue {
  15448. return ZOSSmfIDKey.String(val)
  15449. }
  15450. // ZOSSysplexName returns an attribute KeyValue conforming to the
  15451. // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
  15452. // to which the z/OS system belongs too.
  15453. func ZOSSysplexName(val string) attribute.KeyValue {
  15454. return ZOSSysplexNameKey.String(val)
  15455. }