# App framework

> App framework - Build an OpenTelemetry Resource with DataRobot-standard attributes.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-06-10T05:26:01.787967+00:00` (UTC).

## Primary page

- [App framework](https://docs.datarobot.com/en/docs/api/reference/sdk/app-framework.html.md): Full documentation for this topic (Markdown sidecar).

## Sections on this page

- [OpenTelemetry](https://docs.datarobot.com/en/docs/api/reference/sdk/app-framework.html.md#opentelemetry): In-page section heading.
- [datarobot.core.create_dr_resource(entity_type, entity_id, , service_priority='p1', extra_attrs=None)](https://docs.datarobot.com/en/docs/api/reference/sdk/app-framework.html.md#datarobot.core.create_dr_resource): In-page section heading.
- [NOTE](https://docs.datarobot.com/en/docs/api/reference/sdk/app-framework.html.md#note): In-page section heading.

## Related documentation

- [Developer documentation](https://docs.datarobot.com/en/docs/api/index.html.md): Linked from this page.
- [API reference](https://docs.datarobot.com/en/docs/api/reference/index.html.md): Linked from this page.

## Documentation content

## OpenTelemetry

### datarobot.core.create_dr_resource(entity_type, entity_id, , service_priority='p1', extra_attrs=None)

Build an OpenTelemetry Resource with DataRobot-standard attributes.

- Parameters:
- Return type: Resource
- Returns: An opentelemetry.sdk.resources.Resource ready to pass to a TracerProvider / MeterProvider / LoggerProvider .
- Raises: ImportError – If opentelemetry-sdk is not installed. Install the datarobot[otel] extra to add it.

#### NOTE

`service.name` is only set when `OTEL_SERVICE_NAME` is absent from the
environment — `Resource.create()` merges env vars at lower precedence than
explicit attrs, so setting it here would shadow any platform-provided value.
