hytopia 0.7.4 → 0.7.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./node-server.mjs",
package/server.api.json CHANGED
@@ -48902,6 +48902,662 @@
48902
48902
  "endIndex": 2
48903
48903
  }
48904
48904
  },
48905
+ {
48906
+ "kind": "Class",
48907
+ "canonicalReference": "server!Telemetry:class",
48908
+ "docComment": "/**\n * Manages performance telemetry and error tracking through your Sentry.io account.\n *\n * @remarks\n *\n * The Telemetry class provides low-overhead performance monitoring and error tracking through Sentry (https://sentry.io) integration and your provided Sentry DSN. It automatically tracks critical game loop operations like physics simulation, entity updates, network synchronization, and more. The system only sends telemetry data when errors or slow-tick performance issues are detected, minimizing bandwidth and storage costs.\n *\n * @example\n * ```typescript\n * // Initialize Sentry for production telemetry\n * Telemetry.initializeSentry('MY_SENTRY_PROJECT_DSN');\n *\n * // Wrap performance-critical code in spans\n * Telemetry.startSpan({\n * operation: TelemetrySpanOperation.CUSTOM_OPERATION,\n * attributes: { // any arbitrary attributes you want to attach to the span\n * playerCount: world.playerManager.connectedPlayers.length,\n * entityCount: world.entityManager.entityCount,\n * },\n * }, () => {\n * // Your performance-critical code here\n * performExpensiveOperation();\n * });\n *\n * // Get current process statistics\n * const stats = Telemetry.getProcessStats();\n * console.log(`Heap usage: ${stats.jsHeapUsagePercent * 100}%`);\n * ```\n *\n * @public\n */\n",
48909
+ "excerptTokens": [
48910
+ {
48911
+ "kind": "Content",
48912
+ "text": "export default class Telemetry "
48913
+ }
48914
+ ],
48915
+ "fileUrlPath": "src/metrics/Telemetry.ts",
48916
+ "releaseTag": "Public",
48917
+ "isAbstract": false,
48918
+ "name": "Telemetry",
48919
+ "preserveMemberOrder": false,
48920
+ "members": [
48921
+ {
48922
+ "kind": "Method",
48923
+ "canonicalReference": "server!Telemetry.getProcessStats:member(1)",
48924
+ "docComment": "/**\n * Gets current process memory and performance statistics.\n *\n * @param asMeasurement - Whether to return data in Sentry measurement format with units.\n *\n * @returns Process statistics including heap usage, RSS memory, and capacity metrics.\n */\n",
48925
+ "excerptTokens": [
48926
+ {
48927
+ "kind": "Content",
48928
+ "text": "static getProcessStats(asMeasurement?: "
48929
+ },
48930
+ {
48931
+ "kind": "Content",
48932
+ "text": "boolean"
48933
+ },
48934
+ {
48935
+ "kind": "Content",
48936
+ "text": "): "
48937
+ },
48938
+ {
48939
+ "kind": "Reference",
48940
+ "text": "Record",
48941
+ "canonicalReference": "!Record:type"
48942
+ },
48943
+ {
48944
+ "kind": "Content",
48945
+ "text": "<string, any>"
48946
+ },
48947
+ {
48948
+ "kind": "Content",
48949
+ "text": ";"
48950
+ }
48951
+ ],
48952
+ "isStatic": true,
48953
+ "returnTypeTokenRange": {
48954
+ "startIndex": 3,
48955
+ "endIndex": 5
48956
+ },
48957
+ "releaseTag": "Public",
48958
+ "isProtected": false,
48959
+ "overloadIndex": 1,
48960
+ "parameters": [
48961
+ {
48962
+ "parameterName": "asMeasurement",
48963
+ "parameterTypeTokenRange": {
48964
+ "startIndex": 1,
48965
+ "endIndex": 2
48966
+ },
48967
+ "isOptional": true
48968
+ }
48969
+ ],
48970
+ "isOptional": false,
48971
+ "isAbstract": false,
48972
+ "name": "getProcessStats"
48973
+ },
48974
+ {
48975
+ "kind": "Method",
48976
+ "canonicalReference": "server!Telemetry.initializeSentry:member(1)",
48977
+ "docComment": "/**\n * Initializes Sentry telemetry with the provided DSN.\n *\n * @remarks\n *\n * This method configures Sentry for error tracking and performance monitoring. It sets up filtering to only send performance spans that exceed the provided threshold duration, reducing noise and costs. The initialization includes game-specific tags and process statistics attachment.\n *\n * @param sentryDsn - The Sentry Data Source Name (DSN) for your project.\n *\n * @param tickTimeMsThreshold - The tick duration that must be exceeded to send a performance span to Sentry for a given tick. Defaults to 50ms.\n */\n",
48978
+ "excerptTokens": [
48979
+ {
48980
+ "kind": "Content",
48981
+ "text": "static initializeSentry(sentryDsn: "
48982
+ },
48983
+ {
48984
+ "kind": "Content",
48985
+ "text": "string"
48986
+ },
48987
+ {
48988
+ "kind": "Content",
48989
+ "text": ", tickTimeMsThreshold?: "
48990
+ },
48991
+ {
48992
+ "kind": "Content",
48993
+ "text": "number"
48994
+ },
48995
+ {
48996
+ "kind": "Content",
48997
+ "text": "): "
48998
+ },
48999
+ {
49000
+ "kind": "Content",
49001
+ "text": "void"
49002
+ },
49003
+ {
49004
+ "kind": "Content",
49005
+ "text": ";"
49006
+ }
49007
+ ],
49008
+ "isStatic": true,
49009
+ "returnTypeTokenRange": {
49010
+ "startIndex": 5,
49011
+ "endIndex": 6
49012
+ },
49013
+ "releaseTag": "Public",
49014
+ "isProtected": false,
49015
+ "overloadIndex": 1,
49016
+ "parameters": [
49017
+ {
49018
+ "parameterName": "sentryDsn",
49019
+ "parameterTypeTokenRange": {
49020
+ "startIndex": 1,
49021
+ "endIndex": 2
49022
+ },
49023
+ "isOptional": false
49024
+ },
49025
+ {
49026
+ "parameterName": "tickTimeMsThreshold",
49027
+ "parameterTypeTokenRange": {
49028
+ "startIndex": 3,
49029
+ "endIndex": 4
49030
+ },
49031
+ "isOptional": true
49032
+ }
49033
+ ],
49034
+ "isOptional": false,
49035
+ "isAbstract": false,
49036
+ "name": "initializeSentry"
49037
+ },
49038
+ {
49039
+ "kind": "Method",
49040
+ "canonicalReference": "server!Telemetry.sentry:member(1)",
49041
+ "docComment": "/**\n * Gets the Sentry SDK instance for advanced telemetry operations.\n *\n * @remarks\n *\n * This method provides direct access to the Sentry SDK for operations not covered by the Telemetry wrapper, such as custom error reporting, user context setting, or advanced span manipulation.\n *\n * @returns The Sentry SDK instance.\n */\n",
49042
+ "excerptTokens": [
49043
+ {
49044
+ "kind": "Content",
49045
+ "text": "static sentry(): "
49046
+ },
49047
+ {
49048
+ "kind": "Content",
49049
+ "text": "typeof "
49050
+ },
49051
+ {
49052
+ "kind": "Reference",
49053
+ "text": "Sentry",
49054
+ "canonicalReference": "server!~Sentry"
49055
+ },
49056
+ {
49057
+ "kind": "Content",
49058
+ "text": ";"
49059
+ }
49060
+ ],
49061
+ "isStatic": true,
49062
+ "returnTypeTokenRange": {
49063
+ "startIndex": 1,
49064
+ "endIndex": 3
49065
+ },
49066
+ "releaseTag": "Public",
49067
+ "isProtected": false,
49068
+ "overloadIndex": 1,
49069
+ "parameters": [],
49070
+ "isOptional": false,
49071
+ "isAbstract": false,
49072
+ "name": "sentry"
49073
+ },
49074
+ {
49075
+ "kind": "Method",
49076
+ "canonicalReference": "server!Telemetry.startSpan:member(1)",
49077
+ "docComment": "/**\n * Executes a callback function within a performance monitoring span.\n *\n * @remarks\n *\n * This method provides zero-overhead performance monitoring in development environments. In production with Sentry enabled and `SENTRY_ENABLE_TRACING=true`, it creates performance spans for monitoring. The span data is only transmitted to Sentry when performance issues are detected.\n *\n * @param options - Configuration for the telemetry span including operation type and attributes.\n *\n * @param callback - The function to execute within the performance span.\n *\n * @returns The return value of the callback function.\n *\n * @example\n * ```typescript\n * const result = Telemetry.startSpan({\n * operation: TelemetrySpanOperation.ENTITIES_TICK,\n * attributes: {\n * entityCount: entities.length,\n * worldId: world.id,\n * },\n * }, () => {\n * return processEntities(entities);\n * });\n * ```\n *\n */\n",
49078
+ "excerptTokens": [
49079
+ {
49080
+ "kind": "Content",
49081
+ "text": "static startSpan<T>(options: "
49082
+ },
49083
+ {
49084
+ "kind": "Reference",
49085
+ "text": "TelemetrySpanOptions",
49086
+ "canonicalReference": "server!TelemetrySpanOptions:type"
49087
+ },
49088
+ {
49089
+ "kind": "Content",
49090
+ "text": ", callback: "
49091
+ },
49092
+ {
49093
+ "kind": "Content",
49094
+ "text": "(span?: "
49095
+ },
49096
+ {
49097
+ "kind": "Reference",
49098
+ "text": "Sentry.Span",
49099
+ "canonicalReference": "@sentry/core!Span:interface"
49100
+ },
49101
+ {
49102
+ "kind": "Content",
49103
+ "text": ") => T"
49104
+ },
49105
+ {
49106
+ "kind": "Content",
49107
+ "text": "): "
49108
+ },
49109
+ {
49110
+ "kind": "Content",
49111
+ "text": "T"
49112
+ },
49113
+ {
49114
+ "kind": "Content",
49115
+ "text": ";"
49116
+ }
49117
+ ],
49118
+ "typeParameters": [
49119
+ {
49120
+ "typeParameterName": "T",
49121
+ "constraintTokenRange": {
49122
+ "startIndex": 0,
49123
+ "endIndex": 0
49124
+ },
49125
+ "defaultTypeTokenRange": {
49126
+ "startIndex": 0,
49127
+ "endIndex": 0
49128
+ }
49129
+ }
49130
+ ],
49131
+ "isStatic": true,
49132
+ "returnTypeTokenRange": {
49133
+ "startIndex": 7,
49134
+ "endIndex": 8
49135
+ },
49136
+ "releaseTag": "Public",
49137
+ "isProtected": false,
49138
+ "overloadIndex": 1,
49139
+ "parameters": [
49140
+ {
49141
+ "parameterName": "options",
49142
+ "parameterTypeTokenRange": {
49143
+ "startIndex": 1,
49144
+ "endIndex": 2
49145
+ },
49146
+ "isOptional": false
49147
+ },
49148
+ {
49149
+ "parameterName": "callback",
49150
+ "parameterTypeTokenRange": {
49151
+ "startIndex": 3,
49152
+ "endIndex": 6
49153
+ },
49154
+ "isOptional": false
49155
+ }
49156
+ ],
49157
+ "isOptional": false,
49158
+ "isAbstract": false,
49159
+ "name": "startSpan"
49160
+ }
49161
+ ],
49162
+ "implementsTokenRanges": []
49163
+ },
49164
+ {
49165
+ "kind": "Enum",
49166
+ "canonicalReference": "server!TelemetrySpanOperation:enum",
49167
+ "docComment": "/**\n * Performance telemetry span operation types.\n *\n * @public\n */\n",
49168
+ "excerptTokens": [
49169
+ {
49170
+ "kind": "Content",
49171
+ "text": "export declare enum TelemetrySpanOperation "
49172
+ }
49173
+ ],
49174
+ "fileUrlPath": "src/metrics/Telemetry.ts",
49175
+ "releaseTag": "Public",
49176
+ "name": "TelemetrySpanOperation",
49177
+ "preserveMemberOrder": false,
49178
+ "members": [
49179
+ {
49180
+ "kind": "EnumMember",
49181
+ "canonicalReference": "server!TelemetrySpanOperation.BUILD_PACKETS:member",
49182
+ "docComment": "",
49183
+ "excerptTokens": [
49184
+ {
49185
+ "kind": "Content",
49186
+ "text": "BUILD_PACKETS = "
49187
+ },
49188
+ {
49189
+ "kind": "Content",
49190
+ "text": "\"build_packets\""
49191
+ }
49192
+ ],
49193
+ "initializerTokenRange": {
49194
+ "startIndex": 1,
49195
+ "endIndex": 2
49196
+ },
49197
+ "releaseTag": "Public",
49198
+ "name": "BUILD_PACKETS"
49199
+ },
49200
+ {
49201
+ "kind": "EnumMember",
49202
+ "canonicalReference": "server!TelemetrySpanOperation.ENTITIES_EMIT_UPDATES:member",
49203
+ "docComment": "",
49204
+ "excerptTokens": [
49205
+ {
49206
+ "kind": "Content",
49207
+ "text": "ENTITIES_EMIT_UPDATES = "
49208
+ },
49209
+ {
49210
+ "kind": "Content",
49211
+ "text": "\"entities_emit_updates\""
49212
+ }
49213
+ ],
49214
+ "initializerTokenRange": {
49215
+ "startIndex": 1,
49216
+ "endIndex": 2
49217
+ },
49218
+ "releaseTag": "Public",
49219
+ "name": "ENTITIES_EMIT_UPDATES"
49220
+ },
49221
+ {
49222
+ "kind": "EnumMember",
49223
+ "canonicalReference": "server!TelemetrySpanOperation.ENTITIES_TICK:member",
49224
+ "docComment": "",
49225
+ "excerptTokens": [
49226
+ {
49227
+ "kind": "Content",
49228
+ "text": "ENTITIES_TICK = "
49229
+ },
49230
+ {
49231
+ "kind": "Content",
49232
+ "text": "\"entities_tick\""
49233
+ }
49234
+ ],
49235
+ "initializerTokenRange": {
49236
+ "startIndex": 1,
49237
+ "endIndex": 2
49238
+ },
49239
+ "releaseTag": "Public",
49240
+ "name": "ENTITIES_TICK"
49241
+ },
49242
+ {
49243
+ "kind": "EnumMember",
49244
+ "canonicalReference": "server!TelemetrySpanOperation.NETWORK_SYNCHRONIZE:member",
49245
+ "docComment": "",
49246
+ "excerptTokens": [
49247
+ {
49248
+ "kind": "Content",
49249
+ "text": "NETWORK_SYNCHRONIZE = "
49250
+ },
49251
+ {
49252
+ "kind": "Content",
49253
+ "text": "\"network_synchronize\""
49254
+ }
49255
+ ],
49256
+ "initializerTokenRange": {
49257
+ "startIndex": 1,
49258
+ "endIndex": 2
49259
+ },
49260
+ "releaseTag": "Public",
49261
+ "name": "NETWORK_SYNCHRONIZE"
49262
+ },
49263
+ {
49264
+ "kind": "EnumMember",
49265
+ "canonicalReference": "server!TelemetrySpanOperation.NETWORK_SYNCHRONIZE_CLEANUP:member",
49266
+ "docComment": "",
49267
+ "excerptTokens": [
49268
+ {
49269
+ "kind": "Content",
49270
+ "text": "NETWORK_SYNCHRONIZE_CLEANUP = "
49271
+ },
49272
+ {
49273
+ "kind": "Content",
49274
+ "text": "\"network_synchronize_cleanup\""
49275
+ }
49276
+ ],
49277
+ "initializerTokenRange": {
49278
+ "startIndex": 1,
49279
+ "endIndex": 2
49280
+ },
49281
+ "releaseTag": "Public",
49282
+ "name": "NETWORK_SYNCHRONIZE_CLEANUP"
49283
+ },
49284
+ {
49285
+ "kind": "EnumMember",
49286
+ "canonicalReference": "server!TelemetrySpanOperation.PHYSICS_CLEANUP:member",
49287
+ "docComment": "",
49288
+ "excerptTokens": [
49289
+ {
49290
+ "kind": "Content",
49291
+ "text": "PHYSICS_CLEANUP = "
49292
+ },
49293
+ {
49294
+ "kind": "Content",
49295
+ "text": "\"physics_cleanup\""
49296
+ }
49297
+ ],
49298
+ "initializerTokenRange": {
49299
+ "startIndex": 1,
49300
+ "endIndex": 2
49301
+ },
49302
+ "releaseTag": "Public",
49303
+ "name": "PHYSICS_CLEANUP"
49304
+ },
49305
+ {
49306
+ "kind": "EnumMember",
49307
+ "canonicalReference": "server!TelemetrySpanOperation.PHYSICS_STEP:member",
49308
+ "docComment": "",
49309
+ "excerptTokens": [
49310
+ {
49311
+ "kind": "Content",
49312
+ "text": "PHYSICS_STEP = "
49313
+ },
49314
+ {
49315
+ "kind": "Content",
49316
+ "text": "\"physics_step\""
49317
+ }
49318
+ ],
49319
+ "initializerTokenRange": {
49320
+ "startIndex": 1,
49321
+ "endIndex": 2
49322
+ },
49323
+ "releaseTag": "Public",
49324
+ "name": "PHYSICS_STEP"
49325
+ },
49326
+ {
49327
+ "kind": "EnumMember",
49328
+ "canonicalReference": "server!TelemetrySpanOperation.RELEASE_TICK_ALLOCATION:member",
49329
+ "docComment": "",
49330
+ "excerptTokens": [
49331
+ {
49332
+ "kind": "Content",
49333
+ "text": "RELEASE_TICK_ALLOCATION = "
49334
+ },
49335
+ {
49336
+ "kind": "Content",
49337
+ "text": "\"release_tick_allocation\""
49338
+ }
49339
+ ],
49340
+ "initializerTokenRange": {
49341
+ "startIndex": 1,
49342
+ "endIndex": 2
49343
+ },
49344
+ "releaseTag": "Public",
49345
+ "name": "RELEASE_TICK_ALLOCATION"
49346
+ },
49347
+ {
49348
+ "kind": "EnumMember",
49349
+ "canonicalReference": "server!TelemetrySpanOperation.SEND_ALL_PACKETS:member",
49350
+ "docComment": "",
49351
+ "excerptTokens": [
49352
+ {
49353
+ "kind": "Content",
49354
+ "text": "SEND_ALL_PACKETS = "
49355
+ },
49356
+ {
49357
+ "kind": "Content",
49358
+ "text": "\"send_all_packets\""
49359
+ }
49360
+ ],
49361
+ "initializerTokenRange": {
49362
+ "startIndex": 1,
49363
+ "endIndex": 2
49364
+ },
49365
+ "releaseTag": "Public",
49366
+ "name": "SEND_ALL_PACKETS"
49367
+ },
49368
+ {
49369
+ "kind": "EnumMember",
49370
+ "canonicalReference": "server!TelemetrySpanOperation.SEND_PACKETS:member",
49371
+ "docComment": "",
49372
+ "excerptTokens": [
49373
+ {
49374
+ "kind": "Content",
49375
+ "text": "SEND_PACKETS = "
49376
+ },
49377
+ {
49378
+ "kind": "Content",
49379
+ "text": "\"send_packets\""
49380
+ }
49381
+ ],
49382
+ "initializerTokenRange": {
49383
+ "startIndex": 1,
49384
+ "endIndex": 2
49385
+ },
49386
+ "releaseTag": "Public",
49387
+ "name": "SEND_PACKETS"
49388
+ },
49389
+ {
49390
+ "kind": "EnumMember",
49391
+ "canonicalReference": "server!TelemetrySpanOperation.SERIALIZE_FREE_BUFFERS:member",
49392
+ "docComment": "",
49393
+ "excerptTokens": [
49394
+ {
49395
+ "kind": "Content",
49396
+ "text": "SERIALIZE_FREE_BUFFERS = "
49397
+ },
49398
+ {
49399
+ "kind": "Content",
49400
+ "text": "\"serialize_free_buffers\""
49401
+ }
49402
+ ],
49403
+ "initializerTokenRange": {
49404
+ "startIndex": 1,
49405
+ "endIndex": 2
49406
+ },
49407
+ "releaseTag": "Public",
49408
+ "name": "SERIALIZE_FREE_BUFFERS"
49409
+ },
49410
+ {
49411
+ "kind": "EnumMember",
49412
+ "canonicalReference": "server!TelemetrySpanOperation.SERIALIZE_PACKETS:member",
49413
+ "docComment": "",
49414
+ "excerptTokens": [
49415
+ {
49416
+ "kind": "Content",
49417
+ "text": "SERIALIZE_PACKETS = "
49418
+ },
49419
+ {
49420
+ "kind": "Content",
49421
+ "text": "\"serialize_packets\""
49422
+ }
49423
+ ],
49424
+ "initializerTokenRange": {
49425
+ "startIndex": 1,
49426
+ "endIndex": 2
49427
+ },
49428
+ "releaseTag": "Public",
49429
+ "name": "SERIALIZE_PACKETS"
49430
+ },
49431
+ {
49432
+ "kind": "EnumMember",
49433
+ "canonicalReference": "server!TelemetrySpanOperation.SERIALIZE_PACKETS_ENCODE:member",
49434
+ "docComment": "",
49435
+ "excerptTokens": [
49436
+ {
49437
+ "kind": "Content",
49438
+ "text": "SERIALIZE_PACKETS_ENCODE = "
49439
+ },
49440
+ {
49441
+ "kind": "Content",
49442
+ "text": "\"serialize_packets_encode\""
49443
+ }
49444
+ ],
49445
+ "initializerTokenRange": {
49446
+ "startIndex": 1,
49447
+ "endIndex": 2
49448
+ },
49449
+ "releaseTag": "Public",
49450
+ "name": "SERIALIZE_PACKETS_ENCODE"
49451
+ },
49452
+ {
49453
+ "kind": "EnumMember",
49454
+ "canonicalReference": "server!TelemetrySpanOperation.SIMULATION_STEP:member",
49455
+ "docComment": "",
49456
+ "excerptTokens": [
49457
+ {
49458
+ "kind": "Content",
49459
+ "text": "SIMULATION_STEP = "
49460
+ },
49461
+ {
49462
+ "kind": "Content",
49463
+ "text": "\"simulation_step\""
49464
+ }
49465
+ ],
49466
+ "initializerTokenRange": {
49467
+ "startIndex": 1,
49468
+ "endIndex": 2
49469
+ },
49470
+ "releaseTag": "Public",
49471
+ "name": "SIMULATION_STEP"
49472
+ },
49473
+ {
49474
+ "kind": "EnumMember",
49475
+ "canonicalReference": "server!TelemetrySpanOperation.TICKER_TICK:member",
49476
+ "docComment": "",
49477
+ "excerptTokens": [
49478
+ {
49479
+ "kind": "Content",
49480
+ "text": "TICKER_TICK = "
49481
+ },
49482
+ {
49483
+ "kind": "Content",
49484
+ "text": "\"ticker_tick\""
49485
+ }
49486
+ ],
49487
+ "initializerTokenRange": {
49488
+ "startIndex": 1,
49489
+ "endIndex": 2
49490
+ },
49491
+ "releaseTag": "Public",
49492
+ "name": "TICKER_TICK"
49493
+ },
49494
+ {
49495
+ "kind": "EnumMember",
49496
+ "canonicalReference": "server!TelemetrySpanOperation.WORLD_TICK:member",
49497
+ "docComment": "",
49498
+ "excerptTokens": [
49499
+ {
49500
+ "kind": "Content",
49501
+ "text": "WORLD_TICK = "
49502
+ },
49503
+ {
49504
+ "kind": "Content",
49505
+ "text": "\"world_tick\""
49506
+ }
49507
+ ],
49508
+ "initializerTokenRange": {
49509
+ "startIndex": 1,
49510
+ "endIndex": 2
49511
+ },
49512
+ "releaseTag": "Public",
49513
+ "name": "WORLD_TICK"
49514
+ }
49515
+ ]
49516
+ },
49517
+ {
49518
+ "kind": "TypeAlias",
49519
+ "canonicalReference": "server!TelemetrySpanOptions:type",
49520
+ "docComment": "/**\n * Options for creating a telemetry span.\n *\n * @public\n */\n",
49521
+ "excerptTokens": [
49522
+ {
49523
+ "kind": "Content",
49524
+ "text": "export type TelemetrySpanOptions = "
49525
+ },
49526
+ {
49527
+ "kind": "Content",
49528
+ "text": "{\n operation: "
49529
+ },
49530
+ {
49531
+ "kind": "Reference",
49532
+ "text": "TelemetrySpanOperation",
49533
+ "canonicalReference": "server!TelemetrySpanOperation:enum"
49534
+ },
49535
+ {
49536
+ "kind": "Content",
49537
+ "text": " | string;\n attributes?: "
49538
+ },
49539
+ {
49540
+ "kind": "Reference",
49541
+ "text": "Record",
49542
+ "canonicalReference": "!Record:type"
49543
+ },
49544
+ {
49545
+ "kind": "Content",
49546
+ "text": "<string, string | number>;\n}"
49547
+ },
49548
+ {
49549
+ "kind": "Content",
49550
+ "text": ";"
49551
+ }
49552
+ ],
49553
+ "fileUrlPath": "src/metrics/Telemetry.ts",
49554
+ "releaseTag": "Public",
49555
+ "name": "TelemetrySpanOptions",
49556
+ "typeTokenRange": {
49557
+ "startIndex": 1,
49558
+ "endIndex": 6
49559
+ }
49560
+ },
48905
49561
  {
48906
49562
  "kind": "Class",
48907
49563
  "canonicalReference": "server!TickAllocator:class",