@odigos/vmagent-api-apollo-client 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ import * as v0_29_0 from "./v0_29_0/graphql";
22
22
  import * as v0_30_0 from "./v0_30_0/graphql";
23
23
  import * as v0_31_0 from "./v0_31_0/graphql";
24
24
  import * as v0_32_0 from "./v0_32_0/graphql";
25
+ import * as v0_33_0 from "./v0_33_0/graphql";
25
26
  import * as nextDialect from "./next/graphql";
26
27
  export declare const dialects: {
27
28
  readonly "v0.6.0": typeof v0_6_0;
@@ -48,6 +49,7 @@ export declare const dialects: {
48
49
  readonly "v0.30.0": typeof v0_30_0;
49
50
  readonly "v0.31.0": typeof v0_31_0;
50
51
  readonly "v0.32.0": typeof v0_32_0;
52
+ readonly "v0.33.0": typeof v0_33_0;
51
53
  };
52
54
  export declare const NEXT_DIALECT: typeof nextDialect;
53
- export declare const LATEST_DIALECT_VERSION: "v0.32.0";
55
+ export declare const LATEST_DIALECT_VERSION: "v0.33.0";
@@ -26,6 +26,7 @@ import * as v0_29_0 from "./v0_29_0/graphql";
26
26
  import * as v0_30_0 from "./v0_30_0/graphql";
27
27
  import * as v0_31_0 from "./v0_31_0/graphql";
28
28
  import * as v0_32_0 from "./v0_32_0/graphql";
29
+ import * as v0_33_0 from "./v0_33_0/graphql";
29
30
  import * as nextDialect from "./next/graphql";
30
31
  // Every frozen dialect, keyed by its snapshot version. The published package
31
32
  // ships all of them so central-ui can resolve a dialect per connected
@@ -55,9 +56,10 @@ export const dialects = {
55
56
  "v0.30.0": v0_30_0,
56
57
  "v0.31.0": v0_31_0,
57
58
  "v0.32.0": v0_32_0,
59
+ "v0.33.0": v0_33_0,
58
60
  };
59
61
  // The live, unreleased dialect (generated from graphql/ HEAD). Deliberately
60
62
  // excluded from `dialects` so it never participates in version resolution.
61
63
  export const NEXT_DIALECT = nextDialect;
62
64
  // Highest frozen dialect: the default surface and the floor-resolution ceiling.
63
- export const LATEST_DIALECT_VERSION = "v0.32.0";
65
+ export const LATEST_DIALECT_VERSION = "v0.33.0";
@@ -284,6 +284,7 @@ export type CreateInstrumentationRuleInput = {
284
284
  notes?: InputMaybe<Scalars['String']['input']>;
285
285
  payloadCollection?: InputMaybe<PayloadCollectionConfigInput>;
286
286
  ruleType: RuleType;
287
+ sampling?: InputMaybe<SamplingConfigInput>;
287
288
  };
288
289
  export type CreateManagedCollectorDestinationInput = {
289
290
  /** Field values keyed by DestinationField.name for this type (validated server-side). */
@@ -634,6 +635,40 @@ export type GolangProbeInput = {
634
635
  receiverMethodName?: InputMaybe<Scalars['String']['input']>;
635
636
  receiverName?: InputMaybe<Scalars['String']['input']>;
636
637
  };
638
+ export type HeadSamplingHttpClientMatcher = {
639
+ __typename?: 'HeadSamplingHttpClientMatcher';
640
+ method?: Maybe<Scalars['String']['output']>;
641
+ serverAddress?: Maybe<Scalars['String']['output']>;
642
+ templatedPath?: Maybe<Scalars['String']['output']>;
643
+ templatedPathPrefix?: Maybe<Scalars['String']['output']>;
644
+ };
645
+ export type HeadSamplingHttpClientMatcherInput = {
646
+ method?: InputMaybe<Scalars['String']['input']>;
647
+ serverAddress?: InputMaybe<Scalars['String']['input']>;
648
+ templatedPath?: InputMaybe<Scalars['String']['input']>;
649
+ templatedPathPrefix?: InputMaybe<Scalars['String']['input']>;
650
+ };
651
+ export type HeadSamplingHttpServerMatcher = {
652
+ __typename?: 'HeadSamplingHttpServerMatcher';
653
+ method?: Maybe<Scalars['String']['output']>;
654
+ route?: Maybe<Scalars['String']['output']>;
655
+ routePrefix?: Maybe<Scalars['String']['output']>;
656
+ };
657
+ export type HeadSamplingHttpServerMatcherInput = {
658
+ method?: InputMaybe<Scalars['String']['input']>;
659
+ route?: InputMaybe<Scalars['String']['input']>;
660
+ routePrefix?: InputMaybe<Scalars['String']['input']>;
661
+ };
662
+ /** Exactly one matcher must be set. */
663
+ export type HeadSamplingOperationMatcher = {
664
+ __typename?: 'HeadSamplingOperationMatcher';
665
+ httpClient?: Maybe<HeadSamplingHttpClientMatcher>;
666
+ httpServer?: Maybe<HeadSamplingHttpServerMatcher>;
667
+ };
668
+ export type HeadSamplingOperationMatcherInput = {
669
+ httpClient?: InputMaybe<HeadSamplingHttpClientMatcherInput>;
670
+ httpServer?: InputMaybe<HeadSamplingHttpServerMatcherInput>;
671
+ };
637
672
  export type HeadersCollectionConfig = {
638
673
  __typename?: 'HeadersCollectionConfig';
639
674
  headerKeys: Array<Scalars['String']['output']>;
@@ -1505,6 +1540,28 @@ export type MutationUpdateOnPremLicenseArgs = {
1505
1540
  export type MutationUpdateSourceArgs = {
1506
1541
  input: UpdateSourceInput;
1507
1542
  };
1543
+ export type NoisyOperation = {
1544
+ __typename?: 'NoisyOperation';
1545
+ /**
1546
+ * Disabled operations are still forwarded to the agent so metrics keep being
1547
+ * recorded, but they do not affect sampling decisions.
1548
+ */
1549
+ disabled?: Maybe<Scalars['Boolean']['output']>;
1550
+ name: Scalars['String']['output'];
1551
+ notes?: Maybe<Scalars['String']['output']>;
1552
+ operation?: Maybe<HeadSamplingOperationMatcher>;
1553
+ /** 0-100. Unset means 0 (drop every matching trace). */
1554
+ percentageAtMost?: Maybe<Scalars['Float']['output']>;
1555
+ sourceScopes?: Maybe<SamplingSourceScopes>;
1556
+ };
1557
+ export type NoisyOperationInput = {
1558
+ disabled?: InputMaybe<Scalars['Boolean']['input']>;
1559
+ name: Scalars['String']['input'];
1560
+ notes?: InputMaybe<Scalars['String']['input']>;
1561
+ operation?: InputMaybe<HeadSamplingOperationMatcherInput>;
1562
+ percentageAtMost?: InputMaybe<Scalars['Float']['input']>;
1563
+ sourceScopes?: InputMaybe<SamplingSourceScopesInput>;
1564
+ };
1508
1565
  export type PayloadCollectionConfig = {
1509
1566
  __typename?: 'PayloadCollectionConfig';
1510
1567
  collectDbQuery?: Maybe<Scalars['Boolean']['output']>;
@@ -1861,7 +1918,8 @@ export declare enum RuleType {
1861
1918
  CodeAttributes = "CodeAttributes",
1862
1919
  CustomInstrumentation = "CustomInstrumentation",
1863
1920
  HeadersCollection = "HeadersCollection",
1864
- PayloadCollection = "PayloadCollection"
1921
+ PayloadCollection = "PayloadCollection",
1922
+ Sampling = "Sampling"
1865
1923
  }
1866
1924
  export type RuntimeOverride = {
1867
1925
  __typename?: 'RuntimeOverride';
@@ -1872,6 +1930,34 @@ export type RuntimeOverrideInput = {
1872
1930
  language?: InputMaybe<Scalars['String']['input']>;
1873
1931
  version?: InputMaybe<Scalars['String']['input']>;
1874
1932
  };
1933
+ export type SamplingConfig = {
1934
+ __typename?: 'SamplingConfig';
1935
+ noisyOperations?: Maybe<Array<NoisyOperation>>;
1936
+ };
1937
+ export type SamplingConfigInput = {
1938
+ noisyOperations?: InputMaybe<Array<NoisyOperationInput>>;
1939
+ };
1940
+ export type SamplingRule = InstrumentationRule & {
1941
+ __typename?: 'SamplingRule';
1942
+ config?: Maybe<SamplingConfig>;
1943
+ enabled: Scalars['Boolean']['output'];
1944
+ name: Scalars['String']['output'];
1945
+ notes?: Maybe<Scalars['String']['output']>;
1946
+ ruleType: RuleType;
1947
+ };
1948
+ /**
1949
+ * Limits a noisy operation to specific sources on this agent. Empty lists match
1950
+ * all sources; values inside a list are OR'ed, lists are AND'ed together.
1951
+ */
1952
+ export type SamplingSourceScopes = {
1953
+ __typename?: 'SamplingSourceScopes';
1954
+ languages?: Maybe<Array<Scalars['String']['output']>>;
1955
+ services?: Maybe<Array<Scalars['String']['output']>>;
1956
+ };
1957
+ export type SamplingSourceScopesInput = {
1958
+ languages?: InputMaybe<Array<Scalars['String']['input']>>;
1959
+ services?: InputMaybe<Array<Scalars['String']['input']>>;
1960
+ };
1875
1961
  export type ServiceHotFunctions = {
1876
1962
  __typename?: 'ServiceHotFunctions';
1877
1963
  functions: Array<HotFunction>;
@@ -2104,6 +2190,7 @@ export type UpdateInstrumentationRuleInput = {
2104
2190
  notes?: InputMaybe<Scalars['String']['input']>;
2105
2191
  payloadCollection?: InputMaybe<PayloadCollectionConfigInput>;
2106
2192
  ruleType?: InputMaybe<RuleType>;
2193
+ sampling?: InputMaybe<SamplingConfigInput>;
2107
2194
  };
2108
2195
  /**
2109
2196
  * A partial update: an omitted field keeps its current value, and `config`, when given, replaces the
@@ -3793,7 +3880,45 @@ type InstrumentationRuleFields_PayloadCollectionRule_Fragment = {
3793
3880
  collectMessaging?: boolean | null;
3794
3881
  } | null;
3795
3882
  };
3796
- export type InstrumentationRuleFieldsFragment = InstrumentationRuleFields_CodeAttributesRule_Fragment | InstrumentationRuleFields_CustomInstrumentationRule_Fragment | InstrumentationRuleFields_HeadersCollectionRule_Fragment | InstrumentationRuleFields_PayloadCollectionRule_Fragment;
3883
+ type InstrumentationRuleFields_SamplingRule_Fragment = {
3884
+ __typename: 'SamplingRule';
3885
+ name: string;
3886
+ ruleType: RuleType;
3887
+ enabled: boolean;
3888
+ notes?: string | null;
3889
+ config?: {
3890
+ __typename?: 'SamplingConfig';
3891
+ noisyOperations?: Array<{
3892
+ __typename?: 'NoisyOperation';
3893
+ name: string;
3894
+ disabled?: boolean | null;
3895
+ notes?: string | null;
3896
+ percentageAtMost?: number | null;
3897
+ sourceScopes?: {
3898
+ __typename?: 'SamplingSourceScopes';
3899
+ services?: Array<string> | null;
3900
+ languages?: Array<string> | null;
3901
+ } | null;
3902
+ operation?: {
3903
+ __typename?: 'HeadSamplingOperationMatcher';
3904
+ httpServer?: {
3905
+ __typename?: 'HeadSamplingHttpServerMatcher';
3906
+ route?: string | null;
3907
+ routePrefix?: string | null;
3908
+ method?: string | null;
3909
+ } | null;
3910
+ httpClient?: {
3911
+ __typename?: 'HeadSamplingHttpClientMatcher';
3912
+ serverAddress?: string | null;
3913
+ templatedPath?: string | null;
3914
+ templatedPathPrefix?: string | null;
3915
+ method?: string | null;
3916
+ } | null;
3917
+ } | null;
3918
+ }> | null;
3919
+ } | null;
3920
+ };
3921
+ export type InstrumentationRuleFieldsFragment = InstrumentationRuleFields_CodeAttributesRule_Fragment | InstrumentationRuleFields_CustomInstrumentationRule_Fragment | InstrumentationRuleFields_HeadersCollectionRule_Fragment | InstrumentationRuleFields_PayloadCollectionRule_Fragment | InstrumentationRuleFields_SamplingRule_Fragment;
3797
3922
  export type GetInstrumentationRuleQueryVariables = Exact<{
3798
3923
  name: Scalars['String']['input'];
3799
3924
  }>;
@@ -3862,6 +3987,43 @@ export type GetInstrumentationRuleQuery = {
3862
3987
  collectDbQuery?: boolean | null;
3863
3988
  collectMessaging?: boolean | null;
3864
3989
  } | null;
3990
+ } | {
3991
+ __typename: 'SamplingRule';
3992
+ name: string;
3993
+ ruleType: RuleType;
3994
+ enabled: boolean;
3995
+ notes?: string | null;
3996
+ config?: {
3997
+ __typename?: 'SamplingConfig';
3998
+ noisyOperations?: Array<{
3999
+ __typename?: 'NoisyOperation';
4000
+ name: string;
4001
+ disabled?: boolean | null;
4002
+ notes?: string | null;
4003
+ percentageAtMost?: number | null;
4004
+ sourceScopes?: {
4005
+ __typename?: 'SamplingSourceScopes';
4006
+ services?: Array<string> | null;
4007
+ languages?: Array<string> | null;
4008
+ } | null;
4009
+ operation?: {
4010
+ __typename?: 'HeadSamplingOperationMatcher';
4011
+ httpServer?: {
4012
+ __typename?: 'HeadSamplingHttpServerMatcher';
4013
+ route?: string | null;
4014
+ routePrefix?: string | null;
4015
+ method?: string | null;
4016
+ } | null;
4017
+ httpClient?: {
4018
+ __typename?: 'HeadSamplingHttpClientMatcher';
4019
+ serverAddress?: string | null;
4020
+ templatedPath?: string | null;
4021
+ templatedPathPrefix?: string | null;
4022
+ method?: string | null;
4023
+ } | null;
4024
+ } | null;
4025
+ }> | null;
4026
+ } | null;
3865
4027
  } | null;
3866
4028
  };
3867
4029
  export type GetInstrumentationRulesQueryVariables = Exact<{
@@ -3932,6 +4094,43 @@ export type GetInstrumentationRulesQuery = {
3932
4094
  collectDbQuery?: boolean | null;
3933
4095
  collectMessaging?: boolean | null;
3934
4096
  } | null;
4097
+ } | {
4098
+ __typename: 'SamplingRule';
4099
+ name: string;
4100
+ ruleType: RuleType;
4101
+ enabled: boolean;
4102
+ notes?: string | null;
4103
+ config?: {
4104
+ __typename?: 'SamplingConfig';
4105
+ noisyOperations?: Array<{
4106
+ __typename?: 'NoisyOperation';
4107
+ name: string;
4108
+ disabled?: boolean | null;
4109
+ notes?: string | null;
4110
+ percentageAtMost?: number | null;
4111
+ sourceScopes?: {
4112
+ __typename?: 'SamplingSourceScopes';
4113
+ services?: Array<string> | null;
4114
+ languages?: Array<string> | null;
4115
+ } | null;
4116
+ operation?: {
4117
+ __typename?: 'HeadSamplingOperationMatcher';
4118
+ httpServer?: {
4119
+ __typename?: 'HeadSamplingHttpServerMatcher';
4120
+ route?: string | null;
4121
+ routePrefix?: string | null;
4122
+ method?: string | null;
4123
+ } | null;
4124
+ httpClient?: {
4125
+ __typename?: 'HeadSamplingHttpClientMatcher';
4126
+ serverAddress?: string | null;
4127
+ templatedPath?: string | null;
4128
+ templatedPathPrefix?: string | null;
4129
+ method?: string | null;
4130
+ } | null;
4131
+ } | null;
4132
+ }> | null;
4133
+ } | null;
3935
4134
  }>;
3936
4135
  };
3937
4136
  export type CreateInstrumentationRuleMutationVariables = Exact<{
@@ -4002,6 +4201,43 @@ export type CreateInstrumentationRuleMutation = {
4002
4201
  collectDbQuery?: boolean | null;
4003
4202
  collectMessaging?: boolean | null;
4004
4203
  } | null;
4204
+ } | {
4205
+ __typename: 'SamplingRule';
4206
+ name: string;
4207
+ ruleType: RuleType;
4208
+ enabled: boolean;
4209
+ notes?: string | null;
4210
+ config?: {
4211
+ __typename?: 'SamplingConfig';
4212
+ noisyOperations?: Array<{
4213
+ __typename?: 'NoisyOperation';
4214
+ name: string;
4215
+ disabled?: boolean | null;
4216
+ notes?: string | null;
4217
+ percentageAtMost?: number | null;
4218
+ sourceScopes?: {
4219
+ __typename?: 'SamplingSourceScopes';
4220
+ services?: Array<string> | null;
4221
+ languages?: Array<string> | null;
4222
+ } | null;
4223
+ operation?: {
4224
+ __typename?: 'HeadSamplingOperationMatcher';
4225
+ httpServer?: {
4226
+ __typename?: 'HeadSamplingHttpServerMatcher';
4227
+ route?: string | null;
4228
+ routePrefix?: string | null;
4229
+ method?: string | null;
4230
+ } | null;
4231
+ httpClient?: {
4232
+ __typename?: 'HeadSamplingHttpClientMatcher';
4233
+ serverAddress?: string | null;
4234
+ templatedPath?: string | null;
4235
+ templatedPathPrefix?: string | null;
4236
+ method?: string | null;
4237
+ } | null;
4238
+ } | null;
4239
+ }> | null;
4240
+ } | null;
4005
4241
  };
4006
4242
  };
4007
4243
  export type UpdateInstrumentationRuleMutationVariables = Exact<{
@@ -4072,6 +4308,43 @@ export type UpdateInstrumentationRuleMutation = {
4072
4308
  collectDbQuery?: boolean | null;
4073
4309
  collectMessaging?: boolean | null;
4074
4310
  } | null;
4311
+ } | {
4312
+ __typename: 'SamplingRule';
4313
+ name: string;
4314
+ ruleType: RuleType;
4315
+ enabled: boolean;
4316
+ notes?: string | null;
4317
+ config?: {
4318
+ __typename?: 'SamplingConfig';
4319
+ noisyOperations?: Array<{
4320
+ __typename?: 'NoisyOperation';
4321
+ name: string;
4322
+ disabled?: boolean | null;
4323
+ notes?: string | null;
4324
+ percentageAtMost?: number | null;
4325
+ sourceScopes?: {
4326
+ __typename?: 'SamplingSourceScopes';
4327
+ services?: Array<string> | null;
4328
+ languages?: Array<string> | null;
4329
+ } | null;
4330
+ operation?: {
4331
+ __typename?: 'HeadSamplingOperationMatcher';
4332
+ httpServer?: {
4333
+ __typename?: 'HeadSamplingHttpServerMatcher';
4334
+ route?: string | null;
4335
+ routePrefix?: string | null;
4336
+ method?: string | null;
4337
+ } | null;
4338
+ httpClient?: {
4339
+ __typename?: 'HeadSamplingHttpClientMatcher';
4340
+ serverAddress?: string | null;
4341
+ templatedPath?: string | null;
4342
+ templatedPathPrefix?: string | null;
4343
+ method?: string | null;
4344
+ } | null;
4345
+ } | null;
4346
+ }> | null;
4347
+ } | null;
4075
4348
  };
4076
4349
  };
4077
4350
  export type DeleteInstrumentationRuleMutationVariables = Exact<{