Skip to content

Crashlytics options are ignored #265

@nathansamson

Description

@nathansamson

Given the following code I would expect it creates a function

  • in europe-west1
  • With only one instance
  • With access to the environment secret GITLAB_PERSONAL_ACCESS_TOKEN

None of them seem to be true

Image

Either I am doing something terribly wrong but in that case docs are wrong...

from firebase_functions import params
from firebase_functions.alerts import crashlytics_fn

import gitlab

GITLAB_PERSONAL_ACCESS_TOKEN = params.SecretParam("GITLAB_PERSONAL_ACCESS_TOKEN")

def post_issue_to_gitlab(crash_type, event) -> None:
    # Some code ...

@crashlytics_fn.on_new_fatal_issue_published(secrets=[GITLAB_PERSONAL_ACCESS_TOKEN], region="europe-west1", max_instances=1)
def post_fatal_issue_to_gitlab(event: crashlytics_fn.CrashlyticsNewFatalIssueEvent) -> None:
    post_issue_to_gitlab("Crashlytics - Fatal Crash", event)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions