aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared-server/src/tracingTypes.ts
blob: f0926b97243e381213a6cd830a4dbeacb62e1542 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export type TracingAttributeKey =
  // User attributes
  | "user.id"
  | "user.role"
  | "user.tier"
  // RPC attributes
  | "rpc.system"
  | "rpc.method"
  | "rpc.type"
  // Job attributes
  | "job.id"
  | "job.priority"
  | "job.runNumber"
  | "job.groupId"
  // Bookmark attributes
  | "bookmark.id"
  | "bookmark.url"
  | "bookmark.domain"
  | "bookmark.content.size"
  | "bookmark.content.type"
  // Asset attributes
  | "asset.id"
  | "asset.type"
  | "asset.size"
  // Crawler-specific attributes
  | "crawler.forceStorePdf"
  | "crawler.archiveFullPage"
  | "crawler.hasPrecrawledArchive"
  | "crawler.getContentType.statusCode"
  | "crawler.contentType"
  | "crawler.statusCode"
  // Database attributes
  | "db.system"
  | "db.statement"
  | "db.operation"
  // Inference-specific attributes
  | "inference.tagging.numGeneratedTags"
  | "inference.tagging.style"
  | "inference.summary.size"
  | "inference.lang"
  | "inference.prompt.size"
  | "inference.prompt.customCount"
  | "inference.totalTokens"
  | "inference.model"
  | "inference.type";

export type TracingAttributes = Partial<
  Record<TracingAttributeKey, string | number | boolean>
>;