Turbo_module Attributes

9 attributes in this category.9 deprecated

9 attributes

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

turbo_module.archDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native.

Examplesnewlegacy

Use react_native.architecture instead.

Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules

Status: backfill

Changelog
v0.24.0#564Added turbo_module.arch and deprecated it in favor of react_native.architecture
Raw JSON
{
  "key": "turbo_module.arch",
  "brief": "The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "new",
    "legacy"
  ],
  "deprecation": {
    "replacement": "react_native.architecture",
    "reason": "Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules",
    "_status": "backfill"
  },
  "alias": [
    "react_native.architecture"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.arch and deprecated it in favor of react_native.architecture"
    }
  ]
}

turbo_module.methodDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The name of the native module method that was called. Only applies to React Native.

Scrubbing ReasonNative module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable
ExamplesgetUniqueId

Use react_native.module.method instead.

Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules

Status: backfill

Changelog
v0.24.0#564Added turbo_module.method and deprecated it in favor of react_native.module.method
Raw JSON
{
  "key": "turbo_module.method",
  "brief": "The name of the native module method that was called. Only applies to React Native.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual",
    "reason": "Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "getUniqueId"
  ],
  "deprecation": {
    "replacement": "react_native.module.method",
    "reason": "Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.method"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.method and deprecated it in favor of react_native.module.method"
    }
  ]
}

turbo_module.nameDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native.

Scrubbing ReasonNative module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable
ExamplesRNDeviceInfo

Use react_native.module.name instead.

Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules

Status: backfill

Changelog
v0.24.0#564Added turbo_module.name and deprecated it in favor of react_native.module.name
Raw JSON
{
  "key": "turbo_module.name",
  "brief": "The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual",
    "reason": "Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "RNDeviceInfo"
  ],
  "deprecation": {
    "replacement": "react_native.module.name",
    "reason": "Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.name"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.name and deprecated it in favor of react_native.module.name"
    }
  ]
}

turbo_module.top_moduleDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native.

Scrubbing ReasonNative module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable
ExamplesRNDeviceInfo.getUniqueId

Use react_native.module.top.name instead.

Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping

Status: backfill

Changelog
v0.24.0#564Added turbo_module.top_module and deprecated it in favor of react_native.module.top.name
Raw JSON
{
  "key": "turbo_module.top_module",
  "brief": "The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual",
    "reason": "Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "RNDeviceInfo.getUniqueId"
  ],
  "deprecation": {
    "replacement": "react_native.module.top.name",
    "reason": "Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.top.name"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.top_module and deprecated it in favor of react_native.module.top.name"
    }
  ]
}

turbo_module.top_module_duration_msDeprecated

doubleScrub: ManualVisibility: PublicOTel: False

The total duration attributed to the top native module method, in milliseconds. Only applies to React Native.

Examples87.25

Use react_native.module.top.duration instead.

Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping

Status: backfill

Changelog
v0.24.0#564Added turbo_module.top_module_duration_ms and deprecated it in favor of react_native.module.top.duration
Raw JSON
{
  "key": "turbo_module.top_module_duration_ms",
  "brief": "The total duration attributed to the top native module method, in milliseconds. Only applies to React Native.",
  "type": "double",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    87.25
  ],
  "deprecation": {
    "replacement": "react_native.module.top.duration",
    "reason": "Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.top.duration"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.top_module_duration_ms and deprecated it in favor of react_native.module.top.duration"
    }
  ]
}

turbo_module.total_call_countDeprecated

integerScrub: ManualVisibility: PublicOTel: False

The number of native module calls observed during the lifetime of the span. Only applies to React Native.

Examples42

Use react_native.module.call.count instead.

Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping

Status: backfill

Changelog
v0.24.0#564Added turbo_module.total_call_count and deprecated it in favor of react_native.module.call.count
Raw JSON
{
  "key": "turbo_module.total_call_count",
  "brief": "The number of native module calls observed during the lifetime of the span. Only applies to React Native.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    42
  ],
  "deprecation": {
    "replacement": "react_native.module.call.count",
    "reason": "Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.call.count",
    "turbo_modules.total_call_count"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.total_call_count and deprecated it in favor of react_native.module.call.count"
    }
  ]
}

turbo_module.total_duration_msDeprecated

doubleScrub: ManualVisibility: PublicOTel: False

The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native.

Examples128.45

Use react_native.module.duration.total instead.

Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping

Status: backfill

Changelog
v0.24.0#564Added turbo_module.total_duration_ms and deprecated it in favor of react_native.module.duration.total
Raw JSON
{
  "key": "turbo_module.total_duration_ms",
  "brief": "The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native.",
  "type": "double",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    128.45
  ],
  "deprecation": {
    "replacement": "react_native.module.duration.total",
    "reason": "Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.duration.total",
    "turbo_modules.total_duration_ms"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.total_duration_ms and deprecated it in favor of react_native.module.duration.total"
    }
  ]
}

turbo_module.total_error_countDeprecated

integerScrub: ManualVisibility: PublicOTel: False

The number of native module calls that failed during the lifetime of the span. Only applies to React Native.

Examples2

Use react_native.module.error.count instead.

Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping

Status: backfill

Changelog
v0.24.0#564Added turbo_module.total_error_count and deprecated it in favor of react_native.module.error.count
Raw JSON
{
  "key": "turbo_module.total_error_count",
  "brief": "The number of native module calls that failed during the lifetime of the span. Only applies to React Native.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    2
  ],
  "deprecation": {
    "replacement": "react_native.module.error.count",
    "reason": "Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.error.count",
    "turbo_modules.total_error_count"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.total_error_count and deprecated it in favor of react_native.module.error.count"
    }
  ]
}

turbo_module.unique_methodsDeprecated

integerScrub: ManualVisibility: PublicOTel: False

The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native.

Examples7

Use react_native.module.call.distinct_count instead.

Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping

Status: backfill

Changelog
v0.24.0#564Added turbo_module.unique_methods and deprecated it in favor of react_native.module.call.distinct_count
Raw JSON
{
  "key": "turbo_module.unique_methods",
  "brief": "The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    7
  ],
  "deprecation": {
    "replacement": "react_native.module.call.distinct_count",
    "reason": "Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping",
    "_status": "backfill"
  },
  "alias": [
    "react_native.module.call.distinct_count",
    "turbo_modules.unique_methods"
  ],
  "changelog": [
    {
      "version": "0.24.0",
      "prs": [
        564
      ],
      "description": "Added turbo_module.unique_methods and deprecated it in favor of react_native.module.call.distinct_count"
    }
  ]
}