@@ -476,141 +476,145 @@ As an alternative, consider setting `faas.id` as a span attribute instead.
476
476
WEBENGINE_DESCRIPTION : 'webengine.description' ,
477
477
}
478
478
479
- // Enum definitions
480
479
481
-
482
- export enum CloudProviderValues {
480
+ export const CloudProviderValues = {
483
481
/** Alibaba Cloud. */
484
- ALIBABA_CLOUD = 'alibaba_cloud' ,
482
+ ALIBABA_CLOUD : 'alibaba_cloud' ,
485
483
/** Amazon Web Services. */
486
- AWS = 'aws' ,
484
+ AWS : 'aws' ,
487
485
/** Microsoft Azure. */
488
- AZURE = 'azure' ,
486
+ AZURE : 'azure' ,
489
487
/** Google Cloud Platform. */
490
- GCP = 'gcp' ,
491
- }
488
+ GCP : 'gcp' ,
489
+ } as const
490
+ export type CloudProviderValues = typeof CloudProviderValues [ keyof typeof CloudProviderValues ]
492
491
493
492
494
493
495
494
496
- export enum CloudPlatformValues {
495
+ export const CloudPlatformValues = {
497
496
/** Alibaba Cloud Elastic Compute Service. */
498
- ALIBABA_CLOUD_ECS = 'alibaba_cloud_ecs' ,
497
+ ALIBABA_CLOUD_ECS : 'alibaba_cloud_ecs' ,
499
498
/** Alibaba Cloud Function Compute. */
500
- ALIBABA_CLOUD_FC = 'alibaba_cloud_fc' ,
499
+ ALIBABA_CLOUD_FC : 'alibaba_cloud_fc' ,
501
500
/** AWS Elastic Compute Cloud. */
502
- AWS_EC2 = 'aws_ec2' ,
501
+ AWS_EC2 : 'aws_ec2' ,
503
502
/** AWS Elastic Container Service. */
504
- AWS_ECS = 'aws_ecs' ,
503
+ AWS_ECS : 'aws_ecs' ,
505
504
/** AWS Elastic Kubernetes Service. */
506
- AWS_EKS = 'aws_eks' ,
505
+ AWS_EKS : 'aws_eks' ,
507
506
/** AWS Lambda. */
508
- AWS_LAMBDA = 'aws_lambda' ,
507
+ AWS_LAMBDA : 'aws_lambda' ,
509
508
/** AWS Elastic Beanstalk. */
510
- AWS_ELASTIC_BEANSTALK = 'aws_elastic_beanstalk' ,
509
+ AWS_ELASTIC_BEANSTALK : 'aws_elastic_beanstalk' ,
511
510
/** Azure Virtual Machines. */
512
- AZURE_VM = 'azure_vm' ,
511
+ AZURE_VM : 'azure_vm' ,
513
512
/** Azure Container Instances. */
514
- AZURE_CONTAINER_INSTANCES = 'azure_container_instances' ,
513
+ AZURE_CONTAINER_INSTANCES : 'azure_container_instances' ,
515
514
/** Azure Kubernetes Service. */
516
- AZURE_AKS = 'azure_aks' ,
515
+ AZURE_AKS : 'azure_aks' ,
517
516
/** Azure Functions. */
518
- AZURE_FUNCTIONS = 'azure_functions' ,
517
+ AZURE_FUNCTIONS : 'azure_functions' ,
519
518
/** Azure App Service. */
520
- AZURE_APP_SERVICE = 'azure_app_service' ,
519
+ AZURE_APP_SERVICE : 'azure_app_service' ,
521
520
/** Google Cloud Compute Engine (GCE). */
522
- GCP_COMPUTE_ENGINE = 'gcp_compute_engine' ,
521
+ GCP_COMPUTE_ENGINE : 'gcp_compute_engine' ,
523
522
/** Google Cloud Run. */
524
- GCP_CLOUD_RUN = 'gcp_cloud_run' ,
523
+ GCP_CLOUD_RUN : 'gcp_cloud_run' ,
525
524
/** Google Cloud Kubernetes Engine (GKE). */
526
- GCP_KUBERNETES_ENGINE = 'gcp_kubernetes_engine' ,
525
+ GCP_KUBERNETES_ENGINE : 'gcp_kubernetes_engine' ,
527
526
/** Google Cloud Functions (GCF). */
528
- GCP_CLOUD_FUNCTIONS = 'gcp_cloud_functions' ,
527
+ GCP_CLOUD_FUNCTIONS : 'gcp_cloud_functions' ,
529
528
/** Google Cloud App Engine (GAE). */
530
- GCP_APP_ENGINE = 'gcp_app_engine' ,
531
- }
529
+ GCP_APP_ENGINE : 'gcp_app_engine' ,
530
+ } as const
531
+ export type CloudPlatformValues = typeof CloudPlatformValues [ keyof typeof CloudPlatformValues ]
532
532
533
533
534
534
535
535
536
- export enum AwsEcsLaunchtypeValues {
536
+ export const AwsEcsLaunchtypeValues = {
537
537
/** ec2. */
538
- EC2 = 'ec2' ,
538
+ EC2 : 'ec2' ,
539
539
/** fargate. */
540
- FARGATE = 'fargate' ,
541
- }
540
+ FARGATE : 'fargate' ,
541
+ } as const
542
+ export type AwsEcsLaunchtypeValues = typeof AwsEcsLaunchtypeValues [ keyof typeof AwsEcsLaunchtypeValues ]
542
543
543
544
544
545
545
546
546
- export enum HostArchValues {
547
+ export const HostArchValues = {
547
548
/** AMD64. */
548
- AMD64 = 'amd64' ,
549
+ AMD64 : 'amd64' ,
549
550
/** ARM32. */
550
- ARM32 = 'arm32' ,
551
+ ARM32 : 'arm32' ,
551
552
/** ARM64. */
552
- ARM64 = 'arm64' ,
553
+ ARM64 : 'arm64' ,
553
554
/** Itanium. */
554
- IA64 = 'ia64' ,
555
+ IA64 : 'ia64' ,
555
556
/** 32-bit PowerPC. */
556
- PPC32 = 'ppc32' ,
557
+ PPC32 : 'ppc32' ,
557
558
/** 64-bit PowerPC. */
558
- PPC64 = 'ppc64' ,
559
+ PPC64 : 'ppc64' ,
559
560
/** 32-bit x86. */
560
- X86 = 'x86' ,
561
- }
561
+ X86 : 'x86' ,
562
+ } as const
563
+ export type HostArchValues = typeof HostArchValues [ keyof typeof HostArchValues ]
562
564
563
565
564
566
565
567
566
- export enum OsTypeValues {
568
+ export const OsTypeValues = {
567
569
/** Microsoft Windows. */
568
- WINDOWS = 'windows' ,
570
+ WINDOWS : 'windows' ,
569
571
/** Linux. */
570
- LINUX = 'linux' ,
572
+ LINUX : 'linux' ,
571
573
/** Apple Darwin. */
572
- DARWIN = 'darwin' ,
574
+ DARWIN : 'darwin' ,
573
575
/** FreeBSD. */
574
- FREEBSD = 'freebsd' ,
576
+ FREEBSD : 'freebsd' ,
575
577
/** NetBSD. */
576
- NETBSD = 'netbsd' ,
578
+ NETBSD : 'netbsd' ,
577
579
/** OpenBSD. */
578
- OPENBSD = 'openbsd' ,
580
+ OPENBSD : 'openbsd' ,
579
581
/** DragonFly BSD. */
580
- DRAGONFLYBSD = 'dragonflybsd' ,
582
+ DRAGONFLYBSD : 'dragonflybsd' ,
581
583
/** HP-UX (Hewlett Packard Unix). */
582
- HPUX = 'hpux' ,
584
+ HPUX : 'hpux' ,
583
585
/** AIX (Advanced Interactive eXecutive). */
584
- AIX = 'aix' ,
586
+ AIX : 'aix' ,
585
587
/** Oracle Solaris. */
586
- SOLARIS = 'solaris' ,
588
+ SOLARIS : 'solaris' ,
587
589
/** IBM z/OS. */
588
- Z_OS = 'z_os' ,
589
- }
590
+ Z_OS : 'z_os' ,
591
+ } as const
592
+ export type OsTypeValues = typeof OsTypeValues [ keyof typeof OsTypeValues ]
590
593
591
594
592
595
593
596
594
- export enum TelemetrySdkLanguageValues {
597
+ export const TelemetrySdkLanguageValues = {
595
598
/** cpp. */
596
- CPP = 'cpp' ,
599
+ CPP : 'cpp' ,
597
600
/** dotnet. */
598
- DOTNET = 'dotnet' ,
601
+ DOTNET : 'dotnet' ,
599
602
/** erlang. */
600
- ERLANG = 'erlang' ,
603
+ ERLANG : 'erlang' ,
601
604
/** go. */
602
- GO = 'go' ,
605
+ GO : 'go' ,
603
606
/** java. */
604
- JAVA = 'java' ,
607
+ JAVA : 'java' ,
605
608
/** nodejs. */
606
- NODEJS = 'nodejs' ,
609
+ NODEJS : 'nodejs' ,
607
610
/** php. */
608
- PHP = 'php' ,
611
+ PHP : 'php' ,
609
612
/** python. */
610
- PYTHON = 'python' ,
613
+ PYTHON : 'python' ,
611
614
/** ruby. */
612
- RUBY = 'ruby' ,
615
+ RUBY : 'ruby' ,
613
616
/** webjs. */
614
- WEBJS = 'webjs' ,
615
- }
617
+ WEBJS : 'webjs' ,
618
+ } as const
619
+ export type TelemetrySdkLanguageValues = typeof TelemetrySdkLanguageValues [ keyof typeof TelemetrySdkLanguageValues ]
616
620
0 commit comments