Skip to content

Commit

Permalink
Enable ddtrace in image and update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Nov 21, 2024
1 parent 660d683 commit 814696c
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ def get_main_file_name(connector: Connector) -> str:

def get_entrypoint(connector: Connector) -> List[str]:
main_file_name = get_main_file_name(connector)
return ["python", f"/airbyte/integration_code/{main_file_name}"]
return ["ddtrace-run", "python", f"/airbyte/integration_code/{main_file_name}"]


def apply_airbyte_entrypoint(connector_container: Container, connector: Connector) -> Container:
entrypoint = get_entrypoint(connector)

return connector_container.with_env_variable("AIRBYTE_ENTRYPOINT", " ".join(entrypoint)).with_entrypoint(entrypoint)
return connector_container.with_env_variable("DD_PROFILING_ENABLED", "true").with_env_variable("AIRBYTE_ENTRYPOINT", " ".join(entrypoint)).with_entrypoint(entrypoint)


async def pre_install_hooks(connector: Connector, base_container: Container, logger: Logger) -> Container:
Expand Down
191 changes: 189 additions & 2 deletions airbyte-integrations/connectors/source-klaviyo/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ include = "source_klaviyo"
[tool.poetry.dependencies]
python = "^3.10,<3.12"
airbyte_cdk = "^6"
ddtrace = "2.16.4"

[tool.poetry.scripts]
source-klaviyo = "source_klaviyo.run:run"
Expand Down

0 comments on commit 814696c

Please sign in to comment.