Skip to content

[FEATURE]: Respect runtime option during publish #6997

Open
@tungi52

Description

@tungi52

Framework or Library Name

.net8

Library Type

No response

Library Version(s)

3.9.1

Describe the feature you'd like

We use Datadog.Trace.Bundle NuGet package for manual instrumentation because as it stated in the documentation we are in the situation that accessing and updating images add extra complexity and keeping versions in sync is chore.

However using the Bundle package almost double our entire image size: using an ASP.NET Core Alpine image which is less 200 MB (let's say it's 200 with our application and with some additional packages) will be extended with addional 170 MB Datadog binaries. And in production only a few of them are required - the ones under the linux-musl-x64 and net6.0 folders (in our case).

Is it possible or even planned to respect the --runtime property during pusblish and only copy relevant files to the output?
Thanks!

Is your feature request related to a problem?

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementImprovement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions